summaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-filesystems
diff options
context:
space:
mode:
authorNguyen Dat Tho <tho3.nguyen@lge.com>2025-03-31 18:16:24 +0900
committerKhem Raj <raj.khem@gmail.com>2025-03-31 14:42:08 -0700
commit54c58000316c2be807ace03a01e0a7b13a8f1e74 (patch)
tree7e4ed710ba0781b81160f13f1d27458ac51f84d3 /meta-filesystems/recipes-filesystems
parentffe4c94dca7a56d431b2e4bafec067e8bcf1c3fb (diff)
downloadmeta-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.patch27
-rw-r--r--meta-filesystems/recipes-filesystems/burnia/libburn_1.5.6.bb4
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 @@
1From d537f9dd35282df834a311ead5f113af67d223b3 Mon Sep 17 00:00:00 2001
2From: Thomas Schmitt <scdbackup@gmx.net>
3Date: Tue, 26 Nov 2024 23:02:03 +0100
4Subject: [PATCH] Bug fix: Faulty signal handler prototype spoiled compilation
5 under C23
6
7Upstream-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
12diff --git a/test/poll.c b/test/poll.c
13index 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--
262.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"
5LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \ 5LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \
6 file://COPYRIGHT;md5=a91b9b862895b64e68e5b321873c9111" 6 file://COPYRIGHT;md5=a91b9b862895b64e68e5b321873c9111"
7 7
8SRC_URI = "http://files.libburnia-project.org/releases/${BP}.tar.gz" 8SRC_URI = "http://files.libburnia-project.org/releases/${BP}.tar.gz \
9 file://0001-Bug-fix-Faulty-signal-handler-prototype-spoiled-comp.patch"
10
9SRC_URI[sha256sum] = "7295491b4be5eeac5e7a3fb2067e236e2955ffdc6bbd45f546466edee321644b" 11SRC_URI[sha256sum] = "7295491b4be5eeac5e7a3fb2067e236e2955ffdc6bbd45f546466edee321644b"
10 12
11inherit autotools pkgconfig lib_package 13inherit autotools pkgconfig lib_package