* [meta-poky][PATCH] musl: removes aliases for glibc provided libraries
@ 2020-03-11 10:44 ja.kaisrlik
2020-03-11 14:23 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: ja.kaisrlik @ 2020-03-11 10:44 UTC (permalink / raw)
To: poky; +Cc: raj.khem, armccurdy, Jan Kaisrlik
From: Jan Kaisrlik <ja.kaisrlik@gmail.com>
Based on the recommendation in musl mailing list[1] All symlinks have
been removed from musl recipe.
[1]: https://www.openwall.com/lists/musl/2020/03/10/11
Signed-off-by: Jan Kaisrlik <ja.kaisrlik@gmail.com>
---
To move discusion from musl mainling list futher I wrote this patch. I'm affraid
that the patch can break existing builds. OTOH I've tested with my non-trivial
distro and I find sdk/image working without any additional patches.
meta/recipes-core/musl/musl_git.bb | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index afc8446547..f4fbb03092 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -66,24 +66,11 @@ do_install() {
rm -f ${D}${bindir}/ldd ${D}${GLIBC_LDSO}
lnr ${D}${libdir}/libc.so ${D}${bindir}/ldd
lnr ${D}${libdir}/libc.so ${D}${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
}
PACKAGES =+ "${PN}-glibc-compat"
-FILES_${PN}-glibc-compat += "\
- ${libdir}/libc.so.6 ${libdir}/libcrypt.so.1 \
- ${libdir}/libdl.so.2 ${libdir}/libm.so.6 \
- ${libdir}/libpthread.so.0 ${libdir}/libresolv.so.2 \
- ${libdir}/librt.so.1 ${libdir}/libutil.so.1 \
- ${GLIBC_LDSO} \
- "
+FILES_${PN}-glibc-compat += "${GLIBC_LDSO}"
RDEPENDS_${PN}-dev += "linux-libc-headers-dev bsd-headers-dev libssp-nonshared-staticdev"
RPROVIDES_${PN}-dev += "libc-dev virtual-libc-dev"
--
2.25.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-poky][PATCH] musl: removes aliases for glibc provided libraries
2020-03-11 10:44 [meta-poky][PATCH] musl: removes aliases for glibc provided libraries ja.kaisrlik
@ 2020-03-11 14:23 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2020-03-11 14:23 UTC (permalink / raw)
To: ja.kaisrlik; +Cc: armccurdy, poky
[-- Attachment #1: Type: text/plain, Size: 2308 bytes --]
On Wed, Mar 11, 2020 at 3:44 AM <ja.kaisrlik@gmail.com> wrote:
> From: Jan Kaisrlik <ja.kaisrlik@gmail.com>
>
> Based on the recommendation in musl mailing list[1] All symlinks have
> been removed from musl recipe.
>
> [1]: https://www.openwall.com/lists/musl/2020/03/10/11
>
> Signed-off-by: Jan Kaisrlik <ja.kaisrlik@gmail.com>
>
> ---
>
> To move discusion from musl mainling list futher I wrote this patch. I'm
> affraid
> that the patch can break existing builds. OTOH I've tested with my
> non-trivial
> distro and I find sdk/image working without any additional patches.
>
Reason was to have some of prebuilt application work but I guess that could
now have grcompat perhaps
So this might be doable now I will have to test this patch a bit and see
how it goes
>
> meta/recipes-core/musl/musl_git.bb | 15 +--------------
> 1 file changed, 1 insertion(+), 14 deletions(-)
>
> diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/
> musl_git.bb
> index afc8446547..f4fbb03092 100644
> --- a/meta/recipes-core/musl/musl_git.bb
> +++ b/meta/recipes-core/musl/musl_git.bb
> @@ -66,24 +66,11 @@ do_install() {
> rm -f ${D}${bindir}/ldd ${D}${GLIBC_LDSO}
> lnr ${D}${libdir}/libc.so ${D}${bindir}/ldd
> lnr ${D}${libdir}/libc.so ${D}${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
> }
>
> PACKAGES =+ "${PN}-glibc-compat"
>
> -FILES_${PN}-glibc-compat += "\
> - ${libdir}/libc.so.6 ${libdir}/libcrypt.so.1 \
> - ${libdir}/libdl.so.2 ${libdir}/libm.so.6 \
> - ${libdir}/libpthread.so.0 ${libdir}/libresolv.so.2 \
> - ${libdir}/librt.so.1 ${libdir}/libutil.so.1 \
> - ${GLIBC_LDSO} \
> - "
> +FILES_${PN}-glibc-compat += "${GLIBC_LDSO}"
>
> RDEPENDS_${PN}-dev += "linux-libc-headers-dev bsd-headers-dev
> libssp-nonshared-staticdev"
> RPROVIDES_${PN}-dev += "libc-dev virtual-libc-dev"
> --
> 2.25.0
>
>
[-- Attachment #2: Type: text/html, Size: 3562 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-11 14:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 10:44 [meta-poky][PATCH] musl: removes aliases for glibc provided libraries ja.kaisrlik
2020-03-11 14:23 ` 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.