readline: Fixed build with GCC-15

(From OE-Core rev: 58bfcc0d3adcdfc8da63dd552ad54376a0f20b93)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2025-03-19 01:15:35 -07:00
committed by Richard Purdie
parent c0f3bc79b3
commit b1df0e16b9
2 changed files with 32 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
From 9459ee899a291c55f08341df63e9a1b9b7af200a Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
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 <raj.khem@gmail.com>
---
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

View File

@@ -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"