Skip to contentSkip to conversation

findutils: Drop setting gl_cv_func_wcwidth_works=yes

PATCH New Khem Raj 1 participant 2 messages Aug 21, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 findutils: Drop setting gl_cv_func_wcwidth_works=yes

The issue seems to be have been fixed for long time since 4.5.3 onwards

---
 meta/recipes-extended/findutils/findutils_4.10.0.bb | 2 --
 1 file changed, 2 deletions(-)
meta/recipes-extended/findutils/findutils_4.10.0.bb +0 -2
index aa216376572..29ad6c73506 100644
@@ -9,8 +9,6 @@ DEPENDS = "bison-native"
 SRC_URI[sha256sum] = "1387e0b67ff247d2abde998f90dfbf70c1491391a59ddfecb8ae698789f0a4f5"
 
 PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
-# http://savannah.gnu.org/bugs/?27299
-CACHED_CONFIGUREVARS += "gl_cv_func_wcwidth_works=yes"
 
 EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort"
 
author
#1 lore raw

PATCH 2/2 findutils: Use C locale to run ptests

Ensure consistent locale setting, since we are not using make environemnt to run the tests like upstream does. The test scripts are run explicitly

This fixes a problem with musl ptest runs where the locale-driven quoting ends up using C.UTF-8 quotes in gnulib’s quotearg() end up with curly quotes instead of ASCII quote character which is expected and result is reported as failure even though numbers are matching.

Fixes:

-find: invalid group name or GID argument to -group: '4294967296' +find: invalid group name or GID argument to -group: ‘4294967296’

FAIL: tests/find/user-group-max.sh

---
 meta/recipes-extended/findutils/findutils/run-ptest | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-extended/findutils/findutils/run-ptest +3 -0
index 0c9af47efdb..afe004b01a9 100644
@@ -13,6 +13,9 @@ export built_programs="find xargs locate updatedb"
 # this gets substituted by sed during build
 export VERSION="__run_ptest_version__"
 
+# Force ASCII quotes so exp vs err comparisons are stable across locales.
+export LC_ALL=C
+
 for f in tests/*/*.sh; do
 	bash $f ;
 	case $? in