summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/time/time
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/time/time')
-rw-r--r--meta/recipes-extended/time/time/0001-Fix-the-type-for-sighandler_t.patch27
-rw-r--r--meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch27
-rw-r--r--meta/recipes-extended/time/time/time-1.9-Fix-compiling-with-GCC15.patch33
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 @@
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/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 @@
1From c8deae54f92d636878097063b411af9fb5262ad3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 15 Aug 2022 07:24:24 -0700
4Subject: [PATCH] include string.h for memset()
5
6Fixes implicit function declaration warning e.g.
7
8resuse.c:103:3: error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'
9
10Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2022-08/msg00001.html]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 src/resuse.c | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/src/resuse.c b/src/resuse.c
17index 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 @@
1From 831194f0be7733c99c7a2c69d9e9695b82e05010 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Ond=C5=99ej=20Poho=C5=99elsk=C3=BD?= <opohorel@redhat.com>
3Date: Thu, 30 Jan 2025 08:48:47 +0100
4Subject: [PATCH] time: fix compiling with GCC15
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9GCC15 complains about incompatible pointer type in run_command()
10Initialize interrupt_signal and quit_signal with correct type
11
12Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-time/2025-01/msg00000.html]
13Signed-off-by: Ondřej Pohořelský <opohorel@redhat.com>
14---
15 src/time.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/time.c b/src/time.c
19index 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--
322.48.1
33