diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-Do-not-init-tables-from-dpkg-configuration.patch | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch | 8 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt/0001-srvrec-Keep-support-for-older-resolver.patch | 44 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/apt_2.4.0.bb (renamed from meta/recipes-devtools/apt/apt_2.2.4.bb) | 3 |
4 files changed, 6 insertions, 51 deletions
diff --git a/meta/recipes-devtools/apt/apt/0001-Do-not-init-tables-from-dpkg-configuration.patch b/meta/recipes-devtools/apt/apt/0001-Do-not-init-tables-from-dpkg-configuration.patch index 72713c3b1a..59b9cd190f 100644 --- a/meta/recipes-devtools/apt/apt/0001-Do-not-init-tables-from-dpkg-configuration.patch +++ b/meta/recipes-devtools/apt/apt/0001-Do-not-init-tables-from-dpkg-configuration.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From c7a79e753e50f1a5f248ba5812c61616f2f524f0 Mon Sep 17 00:00:00 2001 | 1 | From 11ba49594ae9d11f0070198c146b5e437fa83022 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 10 May 2019 16:47:38 +0200 | 3 | Date: Fri, 10 May 2019 16:47:38 +0200 |
4 | Subject: [PATCH] Do not init tables from dpkg configuration | 4 | Subject: [PATCH] Do not init tables from dpkg configuration |
diff --git a/meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch b/meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch index 1517b47858..593ed7d096 100644 --- a/meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch +++ b/meta/recipes-devtools/apt/apt/0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 393ac20efc66bfc000a2457e093e369b934c5a50 Mon Sep 17 00:00:00 2001 | 1 | From 47c2b42af60ceefd8ed52b32a3a365facf0e05b8 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Thu, 21 May 2020 20:13:25 +0000 | 3 | Date: Thu, 21 May 2020 20:13:25 +0000 |
4 | Subject: [PATCH] Revert "always run 'dpkg --configure -a' at the end of our | 4 | Subject: [PATCH] Revert "always run 'dpkg --configure -a' at the end of our |
@@ -20,10 +20,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
20 | 1 file changed, 2 insertions(+), 7 deletions(-) | 20 | 1 file changed, 2 insertions(+), 7 deletions(-) |
21 | 21 | ||
22 | diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc | 22 | diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc |
23 | index 46a6dee..8617a9e 100644 | 23 | index 93effa9..4375781 100644 |
24 | --- a/apt-pkg/deb/dpkgpm.cc | 24 | --- a/apt-pkg/deb/dpkgpm.cc |
25 | +++ b/apt-pkg/deb/dpkgpm.cc | 25 | +++ b/apt-pkg/deb/dpkgpm.cc |
26 | @@ -1211,12 +1211,6 @@ void pkgDPkgPM::BuildPackagesProgressMap() | 26 | @@ -1199,12 +1199,6 @@ void pkgDPkgPM::BuildPackagesProgressMap() |
27 | } | 27 | } |
28 | } | 28 | } |
29 | } | 29 | } |
@@ -36,7 +36,7 @@ index 46a6dee..8617a9e 100644 | |||
36 | } | 36 | } |
37 | /*}}}*/ | 37 | /*}}}*/ |
38 | void pkgDPkgPM::StartPtyMagic() /*{{{*/ | 38 | void pkgDPkgPM::StartPtyMagic() /*{{{*/ |
39 | @@ -1710,7 +1704,8 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress) | 39 | @@ -1741,7 +1735,8 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress) |
40 | 40 | ||
41 | // support subpressing of triggers processing for special | 41 | // support subpressing of triggers processing for special |
42 | // cases like d-i that runs the triggers handling manually | 42 | // cases like d-i that runs the triggers handling manually |
diff --git a/meta/recipes-devtools/apt/apt/0001-srvrec-Keep-support-for-older-resolver.patch b/meta/recipes-devtools/apt/apt/0001-srvrec-Keep-support-for-older-resolver.patch deleted file mode 100644 index 94d67a87ac..0000000000 --- a/meta/recipes-devtools/apt/apt/0001-srvrec-Keep-support-for-older-resolver.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From f98c12b9f04ef3a9daec822c210044095b41a0ac Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 20 Mar 2021 12:33:34 -0700 | ||
4 | Subject: [PATCH] srvrec: Keep support for older resolver | ||
5 | |||
6 | Some C libraries e.g. musl do not implement the new res_n* APIs | ||
7 | therefore keep the old implementation as fallback and check __RES | ||
8 | version macro to determine the API level | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/Debian/apt/pull/129] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | Cc: Julian Andres Klode <julian.klode@canonical.com> | ||
13 | --- | ||
14 | apt-pkg/contrib/srvrec.cc | 7 +++++++ | ||
15 | 1 file changed, 7 insertions(+) | ||
16 | |||
17 | diff --git a/apt-pkg/contrib/srvrec.cc b/apt-pkg/contrib/srvrec.cc | ||
18 | index 4ca208273..3eb5f1d4c 100644 | ||
19 | --- a/apt-pkg/contrib/srvrec.cc | ||
20 | +++ b/apt-pkg/contrib/srvrec.cc | ||
21 | @@ -62,6 +62,7 @@ bool GetSrvRecords(std::string name, std::vector<SrvRec> &Result) | ||
22 | unsigned char answer[PACKETSZ]; | ||
23 | int answer_len, compressed_name_len; | ||
24 | int answer_count; | ||
25 | +#if __RES >= 19991006 | ||
26 | struct __res_state res; | ||
27 | |||
28 | if (res_ninit(&res) != 0) | ||
29 | @@ -71,6 +72,12 @@ bool GetSrvRecords(std::string name, std::vector<SrvRec> &Result) | ||
30 | std::shared_ptr<void> guard(&res, res_nclose); | ||
31 | |||
32 | answer_len = res_nquery(&res, name.c_str(), C_IN, T_SRV, answer, sizeof(answer)); | ||
33 | +#else | ||
34 | + if (res_init() != 0) | ||
35 | + return _error->Errno("res_init", "Failed to init resolver"); | ||
36 | + | ||
37 | + answer_len = res_query(name.c_str(), C_IN, T_SRV, answer, sizeof(answer)); | ||
38 | +#endif //__RES >= 19991006 | ||
39 | if (answer_len == -1) | ||
40 | return false; | ||
41 | if (answer_len < (int)sizeof(HEADER)) | ||
42 | -- | ||
43 | 2.31.0 | ||
44 | |||
diff --git a/meta/recipes-devtools/apt/apt_2.2.4.bb b/meta/recipes-devtools/apt/apt_2.4.0.bb index aef309840b..c95e36e3d0 100644 --- a/meta/recipes-devtools/apt/apt_2.2.4.bb +++ b/meta/recipes-devtools/apt/apt_2.4.0.bb | |||
@@ -10,7 +10,6 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/${BPN}_${PV}.tar.xz \ | |||
10 | file://0001-Disable-documentation-directory-altogether.patch \ | 10 | file://0001-Disable-documentation-directory-altogether.patch \ |
11 | file://0001-Fix-musl-build.patch \ | 11 | file://0001-Fix-musl-build.patch \ |
12 | file://0001-CMakeLists.txt-avoid-changing-install-paths-based-on.patch \ | 12 | file://0001-CMakeLists.txt-avoid-changing-install-paths-based-on.patch \ |
13 | file://0001-srvrec-Keep-support-for-older-resolver.patch \ | ||
14 | file://0001-cmake-Do-not-build-po-files.patch \ | 13 | file://0001-cmake-Do-not-build-po-files.patch \ |
15 | file://0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch \ | 14 | file://0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch \ |
16 | file://0001-aptwebserver.cc-Include-array.patch \ | 15 | file://0001-aptwebserver.cc-Include-array.patch \ |
@@ -26,7 +25,7 @@ SRC_URI:append:class-nativesdk = " \ | |||
26 | file://0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch \ | 25 | file://0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch \ |
27 | " | 26 | " |
28 | 27 | ||
29 | SRC_URI[sha256sum] = "6eecd04a4979bd2040b22a14571c15d342c4e1802b2023acb5aa19649b1f64ea" | 28 | SRC_URI[sha256sum] = "728c69df369cbc4a55f91fc2817fe9832c1a2f39de4142e7ef222c5158f234af" |
30 | LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 29 | LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
31 | 30 | ||
32 | # the package is taken from snapshots.debian.org; that source is static and goes stale | 31 | # the package is taken from snapshots.debian.org; that source is static and goes stale |