summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-04-07 11:40:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-10 11:05:34 +0100
commita782647c2a36abedaa03d9214b03f8e65e79ee58 (patch)
treee41d47e1f5dde8f467b40c0ea1cb2cb07a9f05cd /meta/recipes-devtools/apt
parent9e02a50e5983f6229159877de3b83686791b3bcb (diff)
downloadpoky-a782647c2a36abedaa03d9214b03f8e65e79ee58.tar.gz
apt: remove 0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch
The recipe unconditionally disables seccomp, so the code isn't even compiled. If this needs to come back in the future please submit upstream first. (From OE-Core rev: 9d058504213f79979a7f1f59527172b71df95a71) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt')
-rw-r--r--meta/recipes-devtools/apt/apt/0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch48
-rw-r--r--meta/recipes-devtools/apt/apt_2.6.1.bb1
2 files changed, 0 insertions, 49 deletions
diff --git a/meta/recipes-devtools/apt/apt/0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch b/meta/recipes-devtools/apt/apt/0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch
deleted file mode 100644
index f1816836b5..0000000000
--- a/meta/recipes-devtools/apt/apt/0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch
+++ /dev/null
@@ -1,48 +0,0 @@
1From e849b161ce1d87ab369b921438abcf5b3a03e186 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 25 Apr 2021 08:57:03 -0700
4Subject: [PATCH] Hide fstatat64 and prlimit64 defines on musl
5
6musl defines fstatat64 and prlimit64 as macros which confuses the
7seccomp sysall rewiring since there are syscalls with same names
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 methods/aptmethod.h | 12 ++++++++++--
13 1 file changed, 10 insertions(+), 2 deletions(-)
14
15diff --git a/methods/aptmethod.h b/methods/aptmethod.h
16index bd50e80..3085aed 100644
17--- a/methods/aptmethod.h
18+++ b/methods/aptmethod.h
19@@ -121,6 +121,12 @@ protected:
20 if (ctx == NULL)
21 return _error->FatalE("HttpMethod::Configuration", "Cannot init seccomp");
22
23+#ifndef __GLIBC__
24+#pragma push_macro("fstatat64")
25+#pragma push_macro("prlimit64")
26+#undef fstatat64
27+#undef prlimit64
28+#endif
29 #define ALLOW(what) \
30 if ((rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(what), 0))) \
31 return _error->FatalE("HttpMethod::Configuration", "Cannot allow %s: %s", #what, strerror(-rc));
32@@ -320,9 +326,11 @@ protected:
33 if ((rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, seccomp_syscall_resolve_name(custom.c_str()), 0)))
34 return _error->FatalE("aptMethod::Configuration", "Cannot allow %s: %s", custom.c_str(), strerror(-rc));
35 }
36-
37 #undef ALLOW
38-
39+#ifndef __GLIBC__
40+#pragma pop_macro("fstatat64")
41+#pragma pop_macro("prlimit64")
42+#endif
43 rc = seccomp_load(ctx);
44 if (rc == -EINVAL)
45 {
46--
472.31.1
48
diff --git a/meta/recipes-devtools/apt/apt_2.6.1.bb b/meta/recipes-devtools/apt/apt_2.6.1.bb
index 62a674d62b..d605d950dd 100644
--- a/meta/recipes-devtools/apt/apt_2.6.1.bb
+++ b/meta/recipes-devtools/apt/apt_2.6.1.bb
@@ -11,7 +11,6 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/${BPN}_${PV}.tar.xz \
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-cmake-Do-not-build-po-files.patch \ 13 file://0001-cmake-Do-not-build-po-files.patch \
14 file://0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch \
15 file://0001-aptwebserver.cc-Include-array.patch \ 14 file://0001-aptwebserver.cc-Include-array.patch \
16 file://0001-Remove-using-std-binary_function.patch \ 15 file://0001-Remove-using-std-binary_function.patch \
17 file://0001-strutl-Add-missing-include-cstdint-gcc-15.patch \ 16 file://0001-strutl-Add-missing-include-cstdint-gcc-15.patch \