diff mbox series

[2/2] glib-2.0: address ptest failures

Message ID 20250312123610.4018764-2-alex.kanavin@gmail.com
State Accepted, archived
Commit e9b318408bd6e68e4d7f7d4f74abf6d55f2dae09
Headers show
Series [1/2] glib-2.0: update 2.82.4 -> 2.84.0 | expand

Commit Message

Alexander Kanavin March 12, 2025, 12:36 p.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

Particularly:
- one of the tests requires a C.utf-8 locale
- another needs .gir files to be installed

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meta/recipes-core/glib-2.0/glib.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Richard Purdie March 12, 2025, 5:35 p.m. UTC | #1
On Wed, 2025-03-12 at 13:36 +0100, Alexander Kanavin via lists.openembedded.org wrote:
> From: Alexander Kanavin <alex@linutronix.de>
> 
> Particularly:
> - one of the tests requires a C.utf-8 locale
> - another needs .gir files to be installed
> 
> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> ---
>  meta/recipes-core/glib-2.0/glib.inc | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
> index c6e2d6e1a0a..1e22a59ffa7 100644
> --- a/meta/recipes-core/glib-2.0/glib.inc
> +++ b/meta/recipes-core/glib-2.0/glib.inc
> @@ -157,7 +157,8 @@ CODEGEN_PYTHON_RDEPENDS:mingw32 = ""
>  
>  RDEPENDS:${PN}-codegen += "${CODEGEN_PYTHON_RDEPENDS}"
>  
> -RDEPENDS:${PN}-ptest += "${PN}-utils"
> +RDEPENDS:${PN}-ptest += "${PN}-utils ${PN}-dev locale-base-c"
> +INSANE_SKIP:${PN}-ptest = "dev-deps"
>  

Probably needs a libc override as it breaks musl:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/6/builds/1183

Cheers,

Richard
Khem Raj March 12, 2025, 8:20 p.m. UTC | #2
On Wed, Mar 12, 2025 at 10:35 AM Richard Purdie via
lists.openembedded.org
<richard.purdie=linuxfoundation.org@lists.openembedded.org> wrote:
>
> On Wed, 2025-03-12 at 13:36 +0100, Alexander Kanavin via lists.openembedded.org wrote:
> > From: Alexander Kanavin <alex@linutronix.de>
> >
> > Particularly:
> > - one of the tests requires a C.utf-8 locale
> > - another needs .gir files to be installed
> >
> > Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> > ---
> >  meta/recipes-core/glib-2.0/glib.inc | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
> > index c6e2d6e1a0a..1e22a59ffa7 100644
> > --- a/meta/recipes-core/glib-2.0/glib.inc
> > +++ b/meta/recipes-core/glib-2.0/glib.inc
> > @@ -157,7 +157,8 @@ CODEGEN_PYTHON_RDEPENDS:mingw32 = ""
> >
> >  RDEPENDS:${PN}-codegen += "${CODEGEN_PYTHON_RDEPENDS}"
> >
> > -RDEPENDS:${PN}-ptest += "${PN}-utils"
> > +RDEPENDS:${PN}-ptest += "${PN}-utils ${PN}-dev locale-base-c"
> > +INSANE_SKIP:${PN}-ptest = "dev-deps"
> >
>
> Probably needs a libc override as it breaks musl:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/6/builds/1183

Does it work with locale-base-en-us ? if so then we can use that
across both libcs

>
> Cheers,
>
> Richard
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#212661): https://lists.openembedded.org/g/openembedded-core/message/212661
> Mute This Topic: https://lists.openembedded.org/mt/111658599/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Alexander Kanavin March 13, 2025, 11:07 a.m. UTC | #3
On Wed, 12 Mar 2025 at 21:20, Khem Raj <raj.khem@gmail.com> wrote:

> > Probably needs a libc override as it breaks musl:
> >
> > https://autobuilder.yoctoproject.org/valkyrie/#/builders/6/builds/1183
>
> Does it work with locale-base-en-us ? if so then we can use that
> across both libcs

It doesn't unfortunately. The tests explicitly set LC_ALL=C.UTF-8,
which comes from locale-base-c in glibc.

Alex
diff mbox series

Patch

diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index c6e2d6e1a0a..1e22a59ffa7 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -157,7 +157,8 @@  CODEGEN_PYTHON_RDEPENDS:mingw32 = ""
 
 RDEPENDS:${PN}-codegen += "${CODEGEN_PYTHON_RDEPENDS}"
 
-RDEPENDS:${PN}-ptest += "${PN}-utils"
+RDEPENDS:${PN}-ptest += "${PN}-utils ${PN}-dev locale-base-c"
+INSANE_SKIP:${PN}-ptest = "dev-deps"
 
 RDEPENDS:${PN}-ptest += "\
             coreutils \