diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2023-05-02 15:00:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-05 11:07:26 +0100 |
commit | aeccadeda808b6ea529384816ca26d037bc09174 (patch) | |
tree | d679b5843aafee965131f40b172c41f5ed07e641 /meta | |
parent | 2cd57b3f33803fb5f0bf12044941a2e1cc038b48 (diff) | |
download | poky-aeccadeda808b6ea529384816ca26d037bc09174.tar.gz |
apt: Upgrade to v2.6.0
Changes:
Rebase patches for upstream changes
Remove upstream applied patches
Update homepage
Update sha256sum for new version
(From OE-Core rev: 2e42fb105e474b5ab25f2d2ded55124838b39e8d)
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-Disable-documentation-directory-altogether.patch | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-Remove-using-std-binary_function.patch | 8 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-add-missing-cstdint-for-uint16_t.patch | 35 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-cmake-Do-not-build-po-files.patch | 9 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-typecast-time_t-and-suseconds_t-from-std-chrono.patch | 64 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt/0002-interactive-helper-Undefine-_FORTIFY_SOURCE.patch | 27 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt_2.6.0.bb (renamed from meta/recipes-devtools/apt/apt_2.4.5.bb) | 7 |
7 files changed, 13 insertions, 143 deletions
diff --git a/meta/recipes-devtools/apt/apt/0001-Disable-documentation-directory-altogether.patch b/meta/recipes-devtools/apt/apt/0001-Disable-documentation-directory-altogether.patch index 8b28ede8a8..5443ff6caa 100644 --- a/meta/recipes-devtools/apt/apt/0001-Disable-documentation-directory-altogether.patch +++ b/meta/recipes-devtools/apt/apt/0001-Disable-documentation-directory-altogether.patch | |||
@@ -13,11 +13,11 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
14 | 14 | ||
15 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 15 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
16 | index 9745c13..7cfc9ee 100644 | 16 | index 668e2d762..62f441bfa 100644 |
17 | --- a/CMakeLists.txt | 17 | --- a/CMakeLists.txt |
18 | +++ b/CMakeLists.txt | 18 | +++ b/CMakeLists.txt |
19 | @@ -239,7 +239,7 @@ add_subdirectory(apt-pkg) | 19 | @@ -246,7 +246,7 @@ add_subdirectory(apt-private) |
20 | add_subdirectory(apt-private) | 20 | endif() |
21 | add_subdirectory(cmdline) | 21 | add_subdirectory(cmdline) |
22 | add_subdirectory(completions) | 22 | add_subdirectory(completions) |
23 | -add_subdirectory(doc) | 23 | -add_subdirectory(doc) |
diff --git a/meta/recipes-devtools/apt/apt/0001-Remove-using-std-binary_function.patch b/meta/recipes-devtools/apt/apt/0001-Remove-using-std-binary_function.patch index 3065210a04..15b036b90d 100644 --- a/meta/recipes-devtools/apt/apt/0001-Remove-using-std-binary_function.patch +++ b/meta/recipes-devtools/apt/apt/0001-Remove-using-std-binary_function.patch | |||
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 1 file changed, 10 insertions(+), 23 deletions(-) | 14 | 1 file changed, 10 insertions(+), 23 deletions(-) |
15 | 15 | ||
16 | diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc | 16 | diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc |
17 | index 87ce9153c..56fdc2246 100644 | 17 | index 0f6587281..0a253b12b 100644 |
18 | --- a/ftparchive/apt-ftparchive.cc | 18 | --- a/ftparchive/apt-ftparchive.cc |
19 | +++ b/ftparchive/apt-ftparchive.cc | 19 | +++ b/ftparchive/apt-ftparchive.cc |
20 | @@ -48,6 +48,11 @@ | 20 | @@ -48,6 +48,11 @@ |
@@ -33,19 +33,19 @@ index 87ce9153c..56fdc2246 100644 | |||
33 | bool SrcDone; | 33 | bool SrcDone; |
34 | time_t ContentsMTime; | 34 | time_t ContentsMTime; |
35 | 35 | ||
36 | - struct ContentsCompare : public binary_function<PackageMap,PackageMap,bool> | 36 | - struct ContentsCompare |
37 | - { | 37 | - { |
38 | - inline bool operator() (const PackageMap &x,const PackageMap &y) | 38 | - inline bool operator() (const PackageMap &x,const PackageMap &y) |
39 | - {return x.ContentsMTime < y.ContentsMTime;}; | 39 | - {return x.ContentsMTime < y.ContentsMTime;}; |
40 | - }; | 40 | - }; |
41 | - | 41 | - |
42 | - struct DBCompare : public binary_function<PackageMap,PackageMap,bool> | 42 | - struct DBCompare |
43 | - { | 43 | - { |
44 | - inline bool operator() (const PackageMap &x,const PackageMap &y) | 44 | - inline bool operator() (const PackageMap &x,const PackageMap &y) |
45 | - {return x.BinCacheDB < y.BinCacheDB;}; | 45 | - {return x.BinCacheDB < y.BinCacheDB;}; |
46 | - }; | 46 | - }; |
47 | - | 47 | - |
48 | - struct SrcDBCompare : public binary_function<PackageMap,PackageMap,bool> | 48 | - struct SrcDBCompare |
49 | - { | 49 | - { |
50 | - inline bool operator() (const PackageMap &x,const PackageMap &y) | 50 | - inline bool operator() (const PackageMap &x,const PackageMap &y) |
51 | - {return x.SrcCacheDB < y.SrcCacheDB;}; | 51 | - {return x.SrcCacheDB < y.SrcCacheDB;}; |
diff --git a/meta/recipes-devtools/apt/apt/0001-add-missing-cstdint-for-uint16_t.patch b/meta/recipes-devtools/apt/apt/0001-add-missing-cstdint-for-uint16_t.patch deleted file mode 100644 index 44aa8a5873..0000000000 --- a/meta/recipes-devtools/apt/apt/0001-add-missing-cstdint-for-uint16_t.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 960d10e89cf60d39998dae6fdcd4f0866b753a79 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 23 Jan 2023 12:31:35 -0800 | ||
4 | Subject: [PATCH] add missing <cstdint> for uint16_t | ||
5 | |||
6 | This fixes build problems with gcc 13 snapshot [1] | ||
7 | |||
8 | Fixes | ||
9 | | include/apt-pkg/pkgcache.h:257:23: warning: cast from 'char*' to 'const uint16_t*' {aka 'const short unsigned int*'} increases required alignment of target type [-Wcast-align] | ||
10 | | 257 | uint16_t len = *reinterpret_cast<const uint16_t*>(name - sizeof(uint16_t)); | ||
11 | | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
12 | |||
13 | [1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html | ||
14 | |||
15 | Upstream-Status: Submitted [https://salsa.debian.org/apt-team/apt/-/merge_requests/276] | ||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | --- | ||
18 | apt-pkg/contrib/mmap.cc | 1 + | ||
19 | 1 file changed, 1 insertion(+) | ||
20 | |||
21 | diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc | ||
22 | index 642e20473..0568e1cd0 100644 | ||
23 | --- a/apt-pkg/contrib/mmap.cc | ||
24 | +++ b/apt-pkg/contrib/mmap.cc | ||
25 | @@ -23,6 +23,7 @@ | ||
26 | #include <apt-pkg/macros.h> | ||
27 | #include <apt-pkg/mmap.h> | ||
28 | |||
29 | +#include <cstdint> | ||
30 | #include <cstring> | ||
31 | #include <string> | ||
32 | #include <errno.h> | ||
33 | -- | ||
34 | 2.39.1 | ||
35 | |||
diff --git a/meta/recipes-devtools/apt/apt/0001-cmake-Do-not-build-po-files.patch b/meta/recipes-devtools/apt/apt/0001-cmake-Do-not-build-po-files.patch index 2837b7f1b3..036ce35963 100644 --- a/meta/recipes-devtools/apt/apt/0001-cmake-Do-not-build-po-files.patch +++ b/meta/recipes-devtools/apt/apt/0001-cmake-Do-not-build-po-files.patch | |||
@@ -15,16 +15,18 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
15 | 1 file changed, 7 deletions(-) | 15 | 1 file changed, 7 deletions(-) |
16 | 16 | ||
17 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 17 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
18 | index 3c8ec3f..821a24f 100644 | 18 | index be157a55f..54163ae6c 100644 |
19 | --- a/CMakeLists.txt | 19 | --- a/CMakeLists.txt |
20 | +++ b/CMakeLists.txt | 20 | +++ b/CMakeLists.txt |
21 | @@ -245,13 +245,6 @@ add_subdirectory(ftparchive) | 21 | @@ -252,15 +252,6 @@ add_subdirectory(ftparchive) |
22 | add_subdirectory(methods) | 22 | add_subdirectory(methods) |
23 | add_subdirectory(test) | 23 | add_subdirectory(test) |
24 | 24 | ||
25 | -if (USE_NLS) | 25 | -if (USE_NLS) |
26 | -add_subdirectory(po) | 26 | -add_subdirectory(po) |
27 | -endif() | ||
27 | - | 28 | - |
29 | -if(TARGET update-po AND TARGET update-po4a) | ||
28 | -# Link update-po4a into the update-po target | 30 | -# Link update-po4a into the update-po target |
29 | -add_dependencies(update-po update-po4a) | 31 | -add_dependencies(update-po update-po4a) |
30 | -endif() | 32 | -endif() |
@@ -32,6 +34,3 @@ index 3c8ec3f..821a24f 100644 | |||
32 | # Create our directories. | 34 | # Create our directories. |
33 | install_empty_directories( | 35 | install_empty_directories( |
34 | ${CONF_DIR}/apt.conf.d | 36 | ${CONF_DIR}/apt.conf.d |
35 | -- | ||
36 | 2.31.0 | ||
37 | |||
diff --git a/meta/recipes-devtools/apt/apt/0001-typecast-time_t-and-suseconds_t-from-std-chrono.patch b/meta/recipes-devtools/apt/apt/0001-typecast-time_t-and-suseconds_t-from-std-chrono.patch deleted file mode 100644 index fc3509d336..0000000000 --- a/meta/recipes-devtools/apt/apt/0001-typecast-time_t-and-suseconds_t-from-std-chrono.patch +++ /dev/null | |||
@@ -1,64 +0,0 @@ | |||
1 | From b7a1a4d3259557f2587f7d5d47502691d94c21c2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 16 Sep 2022 20:00:30 -0700 | ||
4 | Subject: [PATCH 1/2] typecast time_t and suseconds_t from std::chrono | ||
5 | |||
6 | This fixes build on some architectures like mips | ||
7 | progress.cc:125:31: error: non-constant-expression cannot be narrowed from type 'std::chrono::duration<long long>::rep' (aka 'long long') to '__time_t' (aka 'long') in initializer list [-Wc++11-narrowing] | ||
8 | struct timeval NowTime = { Now_sec.count(), Now_usec.count() }; | ||
9 | |||
10 | Upstream-Status: Submitted [https://salsa.debian.org/apt-team/apt/-/merge_requests/259] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | apt-pkg/acquire.cc | 4 ++-- | ||
14 | apt-pkg/contrib/progress.cc | 2 +- | ||
15 | ftparchive/apt-ftparchive.cc | 2 +- | ||
16 | 3 files changed, 4 insertions(+), 4 deletions(-) | ||
17 | |||
18 | diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc | ||
19 | index 100ccde..dd0624a 100644 | ||
20 | --- a/apt-pkg/acquire.cc | ||
21 | +++ b/apt-pkg/acquire.cc | ||
22 | @@ -53,11 +53,11 @@ | ||
23 | using namespace std; | ||
24 | |||
25 | // helper to convert time_point to a timeval | ||
26 | -static struct timeval SteadyDurationToTimeVal(std::chrono::steady_clock::duration Time) | ||
27 | +constexpr struct timeval SteadyDurationToTimeVal(std::chrono::steady_clock::duration Time) | ||
28 | { | ||
29 | auto const Time_sec = std::chrono::duration_cast<std::chrono::seconds>(Time); | ||
30 | auto const Time_usec = std::chrono::duration_cast<std::chrono::microseconds>(Time - Time_sec); | ||
31 | - return {Time_sec.count(), Time_usec.count()}; | ||
32 | + return timeval{static_cast<time_t>(Time_sec.count()), static_cast<suseconds_t>(Time_usec.count())}; | ||
33 | } | ||
34 | |||
35 | std::string pkgAcquire::URIEncode(std::string const &part) /*{{{*/ | ||
36 | diff --git a/apt-pkg/contrib/progress.cc b/apt-pkg/contrib/progress.cc | ||
37 | index 03f88d4..eb688b9 100644 | ||
38 | --- a/apt-pkg/contrib/progress.cc | ||
39 | +++ b/apt-pkg/contrib/progress.cc | ||
40 | @@ -122,7 +122,7 @@ bool OpProgress::CheckChange(float Interval) | ||
41 | auto const Now = std::chrono::steady_clock::now().time_since_epoch(); | ||
42 | auto const Now_sec = std::chrono::duration_cast<std::chrono::seconds>(Now); | ||
43 | auto const Now_usec = std::chrono::duration_cast<std::chrono::microseconds>(Now - Now_sec); | ||
44 | - struct timeval NowTime = { Now_sec.count(), Now_usec.count() }; | ||
45 | + struct timeval NowTime = { static_cast<time_t>(Now_sec.count()), static_cast<suseconds_t>(Now_usec.count()) }; | ||
46 | |||
47 | std::chrono::duration<decltype(Interval)> Delta = | ||
48 | std::chrono::seconds(NowTime.tv_sec - LastTime.tv_sec) + | ||
49 | diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc | ||
50 | index 56fdc22..0a253b1 100644 | ||
51 | --- a/ftparchive/apt-ftparchive.cc | ||
52 | +++ b/ftparchive/apt-ftparchive.cc | ||
53 | @@ -58,7 +58,7 @@ static struct timeval GetTimevalFromSteadyClock() /*{{{*/ | ||
54 | auto const Time = std::chrono::steady_clock::now().time_since_epoch(); | ||
55 | auto const Time_sec = std::chrono::duration_cast<std::chrono::seconds>(Time); | ||
56 | auto const Time_usec = std::chrono::duration_cast<std::chrono::microseconds>(Time - Time_sec); | ||
57 | - return { Time_sec.count(), Time_usec.count() }; | ||
58 | + return { static_cast<time_t>(Time_sec.count()), static_cast<suseconds_t>(Time_usec.count()) }; | ||
59 | } | ||
60 | /*}}}*/ | ||
61 | static auto GetTimeDeltaSince(struct timeval StartTime) /*{{{*/ | ||
62 | -- | ||
63 | 2.37.3 | ||
64 | |||
diff --git a/meta/recipes-devtools/apt/apt/0002-interactive-helper-Undefine-_FORTIFY_SOURCE.patch b/meta/recipes-devtools/apt/apt/0002-interactive-helper-Undefine-_FORTIFY_SOURCE.patch deleted file mode 100644 index 18c4641b22..0000000000 --- a/meta/recipes-devtools/apt/apt/0002-interactive-helper-Undefine-_FORTIFY_SOURCE.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | From 891076c2cf4298b5d587545497f4831f0d21caa1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 16 Sep 2022 20:04:43 -0700 | ||
4 | Subject: [PATCH 2/2] interactive-helper: Undefine _FORTIFY_SOURCE | ||
5 | |||
6 | This ensures that it compiles when clang compiler is passing | ||
7 | -DFORTIFY_SOURCES=2 | ||
8 | |||
9 | Upstream-Status: Submitted [https://salsa.debian.org/apt-team/apt/-/merge_requests/259] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | test/interactive-helper/libnoprofile.c | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/test/interactive-helper/libnoprofile.c b/test/interactive-helper/libnoprofile.c | ||
16 | index f11b898..b26ec2a 100644 | ||
17 | --- a/test/interactive-helper/libnoprofile.c | ||
18 | +++ b/test/interactive-helper/libnoprofile.c | ||
19 | @@ -1,4 +1,5 @@ | ||
20 | #define _GNU_SOURCE | ||
21 | +#undef _FORTIFY_SOURCE | ||
22 | #include <stdarg.h> | ||
23 | #include <stdlib.h> | ||
24 | #include <string.h> | ||
25 | -- | ||
26 | 2.37.3 | ||
27 | |||
diff --git a/meta/recipes-devtools/apt/apt_2.4.5.bb b/meta/recipes-devtools/apt/apt_2.6.0.bb index 429cf6e659..b872be8371 100644 --- a/meta/recipes-devtools/apt/apt_2.4.5.bb +++ b/meta/recipes-devtools/apt/apt_2.6.0.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | SUMMARY = "Advanced front-end for dpkg" | 1 | SUMMARY = "Advanced front-end for dpkg" |
2 | DESCRIPTION = "APT is the Advanced Package Tool, an advanced interface to the Debian packaging system which provides the apt-get program." | 2 | DESCRIPTION = "APT is the Advanced Package Tool, an advanced interface to the Debian packaging system which provides the apt-get program." |
3 | HOMEPAGE = "https://packages.debian.org/jessie/apt" | 3 | HOMEPAGE = "https://packages.debian.org/sid/apt" |
4 | LICENSE = "GPL-2.0-or-later" | 4 | LICENSE = "GPL-2.0-or-later" |
5 | SECTION = "base" | 5 | SECTION = "base" |
6 | 6 | ||
@@ -14,9 +14,6 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/${BPN}_${PV}.tar.xz \ | |||
14 | file://0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch \ | 14 | file://0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch \ |
15 | file://0001-aptwebserver.cc-Include-array.patch \ | 15 | file://0001-aptwebserver.cc-Include-array.patch \ |
16 | file://0001-Remove-using-std-binary_function.patch \ | 16 | file://0001-Remove-using-std-binary_function.patch \ |
17 | file://0001-typecast-time_t-and-suseconds_t-from-std-chrono.patch \ | ||
18 | file://0002-interactive-helper-Undefine-_FORTIFY_SOURCE.patch \ | ||
19 | file://0001-add-missing-cstdint-for-uint16_t.patch \ | ||
20 | " | 17 | " |
21 | 18 | ||
22 | SRC_URI:append:class-native = " \ | 19 | SRC_URI:append:class-native = " \ |
@@ -29,7 +26,7 @@ SRC_URI:append:class-nativesdk = " \ | |||
29 | file://0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch \ | 26 | file://0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch \ |
30 | " | 27 | " |
31 | 28 | ||
32 | SRC_URI[sha256sum] = "5552f175c3a3924f5cda0c079b821b30f68a2521959f2c30ab164d2ec7993ecf" | 29 | SRC_URI[sha256sum] = "43467d1ca7de6c0955fd991925433e22fa66230870e5f66c4498675d01776c2a" |
33 | LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 30 | LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
34 | 31 | ||
35 | # the package is taken from snapshots.debian.org; that source is static and goes stale | 32 | # the package is taken from snapshots.debian.org; that source is static and goes stale |