]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
gawk: Disable known ptest fails on musl
authorKhem Raj <raj.khem@gmail.com>
Fri, 14 Apr 2023 23:42:56 +0000 (16:42 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Apr 2023 10:51:39 +0000 (11:51 +0100)
Add needed locale rdeps on musl as well.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/recipes-extended/gawk/gawk_5.2.1.bb

index e381bad14892dd7286542374f8588c17d26cc1f2..bbb26231a14f48114d3b50b2409fe711395dd1d2 100644 (file)
@@ -62,8 +62,21 @@ do_install_ptest() {
        rm -f ${D}${PTEST_PATH}/test/timeout.*
 }
 
-RDEPENDS:${PN}-ptest += "make"
+do_install_ptest:append:libc-musl() {
+       # Reported  https://lists.gnu.org/archive/html/bug-gawk/2021-02/msg00005.html
+       rm -f ${D}${PTEST_PATH}/test/clos1way6.*
+       # Needs en_US.UTF-8 but then does not work with musl
+       rm -f ${D}${PTEST_PATH}/test/backsmalls1.*
+       # Needs en_US.UTF-8 but then does not work with musl
+       rm -f ${D}${PTEST_PATH}/test/commas.*
+       # The below two need LANG=C inside the make rule for musl
+       rm -f ${D}${PTEST_PATH}/test/rebt8b1.*
+       rm -f ${D}${PTEST_PATH}/test/regx8bit.*
+}
+
+RDEPENDS:${PN}-ptest += "make locale-base-en-us"
 
-RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us locale-base-en-us.iso-8859-1"
+RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us.iso-8859-1"
+RDEPENDS:${PN}-ptest:append:libc-musl = " musl-locales"
 
 BBCLASSEXTEND = "native nativesdk"