Re: [OE-core] [PATCH v2 1/2] gawk: Disable known ptest fails on musl

2023-04-14 Thread Khem Raj
ignore this set, it does not work.

On Fri, Apr 14, 2023 at 8:55 AM Khem Raj  wrote:
>
> Add needed locale rdeps on musl as well.
>
> Signed-off-by: Khem Raj 
> ---
> v2: Delete failing tests on musl
>
>  meta/recipes-extended/gawk/gawk_5.2.1.bb | 17 +++--
>  1 file changed, 15 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-extended/gawk/gawk_5.2.1.bb 
> b/meta/recipes-extended/gawk/gawk_5.2.1.bb
> index e381bad148..bbb26231a1 100644
> --- a/meta/recipes-extended/gawk/gawk_5.2.1.bb
> +++ b/meta/recipes-extended/gawk/gawk_5.2.1.bb
> @@ -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/msg5.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"
> --
> 2.40.0
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180004): 
https://lists.openembedded.org/g/openembedded-core/message/180004
Mute This Topic: https://lists.openembedded.org/mt/98265108/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2 1/2] gawk: Disable known ptest fails on musl

2023-04-14 Thread Khem Raj
Add needed locale rdeps on musl as well.

Signed-off-by: Khem Raj 
---
v2: Delete failing tests on musl

 meta/recipes-extended/gawk/gawk_5.2.1.bb | 17 +++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/gawk/gawk_5.2.1.bb 
b/meta/recipes-extended/gawk/gawk_5.2.1.bb
index e381bad148..bbb26231a1 100644
--- a/meta/recipes-extended/gawk/gawk_5.2.1.bb
+++ b/meta/recipes-extended/gawk/gawk_5.2.1.bb
@@ -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/msg5.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"
-- 
2.40.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180001): 
https://lists.openembedded.org/g/openembedded-core/message/180001
Mute This Topic: https://lists.openembedded.org/mt/98265108/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-