2020-11-05 16:05:50 +01:00
|
|
|
diff -uNr apt-2.1.11/apt-pkg/CMakeLists.txt apt-2.1.11.mod/apt-pkg/CMakeLists.txt
|
|
|
|
--- apt-2.1.11/apt-pkg/CMakeLists.txt 2020-10-21 12:53:18.000000000 +0300
|
|
|
|
+++ apt-2.1.11.mod/apt-pkg/CMakeLists.txt 2020-11-05 13:54:37.761890653 +0200
|
|
|
|
@@ -52,7 +52,7 @@
|
2019-11-13 13:42:45 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(apt-pkg
|
|
|
|
- PRIVATE -lutil ${CMAKE_DL_LIBS} ${RESOLV_LIBRARIES}
|
|
|
|
+ PRIVATE ${CMAKE_DL_LIBS} ${RESOLV_LIBRARIES}
|
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
${ZLIB_LIBRARIES}
|
|
|
|
${BZIP2_LIBRARIES}
|
2020-11-05 16:05:50 +01:00
|
|
|
diff -uNr apt-2.1.11/CMakeLists.txt apt-2.1.11.mod/CMakeLists.txt
|
|
|
|
--- apt-2.1.11/CMakeLists.txt 2020-10-21 12:53:18.000000000 +0300
|
|
|
|
+++ apt-2.1.11.mod/CMakeLists.txt 2020-11-05 14:12:13.701910799 +0200
|
|
|
|
@@ -188,14 +188,6 @@
|
|
|
|
endif()
|
2019-11-13 13:42:45 +01:00
|
|
|
endif()
|
|
|
|
|
2020-11-05 16:05:50 +01:00
|
|
|
-# Handle resolving
|
|
|
|
-check_function_exists(res_ninit HAVE_LIBC_RESOLV)
|
|
|
|
-if(HAVE_LIBC_RESOLV)
|
|
|
|
- set(RESOLV_LIBRARIES)
|
|
|
|
-else()
|
|
|
|
- set(RESOLV_LIBRARIES -lresolv)
|
2019-11-13 13:42:45 +01:00
|
|
|
-endif()
|
2020-11-05 16:05:50 +01:00
|
|
|
-
|
|
|
|
# Check multiversioning
|
|
|
|
include(CheckCxxTarget)
|
|
|
|
check_cxx_target(HAVE_FMV_SSE42_AND_CRC32 "sse4.2" "__builtin_ia32_crc32si(0,i)|__builtin_ia32_crc32hi(0,i)|__builtin_ia32_crc32qi(0,i)")
|
|
|
|
@@ -213,10 +205,6 @@
|
2019-11-13 13:42:45 +01:00
|
|
|
message(STATUS "Found dpkg data dir: ${DPKG_DATADIR_CMD}")
|
|
|
|
set(DPKG_DATADIR "${DPKG_DATADIR_CMD}" CACHE PATH "dpkg data directory")
|
|
|
|
endif()
|
|
|
|
-if (NOT DEFINED COMMON_ARCH)
|
|
|
|
- execute_process(COMMAND dpkg-architecture -qDEB_HOST_ARCH
|
|
|
|
- OUTPUT_VARIABLE COMMON_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
-endif()
|
|
|
|
if (NOT DEFINED ROOT_GROUP)
|
|
|
|
execute_process(COMMAND id -gn root
|
|
|
|
OUTPUT_VARIABLE ROOT_GROUP OUTPUT_STRIP_TRAILING_WHITESPACE)
|
2020-11-05 16:05:50 +01:00
|
|
|
@@ -243,11 +231,9 @@
|
|
|
|
add_subdirectory(apt-private)
|
2019-11-13 13:42:45 +01:00
|
|
|
add_subdirectory(cmdline)
|
|
|
|
add_subdirectory(completions)
|
|
|
|
-add_subdirectory(doc)
|
|
|
|
add_subdirectory(dselect)
|
2020-07-09 19:29:22 +02:00
|
|
|
add_subdirectory(ftparchive)
|
2019-11-13 13:42:45 +01:00
|
|
|
add_subdirectory(methods)
|
|
|
|
-add_subdirectory(test)
|
|
|
|
|
|
|
|
if (USE_NLS)
|
|
|
|
add_subdirectory(po)
|
2020-11-05 16:05:50 +01:00
|
|
|
diff -uNr apt-2.1.11/methods/CMakeLists.txt apt-2.1.11.mod/methods/CMakeLists.txt
|
|
|
|
--- apt-2.1.11/methods/CMakeLists.txt 2020-10-21 12:53:18.000000000 +0300
|
|
|
|
+++ apt-2.1.11.mod/methods/CMakeLists.txt 2020-11-05 13:56:28.194289638 +0200
|
|
|
|
@@ -11,7 +11,6 @@
|
|
|
|
add_executable(cdrom cdrom.cc)
|
|
|
|
add_executable(http http.cc basehttp.cc $<TARGET_OBJECTS:connectlib>)
|
|
|
|
add_executable(mirror mirror.cc)
|
|
|
|
-add_executable(ftp ftp.cc $<TARGET_OBJECTS:connectlib>)
|
2019-11-13 13:42:45 +01:00
|
|
|
add_executable(rred rred.cc)
|
|
|
|
add_executable(rsh rsh.cc)
|
|
|
|
|
2020-11-05 16:05:50 +01:00
|
|
|
@@ -21,10 +20,9 @@
|
|
|
|
|
|
|
|
# Additional libraries to link against for networked stuff
|
|
|
|
target_link_libraries(http ${GNUTLS_LIBRARIES} $<$<BOOL:${SYSTEMD_FOUND}>:${SYSTEMD_LIBRARIES}>)
|
|
|
|
-target_link_libraries(ftp ${GNUTLS_LIBRARIES})
|
2019-11-13 13:42:45 +01:00
|
|
|
|
|
|
|
# Install the library
|
2020-11-05 16:05:50 +01:00
|
|
|
-install(TARGETS file copy store gpgv cdrom http ftp rred rsh mirror
|
|
|
|
+install(TARGETS file copy store gpgv cdrom http rred rsh mirror
|
2019-11-13 13:42:45 +01:00
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/methods)
|
|
|
|
|
2020-11-05 16:05:50 +01:00
|
|
|
add_links(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods mirror mirror+ftp mirror+http mirror+https mirror+file mirror+copy)
|