* [PATCH 1/4] site/common-glibc: Set gnulib locale variables
@ 2026-09-18 17:20 Richard Purdie
2026-09-18 17:20 ` [PATCH 2/4] m4: Add missing ptest locale dependencies Richard Purdie
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Richard Purdie @ 2026-09-18 17:20 UTC (permalink / raw)
To: openembedded-core
These locale variables are determined by running test binaries. Our sysroots
don't really set up locales properly and the results vary depending on the
host architecture and the locales installed.
Fix the values to a known set of locales that could be installed if the
user does so which is at least determinsitic. These are selected so the m4
recipe ptests run successfully.
An extra mbrtoc32 macro needs to also be set to have zh_CN work correctly on target.
We still need the musl equivalent to this.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/site/common-glibc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/meta/site/common-glibc b/meta/site/common-glibc
index 29f96da48d6..4dbfb4cb57f 100644
--- a/meta/site/common-glibc
+++ b/meta/site/common-glibc
@@ -67,9 +67,19 @@ gl_cv_func_mbrtowc_sanitycheck=${gl_cv_func_mbrtowc_sanitycheck=yes}
gl_cv_func_mbrtowc_null_arg=${gl_cv_func_mbrtowc_null_arg=yes}
gl_cv_func_mbrtowc_retval=${gl_cv_func_mbrtowc_retval=yes}
gl_cv_func_mbrtowc_nul_retval=${gl_cv_func_mbrtowc_nul_retval=yes}
+gl_cv_func_mbrtoc32_utf8_locale_works=yes
# va_copy and _va_copy
ac_cv_va_copy=${ac_cv_va_copy=yes}
ac_cv___va_copy=${ac_cv___va_copy=yes}
ac_cv_func_va_copy=${ac_cv_func_va_copy=yes}
ac_cv_func___va_copy=${ac_cv_func___va_copy=yes}
+
+# gnulib locale-en.m4 and friends look at the sysroot or host locales
+# we need something deterministic
+gt_cv_locale_en_utf8=en_US.UTF-8
+gt_cv_locale_fr=fr_FR.iso88591
+gt_cv_locale_fr_utf8=fr_FR.UTF-8
+gt_cv_locale_zh_CN=zh_CN.GB18030
+gt_cv_locale_ja=ja_JP.euc_jp
+gt_cv_locale_tr_utf8=tr_TR.UTF-8
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/4] m4: Add missing ptest locale dependencies
2026-09-18 17:20 [PATCH 1/4] site/common-glibc: Set gnulib locale variables Richard Purdie
@ 2026-09-18 17:20 ` Richard Purdie
2026-09-18 17:20 ` [PATCH 3/4] coreutils: Add missing locale ptest dependencies Richard Purdie
2026-09-18 17:20 ` [PATCH 4/4] gettext: Add missing locale ptest dependency Richard Purdie
2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2026-09-18 17:20 UTC (permalink / raw)
To: openembedded-core
With the locale configure values set correctly in the site files, it highlights
missing test dependencies. Add those and also remove the previous configure
workarounds for locales which are now not needed.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/recipes-devtools/m4/m4-1.4.21.inc | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-devtools/m4/m4-1.4.21.inc b/meta/recipes-devtools/m4/m4-1.4.21.inc
index 3be6a521a86..41f8021d025 100644
--- a/meta/recipes-devtools/m4/m4-1.4.21.inc
+++ b/meta/recipes-devtools/m4/m4-1.4.21.inc
@@ -47,14 +47,15 @@ do_install_ptest() {
${D}${PTEST_PATH}/tests/test-xalloc-die
}
-do_install_ptest:append:libc-glibc() {
- sed -i -e "s;LOCALE_FR='fr_FR';LOCALE_FR='fr_FR.iso88591';g" \
- -e "s;LOCALE_FR_UTF8='none';LOCALE_FR_UTF8='fr_FR.utf8';g" ${D}${PTEST_PATH}/tests/Makefile
-}
-
RDEPENDS:${PN}-ptest += "make coreutils diffutils bash locale-base-fr-fr"
RDEPENDS:${PN}-ptest:append:libc-glibc = "\
+ locale-base-ja-jp.euc-jp \
locale-base-fr-fr.iso-8859-1 \
+ locale-base-tr-tr \
+ locale-base-en-us \
+ locale-base-zh-cn.gb18030 \
glibc-gconv-iso8859-1 \
+ glibc-gconv-euc-jp \
+ glibc-gconv-gb18030 \
"
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/4] coreutils: Add missing locale ptest dependencies
2026-09-18 17:20 [PATCH 1/4] site/common-glibc: Set gnulib locale variables Richard Purdie
2026-09-18 17:20 ` [PATCH 2/4] m4: Add missing ptest locale dependencies Richard Purdie
@ 2026-09-18 17:20 ` Richard Purdie
2026-09-18 17:20 ` [PATCH 4/4] gettext: Add missing locale ptest dependency Richard Purdie
2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2026-09-18 17:20 UTC (permalink / raw)
To: openembedded-core
With the site file locale entries fixed, we need these dependencies to
avoid test failures.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/recipes-core/coreutils/coreutils_9.11.bb | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/meta/recipes-core/coreutils/coreutils_9.11.bb b/meta/recipes-core/coreutils/coreutils_9.11.bb
index bbef3263994..b24a9ac9962 100644
--- a/meta/recipes-core/coreutils/coreutils_9.11.bb
+++ b/meta/recipes-core/coreutils/coreutils_9.11.bb
@@ -230,3 +230,14 @@ RDEPENDS:${PN}-ptest += "xz \
${@bb.utils.filter('PACKAGECONFIG', 'acl', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'xattr', 'attr', '', d)}"
FILES:${PN}-ptest += "${bindir}/getlimits"
+
+RDEPENDS:${PN}-ptest:append:libc-glibc = "\
+ locale-base-ja-jp.euc-jp \
+ locale-base-fr-fr \
+ locale-base-fr-fr.iso-8859-1 \
+ locale-base-zh-cn.gb18030 \
+ glibc-gconv-iso8859-1 \
+ glibc-gconv-euc-jp \
+ glibc-gconv-gb18030 \
+"
+
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 4/4] gettext: Add missing locale ptest dependency
2026-09-18 17:20 [PATCH 1/4] site/common-glibc: Set gnulib locale variables Richard Purdie
2026-09-18 17:20 ` [PATCH 2/4] m4: Add missing ptest locale dependencies Richard Purdie
2026-09-18 17:20 ` [PATCH 3/4] coreutils: Add missing locale ptest dependencies Richard Purdie
@ 2026-09-18 17:20 ` Richard Purdie
2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2026-09-18 17:20 UTC (permalink / raw)
To: openembedded-core
The site files handle the fr locale now.
Add a missing locale dependency so tests work with the new site file
entries.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/recipes-core/gettext/gettext_1.0.bb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/meta/recipes-core/gettext/gettext_1.0.bb b/meta/recipes-core/gettext/gettext_1.0.bb
index ce1d698260d..8a93ce1b49d 100644
--- a/meta/recipes-core/gettext/gettext_1.0.bb
+++ b/meta/recipes-core/gettext/gettext_1.0.bb
@@ -50,8 +50,6 @@ EXTRA_OECONF += "--without-lispdir \
"
EXTRA_OECONF:append:class-target = " \
--with-bisonlocaledir=${datadir}/locale \
- gt_cv_locale_fr_utf8=fr_FR \
- gt_cv_locale_fr=fr_FR.ISO-8859-1 \
gt_cv_locale_de_utf8=de_DE \
gt_cv_locale_de=de_DE.ISO-8859-1 \
"
@@ -224,6 +222,7 @@ RDEPENDS:${PN}-ptest:append:libc-glibc = "\
RRECOMMENDS:${PN}-ptest:append:libc-glibc = "\
locale-base-de-de.iso-8859-1 \
locale-base-fr-fr.iso-8859-1 \
+ locale-base-ja-jp.euc-jp \
"
BBCLASSEXTEND = "native nativesdk"
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-09-18 17:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18 17:20 [PATCH 1/4] site/common-glibc: Set gnulib locale variables Richard Purdie
2026-09-18 17:20 ` [PATCH 2/4] m4: Add missing ptest locale dependencies Richard Purdie
2026-09-18 17:20 ` [PATCH 3/4] coreutils: Add missing locale ptest dependencies Richard Purdie
2026-09-18 17:20 ` [PATCH 4/4] gettext: Add missing locale ptest dependency Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox