Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Merge libapt-inst into libapt-pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-klode committed May 6, 2019
1 parent d03105d commit dfe2511
Show file tree
Hide file tree
Showing 24 changed files with 52 additions and 153 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Expand Up @@ -232,7 +232,6 @@ configure_file(CMake/apti18n.h.in ${PROJECT_BINARY_DIR}/include/apti18n.h)
add_subdirectory(vendor)
add_subdirectory(apt-pkg)
add_subdirectory(apt-private)
add_subdirectory(apt-inst)
add_subdirectory(cmdline)
add_subdirectory(completions)
add_subdirectory(doc)
Expand Down
1 change: 0 additions & 1 deletion abicheck/apt_build.xml.in
Expand Up @@ -8,5 +8,4 @@

<libs>
@build_path@/apt-pkg/
@build_path@/apt-inst/
</libs>
31 changes: 0 additions & 31 deletions apt-inst/CMakeLists.txt

This file was deleted.

9 changes: 0 additions & 9 deletions apt-inst/apt-inst.pc.in

This file was deleted.

5 changes: 0 additions & 5 deletions apt-inst/dpkg-diffs.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions cmdline/CMakeLists.txt
Expand Up @@ -29,10 +29,10 @@ target_link_libraries(apt-cdrom apt-pkg apt-private)
target_link_libraries(apt-helper apt-pkg apt-private)
target_link_libraries(apt-mark apt-pkg apt-private)
target_link_libraries(apt-sortpkgs apt-pkg apt-private)
target_link_libraries(apt-extracttemplates apt-pkg apt-inst apt-private)
target_link_libraries(apt-internal-solver apt-pkg apt-inst apt-private)
target_link_libraries(apt-dump-solver apt-pkg apt-inst apt-private)
target_link_libraries(apt-internal-planner apt-pkg apt-inst apt-private)
target_link_libraries(apt-extracttemplates apt-pkg apt-private)
target_link_libraries(apt-internal-solver apt-pkg apt-private)
target_link_libraries(apt-dump-solver apt-pkg apt-private)
target_link_libraries(apt-internal-planner apt-pkg apt-private)

set_target_properties(apt-dump-solver
PROPERTIES RUNTIME_OUTPUT_DIRECTORY solvers
Expand Down
17 changes: 1 addition & 16 deletions debian/control
Expand Up @@ -94,19 +94,6 @@ Description: package management runtime library
http(s), rsh as well as an interface to add more transports like
tor+http(s) (apt-transport-tor).

Package: libapt-inst3.0
Architecture: any
Multi-Arch: same
Priority: optional
Pre-Depends: ${misc:Pre-Depends}
Depends: ${misc:Depends}, ${shlibs:Depends}
Section: libs
Provides: libapt-inst (= ${binary:Version})
Description: deb package format runtime library
This library provides methods to query and extract information
from deb packages. This includes the control data and the package
file content.

Package: apt-doc
Architecture: all
Priority: optional
Expand All @@ -121,8 +108,7 @@ Architecture: any
Multi-Arch: same
Priority: optional
Pre-Depends: ${misc:Pre-Depends}
Depends: libapt-inst (= ${binary:Version}),
libapt-pkg (= ${binary:Version}),
Depends: libapt-pkg (= ${binary:Version}),
zlib1g-dev,
${misc:Depends}
Section: libdevel
Expand All @@ -146,7 +132,6 @@ Description: documentation for APT development
Package: apt-utils
Architecture: any
Depends: apt (= ${binary:Version}),
libapt-inst3.0 (>= ${binary:Version}),
${misc:Depends},
${shlibs:Depends}
Description: package management related utility programs
Expand Down
2 changes: 0 additions & 2 deletions debian/libapt-inst3.0.install

This file was deleted.

68 changes: 0 additions & 68 deletions debian/libapt-inst3.0.symbols

This file was deleted.

1 change: 0 additions & 1 deletion debian/libapt-pkg-dev.install
@@ -1,4 +1,3 @@
usr/include/apt-pkg/
usr/lib/*/libapt-inst*.so
usr/lib/*/libapt-pkg*.so
usr/lib/*/pkgconfig/apt-*.pc
42 changes: 42 additions & 0 deletions debian/libapt-pkg6.0.symbols
Expand Up @@ -1471,3 +1471,45 @@ libapt-pkg.so.6.0 libapt-pkg6.0 #MINVER#
(c++|optional=std)"void std::vector<APT::Configuration::Compressor, std::allocator<APT::Configuration::Compressor> >::emplace_back<char const (&) [6], char const (&) [5], char const (&) [6], char const (&) [3], char const (&) [3], int>(char const (&) [6], char const (&) [5], char const (&) [6], char const (&) [3], char const (&) [3], int&&)@APTPKG_6.0" 1.7.0~alpha3~
(c++|optional=std)"void std::vector<APT::Configuration::Compressor, std::allocator<APT::Configuration::Compressor> >::emplace_back<char const (&) [6], char const (&) [5], char const (&) [6], decltype(nullptr), decltype(nullptr), int>(char const (&) [6], char const (&) [5], char const (&) [6], decltype(nullptr)&&, decltype(nullptr)&&, int&&)@APTPKG_6.0" 1.7.0~alpha3~
(c++|optional=std)"void std::vector<re_pattern_buffer*, std::allocator<re_pattern_buffer*> >::emplace_back<re_pattern_buffer*>(re_pattern_buffer*&&)@APTPKG_6.0" 1.7.0~alpha3~
* Build-Depends-Package: libapt-pkg-dev
(c++)"ExtractTar::Done()@APTPKG_6.0" 1.1~exp12
(c++)"ExtractTar::Go(pkgDirStream&)@APTPKG_6.0" 0.8.0
(c++)"ExtractTar::StartGzip()@APTPKG_6.0" 0.8.0
(c++)"ExtractTar::ExtractTar(FileFd&, unsigned long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)@APTPKG_6.0" 1.0.5
(c++)"ExtractTar::~ExtractTar()@APTPKG_6.0" 0.8.0
(c++)"debDebFile::GotoMember(char const*)@APTPKG_6.0" 0.8.0
(c++)"debDebFile::CheckMember(char const*)@APTPKG_6.0" 0.8.0
(c++)"debDebFile::ControlExtract::DoItem(pkgDirStream::Item&, int&)@APTPKG_6.0" 0.8.0
(c++)"debDebFile::ExtractTarMember(pkgDirStream&, char const*)@APTPKG_6.0" 0.9.15.4
(c++)"debDebFile::ExtractArchive(pkgDirStream&)@APTPKG_6.0" 0.8.0
(c++)"debDebFile::MemControlExtract::TakeControl(void const*, unsigned long long)@APTPKG_6.0" 1.0.5
(c++)"debDebFile::MemControlExtract::Read(debDebFile&)@APTPKG_6.0" 0.8.0
(c++)"debDebFile::MemControlExtract::DoItem(pkgDirStream::Item&, int&)@APTPKG_6.0" 0.8.0
(c++)"debDebFile::MemControlExtract::Process(pkgDirStream::Item&, unsigned char const*, unsigned long long, unsigned long long)@APTPKG_6.0" 1.0.5
(c++)"debDebFile::debDebFile(FileFd&)@APTPKG_6.0" 0.8.0
(c++)"pkgDirStream::FinishedFile(pkgDirStream::Item&, int)@APTPKG_6.0" 0.8.0
(c++)"pkgDirStream::Fail(pkgDirStream::Item&, int)@APTPKG_6.0" 0.8.0
(c++)"pkgDirStream::DoItem(pkgDirStream::Item&, int&)@APTPKG_6.0" 0.8.0
(c++)"ARArchive::LoadHeaders()@APTPKG_6.0" 0.8.0
(c++)"ARArchive::ARArchive(FileFd&)@APTPKG_6.0" 0.8.0
(c++)"ARArchive::~ARArchive()@APTPKG_6.0" 0.8.0
(c++)"ARArchive::FindMember(char const*) const@APTPKG_6.0" 0.8.0
(c++)"typeinfo for ExtractTar@APTPKG_6.0" 0.8.0
(c++)"typeinfo for pkgDirStream@APTPKG_6.0" 0.8.0
(c++)"typeinfo for debDebFile::ControlExtract@APTPKG_6.0" 0.8.0
(c++)"typeinfo for debDebFile::MemControlExtract@APTPKG_6.0" 0.8.0
(c++)"typeinfo name for ExtractTar@APTPKG_6.0" 0.8.0
(c++)"typeinfo name for pkgDirStream@APTPKG_6.0" 0.8.0
(c++)"typeinfo name for debDebFile::ControlExtract@APTPKG_6.0" 0.8.0
(c++)"typeinfo name for debDebFile::MemControlExtract@APTPKG_6.0" 0.8.0
(c++)"vtable for ExtractTar@APTPKG_6.0" 0.8.0
(c++)"vtable for pkgDirStream@APTPKG_6.0" 0.8.0
(c++)"vtable for debDebFile::ControlExtract@APTPKG_6.0" 0.8.0
(c++)"vtable for debDebFile::MemControlExtract@APTPKG_6.0" 0.8.0
### gcc artifacts
(c++|optional=std)"std::vector<APT::Configuration::Compressor, std::allocator<APT::Configuration::Compressor> >::~vector()@APTPKG_6.0" 0.8.12
(c++|optional=std)"void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)@APTPKG_6.0" 1.7.0~alpha3~
(c++|optional=std)"void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)@APTPKG_6.0" 1.7.0~alpha3~
### symbol versioning
APTPKG_6.0@APTINST_3.0 1.1~exp9
### try to ignore std:: template instances
2 changes: 1 addition & 1 deletion ftparchive/CMakeLists.txt
Expand Up @@ -7,7 +7,7 @@ add_executable(apt-ftparchive ${source})

# Link the executables against the libraries
target_include_directories(apt-ftparchive PRIVATE ${BERKELEY_DB_INCLUDE_DIRS})
target_link_libraries(apt-ftparchive apt-inst apt-pkg apt-private ${BERKELEY_DB_LIBRARIES})
target_link_libraries(apt-ftparchive apt-pkg apt-private ${BERKELEY_DB_LIBRARIES})

# Install the executables
install(TARGETS apt-ftparchive RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
7 changes: 0 additions & 7 deletions po/CMakeLists.txt
Expand Up @@ -31,18 +31,11 @@ apt_add_translation_domain(
EXCLUDE_LANGUAGES ${languages_excluded}
)

apt_add_translation_domain(
DOMAIN libapt-inst${APT_INST_MAJOR}
TARGETS apt-inst
EXCLUDE_LANGUAGES ${languages_excluded}
)

apt_add_update_po(
TEMPLATE
apt-all
DOMAINS
libapt-pkg${APT_PKG_MAJOR}
libapt-inst${APT_INST_MAJOR}
apt
apt-utils
EXCLUDE_LANGUAGES
Expand Down
5 changes: 1 addition & 4 deletions prepare-release
Expand Up @@ -11,7 +11,6 @@ VERSION=$(dpkg-parsechangelog | sed -n -e '/^Version:/s/^Version: //p')
DISTRIBUTION=$(dpkg-parsechangelog | sed -n -e '/^Distribution:/s/^Distribution: //p')

LIBAPTPKGVERSION="$(awk -v ORS='.' '/^\#define APT_PKG_M/ {print $3}' apt-pkg/contrib/macros.h | sed 's/\.$//')"
LIBAPTINSTVERSION="$(sed -nr 's/set\(MAJOR ([^)]*)\)/\1/p' apt-inst/CMakeLists.txt)"

librarysymbolsfromfile() {
local MISSING="$(grep '^+#MISSING' "$1")"
Expand Down Expand Up @@ -64,7 +63,6 @@ if [ "$1" = 'pre-export' ]; then
}

libraryversioncheck 'libapt-pkg' "$LIBAPTPKGVERSION"
libraryversioncheck 'libapt-inst' "$LIBAPTINSTVERSION"


if [ "$DISTRIBUTION" = 'sid' ]; then
Expand Down Expand Up @@ -181,7 +179,6 @@ elif [ "$1" = 'library' ]; then
}
librarysymbols 'libapt-pkg' "${LIBAPTPKGVERSION}"
echo
librarysymbols 'libapt-inst' "${LIBAPTINSTVERSION}"
elif [ "$1" = 'buildlog' ]; then
while [ -n "$2" ]; do
librarysymbolsfromfile "$2" 'UNKNOWN'
Expand Down Expand Up @@ -222,7 +219,7 @@ elif [ "$1" = 'coverage' ]; then
}
grep 'build/include/' "${DIR}/apt.coverage.fixed" | sed "s#^SF:$(pwd)/##" | while read file; do
rewritefile "$file" 'apt-pkg' 'apt-pkg/deb' 'apt-pkg/edsp' 'apt-pkg/contrib' \
'apt-inst' 'apt-inst/deb' 'apt-inst/contrib' 'apt-private'
'apt-private'
done
genhtml --output-directory "${DIR}" "${DIR}/apt.coverage.fixed" ${LCOVRC}
elif [ "$1" = 'spellcheckers' -o "$1" = 'lint' ]; then
Expand Down
4 changes: 2 additions & 2 deletions test/interactive-helper/CMakeLists.txt
@@ -1,9 +1,9 @@
add_executable(mthdcat mthdcat.cc)
target_link_libraries(mthdcat apt-pkg)
add_executable(testdeb testdeb.cc)
target_link_libraries(testdeb apt-pkg apt-inst)
target_link_libraries(testdeb apt-pkg)
add_executable(extract-control extract-control.cc)
target_link_libraries(extract-control apt-pkg apt-inst)
target_link_libraries(extract-control apt-pkg)
add_executable(aptwebserver aptwebserver.cc)
target_link_libraries(aptwebserver apt-pkg ${CMAKE_THREAD_LIBS_INIT})
add_executable(aptdropprivs aptdropprivs.cc)
Expand Down
2 changes: 1 addition & 1 deletion test/libapt/CMakeLists.txt
@@ -1,4 +1,4 @@
set(PROJECT_TEST_LIBRARIES apt-private apt-inst)
set(PROJECT_TEST_LIBRARIES apt-private)
find_path(GTEST_ROOT src/gtest.cc
/usr/src/googletest/googletest
/usr/src/gtest
Expand Down

0 comments on commit dfe2511

Please sign in to comment.