diff options
Diffstat (limited to 'meta/recipes-extended/time')
-rw-r--r-- | meta/recipes-extended/time/time/0001-include-string.h-for-memset.patch | 27 | ||||
-rw-r--r-- | meta/recipes-extended/time/time_1.9.bb | 8 |
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 @@ | |||
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_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 \ | |||
3 | memory, that other programs use." | 3 | memory, that other programs use." |
4 | HOMEPAGE = "http://www.gnu.org/software/time/" | 4 | HOMEPAGE = "http://www.gnu.org/software/time/" |
5 | SECTION = "utils" | 5 | SECTION = "utils" |
6 | LICENSE = "GPLv3" | 6 | LICENSE = "GPL-3.0-only" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
8 | 8 | ||
9 | inherit texinfo update-alternatives | 9 | inherit texinfo update-alternatives |
10 | 10 | ||
11 | ALTERNATIVE_${PN} = "time" | 11 | ALTERNATIVE:${PN} = "time" |
12 | ALTERNATIVE_PRIORITY = "100" | 12 | ALTERNATIVE_PRIORITY = "100" |
13 | 13 | ||
14 | BBCLASSEXTEND = "native nativesdk" | 14 | BBCLASSEXTEND = "native nativesdk" |
15 | 15 | ||
16 | SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz" | 16 | SRC_URI = "${GNU_MIRROR}/time/time-${PV}.tar.gz \ |
17 | file://0001-include-string.h-for-memset.patch \ | ||
18 | " | ||
17 | 19 | ||
18 | SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f" | 20 | SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f" |
19 | SRC_URI[sha256sum] = "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e" | 21 | SRC_URI[sha256sum] = "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e" |