summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/time
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/time')
-rw-r--r--meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch27
-rw-r--r--meta/recipes-extended/time/time_1.9.bb8
2 files changed, 32 insertions, 3 deletions
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_1.9.bb b/meta/recipes-extended/time/time_1.9.bb
index e2b084caae..8364210e61 100644
--- a/meta/recipes-extended/time/time_1.9.bb
+++ b/meta/recipes-extended/time/time_1.9.bb
@@ -3,17 +3,19 @@ DESCRIPTION = "time measures many of the CPU resources, such as time and \
3memory, that other programs use." 3memory, that other programs use."
4HOMEPAGE = "http://www.gnu.org/software/time/" 4HOMEPAGE = "http://www.gnu.org/software/time/"
5SECTION = "utils" 5SECTION = "utils"
6LICENSE = "GPLv3" 6LICENSE = "GPL-3.0-only"
7LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 7LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
8 8
9inherit texinfo update-alternatives 9inherit texinfo update-alternatives
10 10
11ALTERNATIVE_${PN} = "time" 11ALTERNATIVE:${PN} = "time"
12ALTERNATIVE_PRIORITY = "100" 12ALTERNATIVE_PRIORITY = "100"
13 13
14BBCLASSEXTEND = "native nativesdk" 14BBCLASSEXTEND = "native nativesdk"
15 15
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 \
18 "
17 19
18SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f" 20SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f"
19SRC_URI[sha256sum] = "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e" 21SRC_URI[sha256sum] = "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e"