diff options
Diffstat (limited to 'meta/recipes-extended/time/time')
3 files changed, 87 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 @@ | |||
1 | From cfef684e2c2c93c4a871d6c2a7af8f4c1b7c6741 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 18 Mar 2025 09:29:58 -0700 | ||
4 | Subject: [PATCH] Fix the type for sighandler_t | ||
5 | |||
6 | __sighandler_t is private interface in glibc so its | ||
7 | better to not use it, as an aside fixes build with musl | ||
8 | |||
9 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2025-03/msg00000.html] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | src/time.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/src/time.c b/src/time.c | ||
16 | index 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/0001-include-string.h-for-memset.patch b/meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch new file mode 100644 index 0000000000..f6ea212667 --- /dev/null +++ b/meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From c8deae54f92d636878097063b411af9fb5262ad3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 15 Aug 2022 07:24:24 -0700 | ||
4 | Subject: [PATCH] include string.h for memset() | ||
5 | |||
6 | Fixes implicit function declaration warning e.g. | ||
7 | |||
8 | resuse.c:103:3: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)' | ||
9 | |||
10 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2022-08/msg00001.html] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | src/resuse.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/src/resuse.c b/src/resuse.c | ||
17 | index cf5a08c..9d3d18a 100644 | ||
18 | --- a/src/resuse.c | ||
19 | +++ b/src/resuse.c | ||
20 | @@ -22,6 +22,7 @@ | ||
21 | */ | ||
22 | |||
23 | #include "config.h" | ||
24 | +#include <string.h> | ||
25 | #include <sys/time.h> | ||
26 | #include <sys/wait.h> | ||
27 | #include <sys/resource.h> | ||
diff --git a/meta/recipes-extended/time/time/time-1.9-Fix-compiling-with-GCC15.patch b/meta/recipes-extended/time/time/time-1.9-Fix-compiling-with-GCC15.patch new file mode 100644 index 0000000000..76141aec18 --- /dev/null +++ b/meta/recipes-extended/time/time/time-1.9-Fix-compiling-with-GCC15.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 831194f0be7733c99c7a2c69d9e9695b82e05010 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Ond=C5=99ej=20Poho=C5=99elsk=C3=BD?= <opohorel@redhat.com> | ||
3 | Date: Thu, 30 Jan 2025 08:48:47 +0100 | ||
4 | Subject: [PATCH] time: fix compiling with GCC15 | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | GCC15 complains about incompatible pointer type in run_command() | ||
10 | Initialize interrupt_signal and quit_signal with correct type | ||
11 | |||
12 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2025-01/msg00000.html] | ||
13 | Signed-off-by: Ondřej Pohořelský <opohorel@redhat.com> | ||
14 | --- | ||
15 | src/time.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/src/time.c b/src/time.c | ||
19 | index 7b401bc..c8d7ab0 100644 | ||
20 | --- a/src/time.c | ||
21 | +++ b/src/time.c | ||
22 | @@ -803,7 +803,7 @@ run_command (cmd, resp) | ||
23 | RESUSE *resp; | ||
24 | { | ||
25 | pid_t pid; /* Pid of child. */ | ||
26 | - sighandler interrupt_signal, quit_signal; | ||
27 | + __sighandler_t interrupt_signal, quit_signal; | ||
28 | int saved_errno; | ||
29 | |||
30 | resuse_start (resp); | ||
31 | -- | ||
32 | 2.48.1 | ||
33 | |||