* [PATCH 1/2] m4: Add locale-base-fr-fr rdep for musl too
@ 2023-04-21 1:11 Khem Raj
2023-04-21 1:11 ` [PATCH 2/2] lua: Disable locale dependent tests on musl Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2023-04-21 1:11 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-devtools/m4/m4-1.4.19.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-devtools/m4/m4-1.4.19.inc b/meta/recipes-devtools/m4/m4-1.4.19.inc
index 3b4303b7fd..0dd273bd89 100644
--- a/meta/recipes-devtools/m4/m4-1.4.19.inc
+++ b/meta/recipes-devtools/m4/m4-1.4.19.inc
@@ -53,9 +53,9 @@ do_install_ptest() {
}
-RDEPENDS:${PN}-ptest += "make coreutils diffutils bash"
+RDEPENDS:${PN}-ptest += "make coreutils diffutils bash locale-base-fr-fr"
+RDEPENDS:${PN}-ptest:append:libc-musl = " musl-locales"
RDEPENDS:${PN}-ptest:append:libc-glibc = "\
- locale-base-fr-fr \
locale-base-fr-fr.iso-8859-1 \
glibc-gconv-iso8859-1 \
"
--
2.40.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] lua: Disable locale dependent tests on musl
2023-04-21 1:11 [PATCH 1/2] m4: Add locale-base-fr-fr rdep for musl too Khem Raj
@ 2023-04-21 1:11 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2023-04-21 1:11 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
These tests depend on features of locale which is not fully available on
musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-devtools/lua/lua_5.4.4.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-devtools/lua/lua_5.4.4.bb b/meta/recipes-devtools/lua/lua_5.4.4.bb
index 4fa5c593cf..26ec35f997 100644
--- a/meta/recipes-devtools/lua/lua_5.4.4.bb
+++ b/meta/recipes-devtools/lua/lua_5.4.4.bb
@@ -56,6 +56,12 @@ do_install_ptest () {
cp -R --no-dereference --preserve=mode,links -v ${WORKDIR}/lua-${PV_testsuites}-tests ${D}${PTEST_PATH}/test
}
+do_install_ptest:append:libc-musl () {
+ # locale tests does not work on musl, due to limited locale implementation
+ # https://wiki.musl-libc.org/open-issues.html#Locale-limitations
+ sed -i -e 's|os.setlocale("pt_BR") or os.setlocale("ptb")|false|g' ${D}${PTEST_PATH}/test/literals.lua
+}
+
BBCLASSEXTEND = "native nativesdk"
inherit multilib_script
--
2.40.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-21 1:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21 1:11 [PATCH 1/2] m4: Add locale-base-fr-fr rdep for musl too Khem Raj
2023-04-21 1:11 ` [PATCH 2/2] lua: Disable locale dependent tests on musl Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox