All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] musl: Add aliases for glibc provided libraries
@ 2018-09-16 15:53 Khem Raj
  2018-09-16 16:03 ` ✗ patchtest: failure for " Patchwork
  2018-09-17 18:19 ` [PATCH] " Andre McCurdy
  0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2018-09-16 15:53 UTC (permalink / raw)
  To: openembedded-core

This is a step towards running pebuilt applications for glibc  on musl
There are many realworld applications which are not always built from
source, especially provided by third party

Signee-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/musl/musl_git.bb | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index be31718e3a..a830c36eeb 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -26,6 +26,14 @@ DEPENDS = "virtual/${TARGET_PREFIX}binutils \
            bsd-headers \
            libssp-nonshared \
           "
+GLIBC_LDSO ?= "ld.so.1"
+GLIBC_LDSO_arm = "${@ bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'ld-linux-armhf.so.3', 'ld-linux.so.3', d)}"
+GLIBC_LDSO_aarch64 = "ld-linux-aarch64.so.1"
+GLIBC_LDSO_x86 = "ld-linux.so.2"
+GLIBC_LDSO_x86_64 = "ld-linux-x86-64.so.2"
+GLIBC_LDSO_x32 = "ld-linux-x32.so.2"
+GLIBC_LDSO_powerpc64 = "ld64.so.1"
+GLIBC_LDSO_mips64 = "ld64.so.1"
 
 export CROSS_COMPILE="${TARGET_PREFIX}"
 
@@ -62,10 +70,14 @@ do_install() {
 	install -d ${D}${bindir}
 	rm -f ${D}${bindir}/ldd
 	lnr ${D}${libdir}/libc.so ${D}${bindir}/ldd
+	lnr ${D}${libdir}/libc.so ${D}${base_libdir}/${GLIBC_LDSO}
 	for l in crypt dl m pthread resolv rt util xnet
 	do
 		ln -sf libc.so ${D}${libdir}/lib$l.so
 	done
+	for i in libc.so.6 libcrypt.so.1 libdl.so.2 libm.so.6 libpthread.so.0 libresolv.so.2 librt.so.1 libutil.so.1; do
+		ln -sf libc.so ${D}${libdir}/$i
+	done
 }
 
 RDEPENDS_${PN}-dev += "linux-libc-headers-dev bsd-headers-dev libssp-nonshared-staticdev"
-- 
2.19.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* ✗ patchtest: failure for musl: Add aliases for glibc provided libraries
  2018-09-16 15:53 [PATCH] musl: Add aliases for glibc provided libraries Khem Raj
@ 2018-09-16 16:03 ` Patchwork
  2018-09-17 18:19 ` [PATCH] " Andre McCurdy
  1 sibling, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-09-16 16:03 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

== Series Details ==

Series: musl: Add aliases for glibc provided libraries
Revision: 1
URL   : https://patchwork.openembedded.org/series/14093/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch            musl: Add aliases for glibc provided libraries
 Issue             Patch is missing Signed-off-by [test_signed_off_by_presence] 
  Suggested fix    Sign off the patch (either manually or with "git commit --amend -s")



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] musl: Add aliases for glibc provided libraries
  2018-09-16 15:53 [PATCH] musl: Add aliases for glibc provided libraries Khem Raj
  2018-09-16 16:03 ` ✗ patchtest: failure for " Patchwork
@ 2018-09-17 18:19 ` Andre McCurdy
  2018-09-17 21:43   ` Khem Raj
  1 sibling, 1 reply; 4+ messages in thread
From: Andre McCurdy @ 2018-09-17 18:19 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE Core mailing list

On Sun, Sep 16, 2018 at 8:53 AM, Khem Raj <raj.khem@gmail.com> wrote:
> This is a step towards running pebuilt applications for glibc  on musl
> There are many realworld applications which are not always built from
> source, especially provided by third party

Should these symlinks go in a separate package (musl-glibc-compat ?)
so that only people trying to run closed source glibc binaries on musl
need to see them?

> Signee-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-core/musl/musl_git.bb | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
> index be31718e3a..a830c36eeb 100644
> --- a/meta/recipes-core/musl/musl_git.bb
> +++ b/meta/recipes-core/musl/musl_git.bb
> @@ -26,6 +26,14 @@ DEPENDS = "virtual/${TARGET_PREFIX}binutils \
>             bsd-headers \
>             libssp-nonshared \
>            "
> +GLIBC_LDSO ?= "ld.so.1"
> +GLIBC_LDSO_arm = "${@ bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'ld-linux-armhf.so.3', 'ld-linux.so.3', d)}"
> +GLIBC_LDSO_aarch64 = "ld-linux-aarch64.so.1"
> +GLIBC_LDSO_x86 = "ld-linux.so.2"
> +GLIBC_LDSO_x86_64 = "ld-linux-x86-64.so.2"
> +GLIBC_LDSO_x32 = "ld-linux-x32.so.2"
> +GLIBC_LDSO_powerpc64 = "ld64.so.1"
> +GLIBC_LDSO_mips64 = "ld64.so.1"
>
>  export CROSS_COMPILE="${TARGET_PREFIX}"
>
> @@ -62,10 +70,14 @@ do_install() {
>         install -d ${D}${bindir}
>         rm -f ${D}${bindir}/ldd
>         lnr ${D}${libdir}/libc.so ${D}${bindir}/ldd
> +       lnr ${D}${libdir}/libc.so ${D}${base_libdir}/${GLIBC_LDSO}
>         for l in crypt dl m pthread resolv rt util xnet
>         do
>                 ln -sf libc.so ${D}${libdir}/lib$l.so
>         done
> +       for i in libc.so.6 libcrypt.so.1 libdl.so.2 libm.so.6 libpthread.so.0 libresolv.so.2 librt.so.1 libutil.so.1; do
> +               ln -sf libc.so ${D}${libdir}/$i
> +       done
>  }
>
>  RDEPENDS_${PN}-dev += "linux-libc-headers-dev bsd-headers-dev libssp-nonshared-staticdev"
> --
> 2.19.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] musl: Add aliases for glibc provided libraries
  2018-09-17 18:19 ` [PATCH] " Andre McCurdy
@ 2018-09-17 21:43   ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2018-09-17 21:43 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: OE Core mailing list

[-- Attachment #1: Type: text/plain, Size: 2732 bytes --]

On Mon, Sep 17, 2018 at 11:19 AM Andre McCurdy <armccurdy@gmail.com> wrote:

> On Sun, Sep 16, 2018 at 8:53 AM, Khem Raj <raj.khem@gmail.com> wrote:
> > This is a step towards running pebuilt applications for glibc  on musl
> > There are many realworld applications which are not always built from
> > source, especially provided by third party
>
> Should these symlinks go in a separate package (musl-glibc-compat ?)
> so that only people trying to run closed source glibc binaries on musl
> need to see them?


I thought about doing it but then this would mean we have to install that
package in image explicitly and here it’s practically adding no extra code
so decided against it but I am open if people feel strongly against it


>
> > Signee-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  meta/recipes-core/musl/musl_git.bb | 12 ++++++++++++
> >  1 file changed, 12 insertions(+)
> >
> > diff --git a/meta/recipes-core/musl/musl_git.bb
> b/meta/recipes-core/musl/musl_git.bb
> > index be31718e3a..a830c36eeb 100644
> > --- a/meta/recipes-core/musl/musl_git.bb
> > +++ b/meta/recipes-core/musl/musl_git.bb
> > @@ -26,6 +26,14 @@ DEPENDS = "virtual/${TARGET_PREFIX}binutils \
> >             bsd-headers \
> >             libssp-nonshared \
> >            "
> > +GLIBC_LDSO ?= "ld.so.1"
> > +GLIBC_LDSO_arm = "${@ bb.utils.contains('TUNE_FEATURES',
> 'callconvention-hard', 'ld-linux-armhf.so.3', 'ld-linux.so.3', d)}"
> > +GLIBC_LDSO_aarch64 = "ld-linux-aarch64.so.1"
> > +GLIBC_LDSO_x86 = "ld-linux.so.2"
> > +GLIBC_LDSO_x86_64 = "ld-linux-x86-64.so.2"
> > +GLIBC_LDSO_x32 = "ld-linux-x32.so.2"
> > +GLIBC_LDSO_powerpc64 = "ld64.so.1"
> > +GLIBC_LDSO_mips64 = "ld64.so.1"
> >
> >  export CROSS_COMPILE="${TARGET_PREFIX}"
> >
> > @@ -62,10 +70,14 @@ do_install() {
> >         install -d ${D}${bindir}
> >         rm -f ${D}${bindir}/ldd
> >         lnr ${D}${libdir}/libc.so ${D}${bindir}/ldd
> > +       lnr ${D}${libdir}/libc.so ${D}${base_libdir}/${GLIBC_LDSO}
> >         for l in crypt dl m pthread resolv rt util xnet
> >         do
> >                 ln -sf libc.so ${D}${libdir}/lib$l.so
> >         done
> > +       for i in libc.so.6 libcrypt.so.1 libdl.so.2 libm.so.6
> libpthread.so.0 libresolv.so.2 librt.so.1 libutil.so.1; do
> > +               ln -sf libc.so ${D}${libdir}/$i
> > +       done
> >  }
> >
> >  RDEPENDS_${PN}-dev += "linux-libc-headers-dev bsd-headers-dev
> libssp-nonshared-staticdev"
> > --
> > 2.19.0
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 4275 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-17 21:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-16 15:53 [PATCH] musl: Add aliases for glibc provided libraries Khem Raj
2018-09-16 16:03 ` ✗ patchtest: failure for " Patchwork
2018-09-17 18:19 ` [PATCH] " Andre McCurdy
2018-09-17 21:43   ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.