Skip to contentSkip to conversation

singularity: Skip recipe on musl builds

PATCH Applied Andrei Gherzan 3 participants 8 messages Aug 17, 2022 – Aug 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 singularity: Skip recipe on musl builds

From: Andrei Gherzan <[email protected]>

This recipe explicitely rdepends on glibc so trying to build this with musl will break world builds.

---
 recipes-containers/singularity/singularity_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-containers/singularity/singularity_git.bb +2 -0
index 321a9a6..8e7ab76 100644
@@ -28,3 +28,5 @@ pkg_postinst:${PN}() {
     rm -r $D${libdir}/ssl/certs
     ln -sr $D${sysconfdir}/ssl/certs $D${libdir}/ssl
 }
+
+COMPATIBLE_HOST:libc-musl:class-target = "null"
Signature · 1 line
2.25.1
#1 lore raw
Quoted 6 lines · Andrei Gherzan

From: Andrei Gherzan <[email protected]>

This recipe explicitely rdepends on glibc so trying to build this with musl will break world builds.

do you know why is it marked as glibc only.

Quoted 27 lines
---
 recipes-containers/singularity/singularity_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-containers/singularity/singularity_git.bb +2 -1
index 321a9a6..8e7ab76 100644
@@ -28,3 +28,5 @@ pkg_postinst:${PN}() {
     rm -r $D${libdir}/ssl/certs
     ln -sr $D${sysconfdir}/ssl/certs $D${libdir}/ssl
 }
+
+COMPATIBLE_HOST:libc-musl:class-target = "null"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7526): https://lists.yoctoproject.org/g/meta-virtualization/message/7526
Mute This Topic: https://lists.yoctoproject.org/mt/93078736/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 9 lines · Khem Raj
Quoted 6 lines · Andrei Gherzan

From: Andrei Gherzan <[email protected]>

This recipe explicitely rdepends on glibc so trying to build this with musl will break world builds.

do you know why is it marked as glibc only.

I've tried to figure it out but I couldn't find anything obvious.

https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/singularity/singularity_git.bb?id=06bc17d1f0650ad2cb134b09b25133bcd641d473

Andrei

#3 lore raw
Quoted 10 lines · Andrei Gherzan
Quoted 8 lines · Khem Raj
Quoted 6 lines · Andrei Gherzan

From: Andrei Gherzan <[email protected]>

This recipe explicitely rdepends on glibc so trying to build this with musl will break world builds.

Quoted 6 lines
Quoted 1 line

do you know why is it marked as glibc only.

I've tried to figure it out but I couldn't find anything obvious.

https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/singularity/singularity_git.bb?id=06bc17d1f0650ad2cb134b09b25133bcd641d473

maybe that rdep on glibc is bogus. Its not normal to depends on glibc like that, in some cases e.g. locales etc it maybe that we need them but thats usually for ptests etc.
can you try to remove the rdep and see if it builds ok with musl too ?

Quoted 1 line

Andrei

#4 lore raw
Quoted 15 lines · Khem Raj
Quoted 14 lines · Andrei Gherzan
Quoted 9 lines · Khem Raj
Quoted 6 lines · Andrei Gherzan

From: Andrei Gherzan <[email protected]>

This recipe explicitely rdepends on glibc so trying to build this with musl will break world builds.

do you know why is it marked as glibc only.

I've tried to figure it out but I couldn't find anything obvious.

Quoted 7 lines
Quoted 2 lines

https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/singularity/singularity_git.bb?id=06bc17d1f0650ad2cb134b09b25133bcd641d473

maybe that rdep on glibc is bogus. Its not normal to depends on glibc like that, in some cases e.g. locales etc it maybe that we need them but thats usually for ptests etc.
can you try to remove the rdep and see if it builds ok with musl too ?

It built alright but I didn't check any runtime behaviour. I do find this a bit orthogonal at this point but I've sent both patches so Bruce can pick any - both approaches are working for me.

Andrei

#5 lore raw
Quoted 20 lines · Andrei Gherzan
Quoted 18 lines · Khem Raj
Quoted 16 lines · Andrei Gherzan
Quoted 9 lines · Khem Raj
Quoted 6 lines · Andrei Gherzan

From: Andrei Gherzan <[email protected]>

This recipe explicitely rdepends on glibc so trying to build this with musl will break world builds.

do you know why is it marked as glibc only.

I've tried to figure it out but I couldn't find anything obvious.

https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/singularity/singularity_git.bb?id=06bc17d1f0650ad2cb134b09b25133bcd641d473

Quoted 7 lines
Quoted 4 lines

maybe that rdep on glibc is bogus. Its not normal to depends on glibc like that, in some cases e.g. locales etc it maybe that we need them but thats usually for ptests etc.
can you try to remove the rdep and see if it builds ok with musl too ?

It built alright but I didn't check any runtime behaviour. I do find this a bit orthogonal at this point but I've sent both patches so Bruce can pick any - both approaches are working for me.

Well not orthogonal I would say but alternate solution to what this patch is trying to fix, if you remove glibc from the rdeps then this patch is not needed

Quoted 10 lines

Andrei

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7538): https://lists.yoctoproject.org/g/meta-virtualization/message/7538
Mute This Topic: https://lists.yoctoproject.org/mt/93078736/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw
In reply to Andrei Gherzan

In message: Re: [meta-virtualization][PATCH] singularity: Skip recipe on musl builds

Quoted 19 lines · on 17/08/2022 Andrei Gherzan wrote:
Quoted 18 lines · Khem Raj
Quoted 16 lines · Andrei Gherzan
Quoted 9 lines · Khem Raj
Quoted 6 lines · Andrei Gherzan

From: Andrei Gherzan <[email protected]>

This recipe explicitely rdepends on glibc so trying to build this with musl will break world builds.

do you know why is it marked as glibc only.

I've tried to figure it out but I couldn't find anything obvious.

https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/singularity/singularity_git.bb?id=06bc17d1f0650ad2cb134b09b25133bcd641d473

Quoted 6 lines
Quoted 4 lines

maybe that rdep on glibc is bogus. Its not normal to depends on glibc like that, in some cases e.g. locales etc it maybe that we need them but thats usually for ptests etc.
can you try to remove the rdep and see if it builds ok with musl too ?

It built alright but I didn't check any runtime behaviour. I do find this a bit orthogonal at this point but I've sent both patches so Bruce can pick any - both approaches are working for me.

I've gone for the removal of the glibc dep, singluarity needs quite a bit of runtime work .. so we'll do with that, and see if anyone notices.

merged to master and kirkstone.

Bruce

Quoted 12 lines

Andrei

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7538): https://lists.yoctoproject.org/g/meta-virtualization/message/7538
Mute This Topic: https://lists.yoctoproject.org/mt/93078736/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw
Quoted 28 lines · Bruce Ashfield

In message: Re: [meta-virtualization][PATCH] singularity: Skip recipe on musl builds

Quoted 24 lines · on 17/08/2022 Andrei Gherzan wrote:
Quoted 22 lines · Khem Raj
Quoted 10 lines · Andrei Gherzan
Quoted 8 lines · Khem Raj
Quoted 6 lines · Andrei Gherzan

From: Andrei Gherzan <[email protected]>

This recipe explicitely rdepends on glibc so trying to build this with musl will break world builds.

Quoted 6 lines
Quoted 1 line

do you know why is it marked as glibc only.

I've tried to figure it out but I couldn't find anything obvious.

https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/singularity/singularity_git.bb?id=06bc17d1f0650ad2cb134b09b25133bcd641d473

maybe that rdep on glibc is bogus. Its not normal to depends on glibc like that, in some cases e.g. locales etc it maybe that we need them but thats usually for ptests etc.
can you try to remove the rdep and see if it builds ok with musl too ?

Quoted 6 lines
Quoted 1 line

It built alright but I didn't check any runtime behaviour. I do find this a bit orthogonal at this point but I've sent both patches so Bruce can pick any - both approaches are working for me.

I've gone for the removal of the glibc dep, singluarity needs quite a bit of runtime work .. so we'll do with that, and see if anyone notices.

merged to master and kirkstone.

Thanks, Bruce.

Andrei