From b1df0e16b92fbbf1aee3bf9592de72a7107dcf12 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 19 Mar 2025 01:15:35 -0700 Subject: readline: Fixed build with GCC-15 (From OE-Core rev: 58bfcc0d3adcdfc8da63dd552ad54376a0f20b93) Signed-off-by: Khem Raj Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- ...-packages-that-are-not-compatible-with-C2.patch | 29 ++++++++++++++++++++++ meta/recipes-core/readline/readline_8.2.13.bb | 4 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-core/readline/readline/0001-Add-fix-for-packages-that-are-not-compatible-with-C2.patch diff --git a/meta/recipes-core/readline/readline/0001-Add-fix-for-packages-that-are-not-compatible-with-C2.patch b/meta/recipes-core/readline/readline/0001-Add-fix-for-packages-that-are-not-compatible-with-C2.patch new file mode 100644 index 0000000000..3bb4d53960 --- /dev/null +++ b/meta/recipes-core/readline/readline/0001-Add-fix-for-packages-that-are-not-compatible-with-C2.patch @@ -0,0 +1,29 @@ +From 9459ee899a291c55f08341df63e9a1b9b7af200a Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 16 Mar 2025 12:48:46 -0700 +Subject: [PATCH] Add fix for packages that are not compatible with C23 + +Fixes builds with GCC-15 +Sourced from Fedora: https://src.fedoraproject.org/rpms/readline/c/c47eb813afb942128253213ad5b8221770557e48?branch=rawhide + +Help getting packages like bluez5 building + +Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-readline/2025-03/msg00001.html] +Signed-off-by: Khem Raj +--- + rlstdc.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/rlstdc.h b/rlstdc.h +index 2aaa30b..a7a0ef3 100644 +--- a/rlstdc.h ++++ b/rlstdc.h +@@ -44,7 +44,7 @@ + + /* Moved from config.h.in because readline.h:rl_message depends on these + defines. */ +-#if defined (__STDC__) && defined (HAVE_STDARG_H) ++#if defined (__STDC__) + # define PREFER_STDARG + # define USE_VARARGS + #else diff --git a/meta/recipes-core/readline/readline_8.2.13.bb b/meta/recipes-core/readline/readline_8.2.13.bb index 78b988365a..19b5cb6f58 100644 --- a/meta/recipes-core/readline/readline_8.2.13.bb +++ b/meta/recipes-core/readline/readline_8.2.13.bb @@ -1,5 +1,7 @@ require readline.inc -SRC_URI += " file://norpath.patch" +SRC_URI += "file://norpath.patch \ + file://0001-Add-fix-for-packages-that-are-not-compatible-with-C2.patch \ + " SRC_URI[archive.sha256sum] = "0e5be4d2937e8bd9b7cd60d46721ce79f88a33415dd68c2d738fb5924638f656" -- cgit v1.2.3-54-g00ecf