mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user