]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
lua: Disable locale dependent tests on musl
authorKhem Raj <raj.khem@gmail.com>
Fri, 21 Apr 2023 01:11:58 +0000 (18:11 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Apr 2023 13:41:26 +0000 (14:41 +0100)
These tests depend on features of locale which is not fully available on
musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/recipes-devtools/lua/lua_5.4.4.bb

index 4fa5c593cf2cfaffacea95855cf81d137fbbe755..26ec35f997a46dae1e87e8e4364823732d4b5109 100644 (file)
@@ -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