diff options
| author | Nguyen Dat Tho <tho3.nguyen@lge.com> | 2025-03-31 18:16:24 +0900 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-03-31 14:42:08 -0700 |
| commit | 54c58000316c2be807ace03a01e0a7b13a8f1e74 (patch) | |
| tree | 7e4ed710ba0781b81160f13f1d27458ac51f84d3 /meta-filesystems/recipes-filesystems | |
| parent | ffe4c94dca7a56d431b2e4bafec067e8bcf1c3fb (diff) | |
| download | meta-openembedded-54c58000316c2be807ace03a01e0a7b13a8f1e74.tar.gz | |
libburn: Fix build with gcc-15
Backport patch to fix the following error:
../libburn-1.5.6/test/poll.c: In function 'main':
../libburn-1.5.6/test/poll.c:67:27: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
67 | newact.sa_handler = catch_int;
| ^
../libburn-1.5.6/test/poll.c:17:13: note: 'catch_int' declared here
17 | static void catch_int ()
| ^~~~~~~~~
In file included from ../libburn-1.5.6/test/poll.c:9:
/home/worker/nano-ai/build-nano-ai/BUILD/work/qcs8550_aihub-webos-linux/libburn/1.5.6/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
make: *** [Makefile:1024: test/poll-poll.o] Error 1
Signed-off-by: Nguyen Dat Tho <tho3.nguyen@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-filesystems/recipes-filesystems')
| -rw-r--r-- | meta-filesystems/recipes-filesystems/burnia/libburn/0001-Bug-fix-Faulty-signal-handler-prototype-spoiled-comp.patch | 27 | ||||
| -rw-r--r-- | meta-filesystems/recipes-filesystems/burnia/libburn_1.5.6.bb | 4 |
2 files changed, 30 insertions, 1 deletions
diff --git a/meta-filesystems/recipes-filesystems/burnia/libburn/0001-Bug-fix-Faulty-signal-handler-prototype-spoiled-comp.patch b/meta-filesystems/recipes-filesystems/burnia/libburn/0001-Bug-fix-Faulty-signal-handler-prototype-spoiled-comp.patch new file mode 100644 index 0000000000..6061352cb7 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/burnia/libburn/0001-Bug-fix-Faulty-signal-handler-prototype-spoiled-comp.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From d537f9dd35282df834a311ead5f113af67d223b3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Thomas Schmitt <scdbackup@gmx.net> | ||
| 3 | Date: Tue, 26 Nov 2024 23:02:03 +0100 | ||
| 4 | Subject: [PATCH] Bug fix: Faulty signal handler prototype spoiled compilation | ||
| 5 | under C23 | ||
| 6 | |||
| 7 | Upstream-Status: Backport [https://dev.lovelyhq.com/libburnia/libburn/commit/d537f9dd35282df834a311ead5f113af67d223b3] | ||
| 8 | --- | ||
| 9 | test/poll.c | 2 +- | ||
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 11 | |||
| 12 | diff --git a/test/poll.c b/test/poll.c | ||
| 13 | index 660f384..cd5ff90 100644 | ||
| 14 | --- a/test/poll.c | ||
| 15 | +++ b/test/poll.c | ||
| 16 | @@ -14,7 +14,7 @@ static struct burn_drive_info *drives; | ||
| 17 | static unsigned int n_drives; | ||
| 18 | int NEXT; | ||
| 19 | |||
| 20 | -static void catch_int () | ||
| 21 | +static void catch_int (int signum) | ||
| 22 | { | ||
| 23 | NEXT = 1; | ||
| 24 | } | ||
| 25 | -- | ||
| 26 | 2.34.1 | ||
| 27 | |||
diff --git a/meta-filesystems/recipes-filesystems/burnia/libburn_1.5.6.bb b/meta-filesystems/recipes-filesystems/burnia/libburn_1.5.6.bb index e0f6664ab3..e84a60a543 100644 --- a/meta-filesystems/recipes-filesystems/burnia/libburn_1.5.6.bb +++ b/meta-filesystems/recipes-filesystems/burnia/libburn_1.5.6.bb | |||
| @@ -5,7 +5,9 @@ LICENSE = "GPL-2.0-or-later" | |||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \ | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \ |
| 6 | file://COPYRIGHT;md5=a91b9b862895b64e68e5b321873c9111" | 6 | file://COPYRIGHT;md5=a91b9b862895b64e68e5b321873c9111" |
| 7 | 7 | ||
| 8 | SRC_URI = "http://files.libburnia-project.org/releases/${BP}.tar.gz" | 8 | SRC_URI = "http://files.libburnia-project.org/releases/${BP}.tar.gz \ |
| 9 | file://0001-Bug-fix-Faulty-signal-handler-prototype-spoiled-comp.patch" | ||
| 10 | |||
| 9 | SRC_URI[sha256sum] = "7295491b4be5eeac5e7a3fb2067e236e2955ffdc6bbd45f546466edee321644b" | 11 | SRC_URI[sha256sum] = "7295491b4be5eeac5e7a3fb2067e236e2955ffdc6bbd45f546466edee321644b" |
| 10 | 12 | ||
| 11 | inherit autotools pkgconfig lib_package | 13 | inherit autotools pkgconfig lib_package |
