summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-03-19 01:16:03 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-20 11:29:04 +0000
commitf1c2a06c8089b64030dcfbfc45504ff62a99675e (patch)
tree6b5f4edc39a3bed2bbd9831c415b3ee71d7bfdc7
parent9b0d00363c9ebe0a3ccdb8a3b1ec06ee42980dcd (diff)
downloadpoky-f1c2a06c8089b64030dcfbfc45504ff62a99675e.tar.gz
time: Fix build with musl
(From OE-Core rev: a4dae0fa2d566a6b7bdda938c4d94a4d8b8e8dcf) 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-extended/time/time/0001-Fix-the-type-for-sighandler_t.patch27
-rw-r--r--meta/recipes-extended/time/time_1.9.bb1
2 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-extended/time/time/0001-Fix-the-type-for-sighandler_t.patch b/meta/recipes-extended/time/time/0001-Fix-the-type-for-sighandler_t.patch
new file mode 100644
index 0000000000..0f8bf6e03e
--- /dev/null
+++ b/meta/recipes-extended/time/time/0001-Fix-the-type-for-sighandler_t.patch
@@ -0,0 +1,27 @@
1From cfef684e2c2c93c4a871d6c2a7af8f4c1b7c6741 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 18 Mar 2025 09:29:58 -0700
4Subject: [PATCH] Fix the type for sighandler_t
5
6__sighandler_t is private interface in glibc so its
7better to not use it, as an aside fixes build with musl
8
9Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2025-03/msg00000.html]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/time.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/time.c b/src/time.c
16index 7ff29a4..82eb66a 100644
17--- a/src/time.c
18+++ b/src/time.c
19@@ -728,7 +728,7 @@ run_command (cmd, resp)
20 RESUSE *resp;
21 {
22 pid_t pid; /* Pid of child. */
23- __sighandler_t interrupt_signal, quit_signal;
24+ sighandler_t interrupt_signal, quit_signal;
25 int saved_errno;
26
27 resuse_start (resp);
diff --git a/meta/recipes-extended/time/time_1.9.bb b/meta/recipes-extended/time/time_1.9.bb
index d9e2d06b32..366a64d8e5 100644
--- a/meta/recipes-extended/time/time_1.9.bb
+++ b/meta/recipes-extended/time/time_1.9.bb
@@ -16,6 +16,7 @@ BBCLASSEXTEND = "native nativesdk"
16SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \ 16SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \
17 file://0001-include-string.h-for-memset.patch \ 17 file://0001-include-string.h-for-memset.patch \
18 file://time-1.9-Fix-compiling-with-GCC15.patch \ 18 file://time-1.9-Fix-compiling-with-GCC15.patch \
19 file://0001-Fix-the-type-for-sighandler_t.patch \
19 " 20 "
20 21
21SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f" 22SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f"