From: Khem Raj Date: Mon, 24 Mar 2025 16:33:40 +0000 (-0700) Subject: apt: Fix build with GCC 15 X-Git-Tag: yocto-5.2~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac53f79999bb8301380d7c58025f6fed75e40c9a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git apt: Fix build with GCC 15 Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/apt/apt/0001-strutl-Add-missing-include-cstdint-gcc-15.patch b/meta/recipes-devtools/apt/apt/0001-strutl-Add-missing-include-cstdint-gcc-15.patch new file mode 100644 index 00000000000..b86ed8bb92d --- /dev/null +++ b/meta/recipes-devtools/apt/apt/0001-strutl-Add-missing-include-cstdint-gcc-15.patch @@ -0,0 +1,26 @@ +From 9da1b0dbdcc90455bc9de49f73a96e7d18f83493 Mon Sep 17 00:00:00 2001 +From: Julian Andres Klode +Date: Tue, 18 Feb 2025 10:29:40 +0100 +Subject: [PATCH] strutl: Add missing #include [gcc 15] + +Closes: #1096322 + +Upstream-Status: Backport [https://salsa.debian.org/apt-team/apt/-/commit/f82dcd7e4ebb3f70d28e9feb3621676f8c0cc024] + +Signed-off-by: Khem Raj +--- + apt-pkg/contrib/strutl.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc +index 67100f1..c0a1cbc 100644 +--- a/apt-pkg/contrib/strutl.cc ++++ b/apt-pkg/contrib/strutl.cc +@@ -26,6 +26,7 @@ + + #include + #include ++#include + #include + #include + #include diff --git a/meta/recipes-devtools/apt/apt_2.6.1.bb b/meta/recipes-devtools/apt/apt_2.6.1.bb index 26a6d99f84d..62a674d62bb 100644 --- a/meta/recipes-devtools/apt/apt_2.6.1.bb +++ b/meta/recipes-devtools/apt/apt_2.6.1.bb @@ -14,6 +14,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/${BPN}_${PV}.tar.xz \ file://0001-Hide-fstatat64-and-prlimit64-defines-on-musl.patch \ file://0001-aptwebserver.cc-Include-array.patch \ file://0001-Remove-using-std-binary_function.patch \ + file://0001-strutl-Add-missing-include-cstdint-gcc-15.patch \ " SRC_URI:append:class-native = " \