diff options
author | Wang Mingyu <wangmy@fujitsu.com> | 2024-04-09 15:09:51 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-16 08:07:02 +0100 |
commit | 2d462158d5a010bab7bb070e8836a59486d580fe (patch) | |
tree | 69cfd65db4caa26e6fb6c135d1767362c8157625 /meta/recipes-core | |
parent | ef993615b72fd968603fa8b6f704971bb189ab86 (diff) | |
download | poky-2d462158d5a010bab7bb070e8836a59486d580fe.tar.gz |
coreutils: upgrade 9.4 -> 9.5
0001-posixtm-pacify-clang-18.patch
CVE-2024-0684.patch
removed since they're included in 9.5
0001-local.mk-fix-cross-compiling-problem.patch
remove-usr-local-lib-from-m4.patch
refreshed for 9.5
License-Update: Copyright updatedto 2024.
(From OE-Core rev: ac2b8134bed1abdb485aa2826d07b430dc6b5f00)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/coreutils/coreutils/0001-local.mk-fix-cross-compiling-problem.patch | 12 | ||||
-rw-r--r-- | meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch | 38 | ||||
-rw-r--r-- | meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch | 39 | ||||
-rw-r--r-- | meta/recipes-core/coreutils/coreutils/remove-usr-local-lib-from-m4.patch | 7 | ||||
-rw-r--r-- | meta/recipes-core/coreutils/coreutils_9.5.bb (renamed from meta/recipes-core/coreutils/coreutils_9.4.bb) | 6 |
5 files changed, 11 insertions, 91 deletions
diff --git a/meta/recipes-core/coreutils/coreutils/0001-local.mk-fix-cross-compiling-problem.patch b/meta/recipes-core/coreutils/coreutils/0001-local.mk-fix-cross-compiling-problem.patch index 66f9a716c9..97a6357ab9 100644 --- a/meta/recipes-core/coreutils/coreutils/0001-local.mk-fix-cross-compiling-problem.patch +++ b/meta/recipes-core/coreutils/coreutils/0001-local.mk-fix-cross-compiling-problem.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | Subject: local.mk: fix cross compiling problem | 1 | From 7cb2d20cfa2a27191255031d231cd41917dcffe8 Mon Sep 17 00:00:00 2001 |
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Mon, 26 Dec 2016 16:10:35 +0800 | ||
4 | Subject: [PATCH] local.mk: fix cross compiling problem | ||
2 | 5 | ||
3 | We meet the following error when cross compiling. | 6 | We meet the following error when cross compiling. |
4 | | Makefile:3418: *** Recursive variable 'INSTALL' references itself (eventually). Stop. | 7 | | Makefile:3418: *** Recursive variable 'INSTALL' references itself (eventually). Stop. |
@@ -12,15 +15,12 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | |||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
13 | 16 | ||
14 | diff --git a/src/local.mk b/src/local.mk | 17 | diff --git a/src/local.mk b/src/local.mk |
15 | index 36dfa4e..c5898cc 100644 | 18 | index 96ee941..cdd47d6 100644 |
16 | --- a/src/local.mk | 19 | --- a/src/local.mk |
17 | +++ b/src/local.mk | 20 | +++ b/src/local.mk |
18 | @@ -649,4 +649,4 @@ cu_install_program = @INSTALL_PROGRAM@ | 21 | @@ -704,4 +704,4 @@ cu_install_program = @INSTALL@ |
19 | else | 22 | else |
20 | cu_install_program = src/ginstall | 23 | cu_install_program = src/ginstall |
21 | endif | 24 | endif |
22 | -INSTALL = $(cu_install_program) -c | 25 | -INSTALL = $(cu_install_program) -c |
23 | +INSTALL_PROGRAM = $(cu_install_program) | 26 | +INSTALL_PROGRAM = $(cu_install_program) |
24 | -- | ||
25 | 2.1.0 | ||
26 | |||
diff --git a/meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch b/meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch deleted file mode 100644 index e6c84be3c4..0000000000 --- a/meta/recipes-core/coreutils/coreutils/0001-posixtm-pacify-clang-18.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From 67c298c36f69b6906840b7584be06b7b5f33f829 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggert <eggert@cs.ucla.edu> | ||
3 | Date: Tue, 16 Jan 2024 17:21:08 -0800 | ||
4 | Subject: [PATCH] posixtm: pacify clang 18 | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Problem reported by Khem Raj in: | ||
10 | https://lists.gnu.org/r/bug-gnulib/2024-01/msg00045.html | ||
11 | * lib/posixtm.c (posixtime): Pacify clang 18 by converting bool to int. | ||
12 | Arguably this is a bug in draft C2x, since the non-pointer args to | ||
13 | ckd_add should promote just like any other expressions do; | ||
14 | but that’s not clang’s fault. | ||
15 | |||
16 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/bug-gnulib/2024-01/msg00046.html] | ||
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
18 | --- | ||
19 | ChangeLog | 10 ++++++++++ | ||
20 | lib/posixtm.c | 2 +- | ||
21 | 2 files changed, 11 insertions(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/lib/posixtm.c b/lib/posixtm.c | ||
24 | index ef9f55f873..a072c7cad0 100644 | ||
25 | --- a/lib/posixtm.c | ||
26 | +++ b/lib/posixtm.c | ||
27 | @@ -191,7 +191,7 @@ posixtime (time_t *p, const char *s, unsigned int syntax_bits) | ||
28 | | (tm0.tm_min ^ tm1.tm_min) | ||
29 | | (tm0.tm_sec ^ tm1.tm_sec))) | ||
30 | { | ||
31 | - if (ckd_add (&t, t, leapsec)) | ||
32 | + if (ckd_add (&t, t, +leapsec)) | ||
33 | return false; | ||
34 | *p = t; | ||
35 | return true; | ||
36 | -- | ||
37 | 2.43.0 | ||
38 | |||
diff --git a/meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch b/meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch deleted file mode 100644 index 0c68e2dce0..0000000000 --- a/meta/recipes-core/coreutils/coreutils/CVE-2024-0684.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From c4c5ed8f4e9cd55a12966d4f520e3a13101637d9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggert <eggert@cs.ucla.edu> | ||
3 | Date: Tue, 16 Jan 2024 13:48:32 -0800 | ||
4 | Subject: [PATCH 1/1] split: do not shrink hold buffer | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=utf8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | * src/split.c (line_bytes_split): Do not shrink hold buffer. | ||
10 | If it’s large for this batch it’s likely to be large for the next | ||
11 | batch, and for ‘split’ it’s not worth the complexity/CPU hassle to | ||
12 | shrink it. Do not assume hold_size can be bufsize. | ||
13 | |||
14 | CVE: CVE-2024-0684 | ||
15 | Upstream-Status: Backport [https://github.com/coreutils/coreutils/commit/c4c5ed8f4e9cd55a12966d4f520e3a13101637d9] | ||
16 | Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com> | ||
17 | --- | ||
18 | src/split.c | 3 --- | ||
19 | 1 file changed, 3 deletions(-) | ||
20 | |||
21 | diff --git a/src/split.c b/src/split.c | ||
22 | index 64020c859..037960a59 100644 | ||
23 | --- a/src/split.c | ||
24 | +++ b/src/split.c | ||
25 | @@ -809,10 +809,7 @@ line_bytes_split (intmax_t n_bytes, char *buf, idx_t bufsize) | ||
26 | { | ||
27 | cwrite (n_out == 0, hold, n_hold); | ||
28 | n_out += n_hold; | ||
29 | - if (n_hold > bufsize) | ||
30 | - hold = xirealloc (hold, bufsize); | ||
31 | n_hold = 0; | ||
32 | - hold_size = bufsize; | ||
33 | } | ||
34 | |||
35 | /* Output to eol if present. */ | ||
36 | -- | ||
37 | 2.11.4.GIT | ||
38 | |||
39 | |||
diff --git a/meta/recipes-core/coreutils/coreutils/remove-usr-local-lib-from-m4.patch b/meta/recipes-core/coreutils/coreutils/remove-usr-local-lib-from-m4.patch index 1a8a9b9983..718de0ab78 100644 --- a/meta/recipes-core/coreutils/coreutils/remove-usr-local-lib-from-m4.patch +++ b/meta/recipes-core/coreutils/coreutils/remove-usr-local-lib-from-m4.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From a26530083a29eeee910bfd606ecc621acecd547a Mon Sep 17 00:00:00 2001 | 1 | From f53ffb5b27ab7d4a4c62df00ebd6a1a6936d1709 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 3 Aug 2011 14:12:30 -0700 | 3 | Date: Wed, 3 Aug 2011 14:12:30 -0700 |
4 | Subject: [PATCH] coreutils: Fix build on uclibc | 4 | Subject: [PATCH] coreutils: Fix build on uclibc |
@@ -12,16 +12,15 @@ and make life easier for cross compilation process. | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | 13 | ||
14 | Upstream-Status: Inappropriate [Upstream does care for AIX while we may not] | 14 | Upstream-Status: Inappropriate [Upstream does care for AIX while we may not] |
15 | |||
16 | --- | 15 | --- |
17 | m4/getloadavg.m4 | 12 ------------ | 16 | m4/getloadavg.m4 | 12 ------------ |
18 | 1 file changed, 12 deletions(-) | 17 | 1 file changed, 12 deletions(-) |
19 | 18 | ||
20 | diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 | 19 | diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 |
21 | index 8e96965..63782a2 100644 | 20 | index 9d0236f..68f7c52 100644 |
22 | --- a/m4/getloadavg.m4 | 21 | --- a/m4/getloadavg.m4 |
23 | +++ b/m4/getloadavg.m4 | 22 | +++ b/m4/getloadavg.m4 |
24 | @@ -41,18 +41,6 @@ AC_CHECK_FUNC([getloadavg], [], | 23 | @@ -46,18 +46,6 @@ if test $ac_cv_func_getloadavg != yes; then |
25 | [LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes]) | 24 | [LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes]) |
26 | fi | 25 | fi |
27 | 26 | ||
diff --git a/meta/recipes-core/coreutils/coreutils_9.4.bb b/meta/recipes-core/coreutils/coreutils_9.5.bb index 62ecdea6ec..9a5f836ebe 100644 --- a/meta/recipes-core/coreutils/coreutils_9.4.bb +++ b/meta/recipes-core/coreutils/coreutils_9.5.bb | |||
@@ -6,7 +6,7 @@ HOMEPAGE = "http://www.gnu.org/software/coreutils/" | |||
6 | BUGTRACKER = "http://debbugs.gnu.org/coreutils" | 6 | BUGTRACKER = "http://debbugs.gnu.org/coreutils" |
7 | LICENSE = "GPL-3.0-or-later" | 7 | LICENSE = "GPL-3.0-or-later" |
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \ | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \ |
9 | file://src/ls.c;beginline=1;endline=15;md5=b720a8b317035d66c555fc6d89e3674c \ | 9 | file://src/ls.c;beginline=1;endline=15;md5=9ac94aaed7fd46fd8df7147a9e3410cb \ |
10 | " | 10 | " |
11 | DEPENDS = "gmp libcap" | 11 | DEPENDS = "gmp libcap" |
12 | DEPENDS:class-native = "" | 12 | DEPENDS:class-native = "" |
@@ -16,11 +16,9 @@ inherit autotools gettext texinfo | |||
16 | SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \ | 16 | SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \ |
17 | file://remove-usr-local-lib-from-m4.patch \ | 17 | file://remove-usr-local-lib-from-m4.patch \ |
18 | file://0001-local.mk-fix-cross-compiling-problem.patch \ | 18 | file://0001-local.mk-fix-cross-compiling-problem.patch \ |
19 | file://0001-posixtm-pacify-clang-18.patch \ | ||
20 | file://CVE-2024-0684.patch \ | ||
21 | file://run-ptest \ | 19 | file://run-ptest \ |
22 | " | 20 | " |
23 | SRC_URI[sha256sum] = "ea613a4cf44612326e917201bbbcdfbd301de21ffc3b59b6e5c07e040b275e52" | 21 | SRC_URI[sha256sum] = "cd328edeac92f6a665de9f323c93b712af1858bc2e0d88f3f7100469470a1b8a" |
24 | 22 | ||
25 | # http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=v8.27-101-gf5d7c0842 | 23 | # http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=v8.27-101-gf5d7c0842 |
26 | # | 24 | # |