diff options
| author | Ross Burton <ross@burtonini.com> | 2021-11-10 11:12:34 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-10 19:27:29 +0000 |
| commit | c0583c6bfc13c0f3031b8bc87407485b3fe9856f (patch) | |
| tree | 3edadc5eeef4a38998b28c29c30e39738dcc01f3 /meta/recipes-core/musl | |
| parent | 974df2f61c9c7fbdb79f825f1b8d70299b72fa2c (diff) | |
| download | poky-c0583c6bfc13c0f3031b8bc87407485b3fe9856f.tar.gz | |
meta: use ln -rs instead of lnr
lnr is a script in oe-core that creates relative symlinks, with the same
behaviour as `ln --relative --symlink`. It was added back in 2014[1] as
not all of the supported host distributions at the time shipped
coreutils 8.16, the first release with --relative.
However the oldest coreutils release in the supported distributions is
now 8.22 in CentOS 7, so lnr can be deprecated and users switched to ln.
[1] 6ae3b85eaffd1b0b6914422e8de7c1230723157d
(From OE-Core rev: 1ca455a98de4c713f58df0a537d4c982d256cd68)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/musl')
| -rw-r--r-- | meta/recipes-core/musl/gcompat_git.bb | 2 | ||||
| -rw-r--r-- | meta/recipes-core/musl/musl_git.bb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/musl/gcompat_git.bb b/meta/recipes-core/musl/gcompat_git.bb index 6e5cc11d5d..955cc3c010 100644 --- a/meta/recipes-core/musl/gcompat_git.bb +++ b/meta/recipes-core/musl/gcompat_git.bb | |||
| @@ -37,7 +37,7 @@ do_install () { | |||
| 37 | oe_runmake install 'DESTDIR=${D}' | 37 | oe_runmake install 'DESTDIR=${D}' |
| 38 | if [ "${SITEINFO_BITS}" = "64" ]; then | 38 | if [ "${SITEINFO_BITS}" = "64" ]; then |
| 39 | install -d ${D}/lib64 | 39 | install -d ${D}/lib64 |
| 40 | lnr ${D}${GLIBC_LDSO} ${D}/lib64/`basename ${GLIBC_LDSO}` | 40 | ln -rs ${D}${GLIBC_LDSO} ${D}/lib64/`basename ${GLIBC_LDSO}` |
| 41 | fi | 41 | fi |
| 42 | } | 42 | } |
| 43 | 43 | ||
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb index 03ab0a449f..50daca1eff 100644 --- a/meta/recipes-core/musl/musl_git.bb +++ b/meta/recipes-core/musl/musl_git.bb | |||
| @@ -66,7 +66,7 @@ do_install() { | |||
| 66 | echo "${base_libdir}" > ${D}${sysconfdir}/ld-musl-${MUSL_LDSO_ARCH}.path | 66 | echo "${base_libdir}" > ${D}${sysconfdir}/ld-musl-${MUSL_LDSO_ARCH}.path |
| 67 | echo "${libdir}" >> ${D}${sysconfdir}/ld-musl-${MUSL_LDSO_ARCH}.path | 67 | echo "${libdir}" >> ${D}${sysconfdir}/ld-musl-${MUSL_LDSO_ARCH}.path |
| 68 | rm -f ${D}${bindir}/ldd ${D}${GLIBC_LDSO} | 68 | rm -f ${D}${bindir}/ldd ${D}${GLIBC_LDSO} |
| 69 | lnr ${D}${libdir}/libc.so ${D}${bindir}/ldd | 69 | ln -rs ${D}${libdir}/libc.so ${D}${bindir}/ldd |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | FILES:${PN} += "/lib/ld-musl-${MUSL_LDSO_ARCH}.so.1 ${sysconfdir}/ld-musl-${MUSL_LDSO_ARCH}.path" | 72 | FILES:${PN} += "/lib/ld-musl-${MUSL_LDSO_ARCH}.so.1 ${sysconfdir}/ld-musl-${MUSL_LDSO_ARCH}.path" |
