Skip to contentSkip to conversation

coreutils: Upgrade to 9.4

PATCH New Khem Raj 1 participant 2 messages Sep 13, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 coreutils: Upgrade to 9.4

Drop a backport which is already in 9.4

---
 .../coreutils/stdlib-mb-cur-max.patch         | 33 -------------------
 .../{coreutils_9.3.bb => coreutils_9.4.bb}    |  4 +--
 2 files changed, 1 insertion(+), 36 deletions(-)
 delete mode 100644 meta/recipes-core/coreutils/coreutils/stdlib-mb-cur-max.patch
 rename meta/recipes-core/coreutils/{coreutils_9.3.bb => coreutils_9.4.bb} (98%)
meta/recipes-core/coreutils/coreutils/stdlib-mb-cur-max.patch deleted +0 -33
deleted file mode 100644
index 732fa5b6f23..00000000000
@@ -1,33 +0,0 @@
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <[email protected]>
-
-From ca6c179226864bff23f2b062518cf885bb42ce56 Mon Sep 17 00:00:00 2001
-From: Bruno Haible <[email protected]>
-Date: Thu, 27 Apr 2023 15:26:37 +0200
-Subject: [PATCH] stdlib: Fix error when cross-compiling.
-
-Reported by Pierre Labastie <[email protected]> in
-<https://lists.gnu.org/archive/html/bug-gnulib/2023-04/msg00220.html>.
-
-* m4/stdlib_h.m4 (gl_STDLIB_H): Provide a 4th argument to AC_RUN_IFELSE.
----
- ChangeLog      | 7 +++++++
- m4/stdlib_h.m4 | 4 ++--
- 2 files changed, 9 insertions(+), 2 deletions(-)
-
-diff --git a/m4/stdlib_h.m4 b/m4/stdlib_h.m4
-index 3274ea4948..f47c1eb37b 100644
---- a/m4/stdlib_h.m4
-+++ b/m4/stdlib_h.m4
-@@ -66,7 +66,7 @@ int main ()
-   return result;
- }]])],
-           [gl_cv_macro_MB_CUR_MAX_good=yes],
--          [gl_cv_macro_MB_CUR_MAX_good=no]
-+          [gl_cv_macro_MB_CUR_MAX_good=no],
-           [:])
-       fi
-     ])
--- 
-2.34.1
-
meta/recipes-core/coreutils/coreutils_9.4.bb renamed from meta/recipes-core/coreutils/coreutils_9.3.bb +1 -3
similarity index 98%
rename from meta/recipes-core/coreutils/coreutils_9.3.bb
rename to meta/recipes-core/coreutils/coreutils_9.4.bb
index 83b78d075f8..13a637baf86 100644
@@ -16,11 +16,9 @@ inherit autotools gettext texinfo
 SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \
            file://remove-usr-local-lib-from-m4.patch \
            file://0001-local.mk-fix-cross-compiling-problem.patch \
-           file://stdlib-mb-cur-max.patch \
            file://run-ptest \
            "
-
-SRC_URI[sha256sum] = "adbcfcfe899235b71e8768dcf07cd532520b7f54f9a8064843f8d199a904bbaa"
+SRC_URI[sha256sum] = "ea613a4cf44612326e917201bbbcdfbd301de21ffc3b59b6e5c07e040b275e52"
 
 # http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=v8.27-101-gf5d7c0842
 # 
Signature · 1 line
2.42.0
author
#1 lore raw

PATCH 2/2 coreutils: Add config.h to ptest package

This is needed by several tests during run on target

Fixes
grep: /usr/lib/coreutils/ptest/lib/config.h: No such file or directory inotify-race.sh: skipped test: inotify is not supported

More tests are now passing

============================================================================
Testsuite summary for GNU coreutils 9.4
============================================================================
# TOTAL: 643

-# PASS:  509
-# SKIP:  131
+# PASS:  516
+# SKIP:  124
---
 meta/recipes-core/coreutils/coreutils_9.4.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/coreutils/coreutils_9.4.bb +1 -0
index 13a637baf86..e3e27e099d0 100644
@@ -181,6 +181,7 @@ do_install_ptest () {
     sed -i 's/ginstall/install/g'  `grep -R ginstall ${D}${PTEST_PATH}/tests | awk -F: '{print $1}' | uniq`
     install -d ${D}${PTEST_PATH}/build-aux
     install ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/
+    install -Dm 0644 ${B}/lib/config.h ${D}${PTEST_PATH}/lib/config.h
     cp ${B}/Makefile ${D}${PTEST_PATH}/
     cp ${S}/init.cfg ${D}${PTEST_PATH}/
     cp -r ${B}/src ${D}${PTEST_PATH}/
Signature · 1 line
2.42.0