diff --git a/packages/apt/0000-cmake-fix.patch b/packages/apt/0000-cmake-fix.patch index bf4e8a156b73a4..9e399cd3a219ee 100644 --- a/packages/apt/0000-cmake-fix.patch +++ b/packages/apt/0000-cmake-fix.patch @@ -1,7 +1,7 @@ -diff -uNr apt-2.1.13/apt-pkg/CMakeLists.txt apt-2.1.13.mod/apt-pkg/CMakeLists.txt ---- apt-2.1.13/apt-pkg/CMakeLists.txt 2020-12-10 16:40:27.000000000 +0200 -+++ apt-2.1.13.mod/apt-pkg/CMakeLists.txt 2020-12-11 18:10:24.236801758 +0200 -@@ -52,7 +52,7 @@ +diff -u -r ../apt-2.9.3/apt-pkg/CMakeLists.txt ./apt-pkg/CMakeLists.txt +--- ../apt-2.9.3/apt-pkg/CMakeLists.txt 2024-05-14 11:01:31.000000000 +0000 ++++ ./apt-pkg/CMakeLists.txt 2024-05-14 18:33:35.039473088 +0000 +@@ -61,7 +61,7 @@ ) target_link_libraries(apt-pkg @@ -10,10 +10,11 @@ diff -uNr apt-2.1.13/apt-pkg/CMakeLists.txt apt-2.1.13.mod/apt-pkg/CMakeLists.tx ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} -diff -uNr apt-2.2.0/CMakeLists.txt apt-2.2.0.mod/CMakeLists.txt ---- apt-2.2.0/CMakeLists.txt 2020-12-10 16:40:27.000000000 +0200 -+++ apt-2.2.0.mod/CMakeLists.txt 2020-12-11 18:10:24.236801758 +0200 -@@ -189,14 +189,6 @@ +Only in ./apt-pkg: CMakeLists.txt.orig +diff -u -r ../apt-2.9.3/CMakeLists.txt ./CMakeLists.txt +--- ../apt-2.9.3/CMakeLists.txt 2024-05-14 11:01:31.000000000 +0000 ++++ ./CMakeLists.txt 2024-05-14 18:38:48.263646165 +0000 +@@ -195,14 +195,6 @@ endif() endif() @@ -28,18 +29,19 @@ diff -uNr apt-2.2.0/CMakeLists.txt apt-2.2.0.mod/CMakeLists.txt # Configure some variables like package, version and architecture. set(PACKAGE ${PROJECT_NAME}) set(PACKAGE_MAIL "APT Development Team ") -@@ -209,10 +201,6 @@ +@@ -216,11 +208,6 @@ 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) +- OUTPUT_VARIABLE COMMON_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE +- COMMAND_ERROR_IS_FATAL ANY) -endif() if (NOT DEFINED ROOT_GROUP) execute_process(COMMAND id -gn root - OUTPUT_VARIABLE ROOT_GROUP OUTPUT_STRIP_TRAILING_WHITESPACE) -@@ -243,7 +231,6 @@ + OUTPUT_VARIABLE ROOT_GROUP OUTPUT_STRIP_TRAILING_WHITESPACE +@@ -254,7 +241,6 @@ add_subdirectory(dselect) add_subdirectory(ftparchive) add_subdirectory(methods) @@ -47,9 +49,30 @@ diff -uNr apt-2.2.0/CMakeLists.txt apt-2.2.0.mod/CMakeLists.txt if (USE_NLS) add_subdirectory(po) -diff -uNr apt-2.1.13/methods/CMakeLists.txt apt-2.1.13.mod/methods/CMakeLists.txt ---- apt-2.1.13/methods/CMakeLists.txt 2020-12-10 16:40:27.000000000 +0200 -+++ apt-2.1.13.mod/methods/CMakeLists.txt 2020-12-11 18:11:00.833144879 +0200 +Only in .: CMakeLists.txt.orig +Only in .: CMakeLists.txt.rej +diff -u -r ../apt-2.9.3/doc/CMakeLists.txt ./doc/CMakeLists.txt +--- ../apt-2.9.3/doc/CMakeLists.txt 2024-05-14 11:01:31.000000000 +0000 ++++ ./doc/CMakeLists.txt 2024-05-14 18:33:35.040473072 +0000 +@@ -3,15 +3,6 @@ + endif() + + set(LINGUAS +- de +- es +- fr +- it +- ja +- nl +- pl +- pt_BR +- pt + ) + + set(TRANSLATED_ENTITIES +diff -u -r ../apt-2.9.3/methods/CMakeLists.txt ./methods/CMakeLists.txt +--- ../apt-2.9.3/methods/CMakeLists.txt 2024-05-14 11:01:31.000000000 +0000 ++++ ./methods/CMakeLists.txt 2024-05-14 18:33:35.040473072 +0000 @@ -11,7 +11,6 @@ add_executable(cdrom cdrom.cc) add_executable(http http.cc basehttp.cc $) @@ -58,11 +81,11 @@ diff -uNr apt-2.1.13/methods/CMakeLists.txt apt-2.1.13.mod/methods/CMakeLists.tx add_executable(rred rred.cc) add_executable(rsh rsh.cc) -@@ -21,12 +20,11 @@ +@@ -23,12 +22,11 @@ # Additional libraries to link against for networked stuff - target_link_libraries(http ${GNUTLS_LIBRARIES} $<$:${SYSTEMD_LIBRARIES}>) --target_link_libraries(ftp ${GNUTLS_LIBRARIES}) + target_link_libraries(http $<$:${GNUTLS_LIBRARIES}> $<$:${SYSTEMD_LIBRARIES}>) +-target_link_libraries(ftp $<$:${GNUTLS_LIBRARIES}>) target_link_libraries(rred apt-private) @@ -72,23 +95,3 @@ diff -uNr apt-2.1.13/methods/CMakeLists.txt apt-2.1.13.mod/methods/CMakeLists.tx RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/methods) add_links(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods mirror mirror+ftp mirror+http mirror+https mirror+file mirror+copy) -diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt -index 3060949..3ce03b6 100644 ---- a/doc/CMakeLists.txt -+++ b/doc/CMakeLists.txt -@@ -1,15 +1,6 @@ - include(Documentation) - - set(LINGUAS -- de -- es -- fr -- it -- ja -- nl -- pl -- pt_BR -- pt - ) - - set(TRANSLATED_ENTITIES diff --git a/packages/apt/build.sh b/packages/apt/build.sh index 5bf37bd6005835..f0af793eecd024 100644 --- a/packages/apt/build.sh +++ b/packages/apt/build.sh @@ -2,11 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://packages.debian.org/apt TERMUX_PKG_DESCRIPTION="Front-end for the dpkg package manager" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION="2.7.12" -TERMUX_PKG_REVISION=2 -# old tarball are removed in https://deb.debian.org/debian/pool/main/a/apt/apt_${TERMUX_PKG_VERSION}.tar.xz -TERMUX_PKG_SRCURL=https://salsa.debian.org/apt-team/apt/-/archive/${TERMUX_PKG_VERSION}/apt-${TERMUX_PKG_VERSION}.tar.bz2 -TERMUX_PKG_SHA256=8fd7a30e565fd218587a456da633156275d633003d41613bf93e4411259fe45f +TERMUX_PKG_VERSION="2.9.4" +TERMUX_PKG_SRCURL=https://deb.debian.org/debian/pool/main/a/apt/apt_${TERMUX_PKG_VERSION}.tar.xz +TERMUX_PKG_SHA256=45aea378933b9e468f656051ed2bfcf93bab02bb350f94e8754727eb17b407a4 # apt-key requires utilities from coreutils, findutils, gpgv, grep, sed. TERMUX_PKG_DEPENDS="coreutils, dpkg, findutils, gpgv, grep, libandroid-glob, libbz2, libc++, libgnutls, liblz4, liblzma, sed, termux-keyring, termux-licenses, xxhash, zlib, zstd" TERMUX_PKG_BUILD_DEPENDS="docbook-xsl"