diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-03-19 01:15:35 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-20 11:29:04 +0000 |
commit | b1df0e16b92fbbf1aee3bf9592de72a7107dcf12 (patch) | |
tree | 0718b230c19f5a975b99bc5c724c10c320a98f60 | |
parent | c0f3bc79b3e5d5b13c950cadfe558bbcd10187a0 (diff) | |
download | poky-b1df0e16b92fbbf1aee3bf9592de72a7107dcf12.tar.gz |
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>
-rw-r--r-- | meta/recipes-core/readline/readline/0001-Add-fix-for-packages-that-are-not-compatible-with-C2.patch | 29 | ||||
-rw-r--r-- | meta/recipes-core/readline/readline_8.2.13.bb | 4 |
2 files changed, 32 insertions, 1 deletions
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 @@ | |||
1 | From 9459ee899a291c55f08341df63e9a1b9b7af200a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 16 Mar 2025 12:48:46 -0700 | ||
4 | Subject: [PATCH] Add fix for packages that are not compatible with C23 | ||
5 | |||
6 | Fixes builds with GCC-15 | ||
7 | Sourced from Fedora: https://src.fedoraproject.org/rpms/readline/c/c47eb813afb942128253213ad5b8221770557e48?branch=rawhide | ||
8 | |||
9 | Help getting packages like bluez5 building | ||
10 | |||
11 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-readline/2025-03/msg00001.html] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | rlstdc.h | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/rlstdc.h b/rlstdc.h | ||
18 | index 2aaa30b..a7a0ef3 100644 | ||
19 | --- a/rlstdc.h | ||
20 | +++ b/rlstdc.h | ||
21 | @@ -44,7 +44,7 @@ | ||
22 | |||
23 | /* Moved from config.h.in because readline.h:rl_message depends on these | ||
24 | defines. */ | ||
25 | -#if defined (__STDC__) && defined (HAVE_STDARG_H) | ||
26 | +#if defined (__STDC__) | ||
27 | # define PREFER_STDARG | ||
28 | # define USE_VARARGS | ||
29 | #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 @@ | |||
1 | require readline.inc | 1 | require readline.inc |
2 | 2 | ||
3 | SRC_URI += " file://norpath.patch" | 3 | SRC_URI += "file://norpath.patch \ |
4 | file://0001-Add-fix-for-packages-that-are-not-compatible-with-C2.patch \ | ||
5 | " | ||
4 | 6 | ||
5 | SRC_URI[archive.sha256sum] = "0e5be4d2937e8bd9b7cd60d46721ce79f88a33415dd68c2d738fb5924638f656" | 7 | SRC_URI[archive.sha256sum] = "0e5be4d2937e8bd9b7cd60d46721ce79f88a33415dd68c2d738fb5924638f656" |