diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-04-20 18:11:58 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-27 14:41:31 +0100 |
commit | aab8d5b6a4b8f8bc00e573b047b844b65fd08c2f (patch) | |
tree | d94bff104d95996b3bd89328b9009bebff53f640 | |
parent | 074b39e7d5c17a8ea4fdf39b9b31b6369780d940 (diff) | |
download | poky-aab8d5b6a4b8f8bc00e573b047b844b65fd08c2f.tar.gz |
lua: Disable locale dependent tests on musl
These tests depend on features of locale which is not fully available on
musl
(From OE-Core rev: 1179ab508b9cf6492d9c92887c11a8030e8a9763)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/lua/lua_5.4.4.bb | 6 |
1 files changed, 6 insertions, 0 deletions
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 () { | |||
56 | cp -R --no-dereference --preserve=mode,links -v ${WORKDIR}/lua-${PV_testsuites}-tests ${D}${PTEST_PATH}/test | 56 | cp -R --no-dereference --preserve=mode,links -v ${WORKDIR}/lua-${PV_testsuites}-tests ${D}${PTEST_PATH}/test |
57 | } | 57 | } |
58 | 58 | ||
59 | do_install_ptest:append:libc-musl () { | ||
60 | # locale tests does not work on musl, due to limited locale implementation | ||
61 | # https://wiki.musl-libc.org/open-issues.html#Locale-limitations | ||
62 | sed -i -e 's|os.setlocale("pt_BR") or os.setlocale("ptb")|false|g' ${D}${PTEST_PATH}/test/literals.lua | ||
63 | } | ||
64 | |||
59 | BBCLASSEXTEND = "native nativesdk" | 65 | BBCLASSEXTEND = "native nativesdk" |
60 | 66 | ||
61 | inherit multilib_script | 67 | inherit multilib_script |