arm-toolchain/androidclang: strip meaningless RPATHS
PATCH 1/3 arm-toolchain/androidclang: strip meaningless RPATHS
As per [1], target builds of androidclang produce useless-rpath errors.
/usr/share/clang-r416183b/python3/lib/python3.9/lib-dynload/_posixsubprocess.cpython-39-x86_64-linux-gnu.so contains probably-redundant RPATH /../lib [useless-rpaths]
Those RPATHs are of no use, so we can remove them entirely.
[1] https://errors.yoctoproject.org/Errors/Details/640604/
--- .../external-arm-toolchain/androidclang_r416183b.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/androidclang_r416183b.bb +3 -1
@@ -33,6 +33,8 @@ do_install() { install -d ${D}${datadir}/${ANDROID_CLANG_VERSION}/ cp --no-preserve=ownership -r ${S}/. ${D}${datadir}/${ANDROID_CLANG_VERSION}/ + # Strip bad RPATHs in the embedded python3 + chrpath -d ${D}${datadir}/${ANDROID_CLANG_VERSION}/python3/lib/python*/lib-dynload/*.so install -d ${D}${bindir} # Symlink all executables into bindir
@@ -43,7 +45,7 @@ do_install() { INHIBIT_DEFAULT_DEPS = "1" -INSANE_SKIP:${PN} = "already-stripped libdir staticdev file-rdeps arch dev-so useless-rpaths" +INSANE_SKIP:${PN} = "already-stripped libdir staticdev file-rdeps arch dev-so" INHIBIT_SYSROOT_STRIP = "1" INHIBIT_PACKAGE_STRIP = "1"
Signature · 1 line
2.25.1
PATCH 2/3 arm-toolchain/androidclang: move to libexecdir
Binaries shouldn't be in datadir, and now the RPATHs are being cleared we can put them in libexecdir.
--- .../external-arm-toolchain/androidclang_r416183b.bb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/androidclang_r416183b.bb +5 -7
@@ -25,20 +25,18 @@ BB_STRICT_CHECKSUM = "ignore" S = "${WORKDIR}/${ANDROID_CLANG_VERSION}" -FILES:${PN} = "${datadir} ${bindir}" +FILES:${PN} = "${libexecdir} ${bindir}" do_install() { - # We should really use ${libexecdir} here, but that as some files have invalid RPATH - # this results in lots of warning. So using ${datadir} for now - install -d ${D}${datadir}/${ANDROID_CLANG_VERSION}/ + install -d ${D}${libexecdir}/${ANDROID_CLANG_VERSION}/ - cp --no-preserve=ownership -r ${S}/. ${D}${datadir}/${ANDROID_CLANG_VERSION}/ + cp --no-preserve=ownership -r ${S}/. ${D}${libexecdir}/${ANDROID_CLANG_VERSION}/ # Strip bad RPATHs in the embedded python3 - chrpath -d ${D}${datadir}/${ANDROID_CLANG_VERSION}/python3/lib/python*/lib-dynload/*.so + chrpath -d ${D}${libexecdir}/${ANDROID_CLANG_VERSION}/python3/lib/python*/lib-dynload/*.so install -d ${D}${bindir} # Symlink all executables into bindir - for f in ${D}${datadir}/${ANDROID_CLANG_VERSION}/bin/*; do + for f in ${D}${libexecdir}/${ANDROID_CLANG_VERSION}/bin/*; do ln -rs $f ${D}${bindir}/$(basename $f) done }
Signature · 1 line
2.25.1
PATCH 3/3 arm-toolchain/external-arm-toolchain: remove pointless SUPPORTED file
In reply to Ross BurtonThis file isn't used, so remove it.
--- .../external-arm-toolchain/external-arm-toolchain.bb | 2 -- .../recipes-devtools/external-arm-toolchain/files/SUPPORTED | 1 - 2 files changed, 3 deletions(-) delete mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +0 -2
@@ -55,8 +55,6 @@ PV = "${EAT_VER_MAIN}" BINV = "${EAT_VER_GCC}" -SRC_URI = "file://SUPPORTED" - do_install() { # Add stubs for files OE-core expects install -d ${S}/nscd/
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED deleted +0 -1
@@ -1 +0,0 @@ -POSIX
Signature · 1 line
2.25.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [meta-arm] [PATCH 3/3] arm-toolchain/external-arm-toolchain: remove pointless SUPPORTED file
Retracting this, it turns out it is needed.
Ross
Quoted 43 lines · Ross Burton via lists.yoctoproject.org
This file isn't used, so remove it.
Signed-off-by Ross Burton <[email protected]>---
.../external-arm-toolchain/external-arm-toolchain.bb | 2 --
.../recipes-devtools/external-arm-toolchain/files/SUPPORTED | 1 -2 files changed, 3 deletions(-)delete mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +0
-0@@ -55,8 +55,6 @@ PV = "${EAT_VER_MAIN}"BINV = "${EAT_VER_GCC}"
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb +0
-2-SRC_URI = "file://SUPPORTED" -do_install() { # Add stubs for files OE-core expects install -d ${S}/nscd/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/files/SUPPORTED deleted +0
-1@@ -1 +0,0 @@ -POSIXSignature · 10 lines
2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#3509): https://lists.yoctoproject.org/g/meta-arm/message/3509 Mute This Topic: https://lists.yoctoproject.org/mt/91796807/6875888 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Jon Mason
AppliedQuoted 8 lines · Ross Burton
As per [1], target builds of androidclang produce useless-rpath errors.
/usr/share/clang-r416183b/python3/lib/python3.9/lib-dynload/_posixsubprocess.cpython-39-x86_64-linux-gnu.socontains probably-redundant RPATH /../lib [useless-rpaths]Those RPATHs are of no use, so we can remove them entirely.
[...]
Applied, thanks!
[1/3] arm-toolchain/androidclang: strip meaningless RPATHS
commit: c4041b667dbab0285145bdc78decc85e341e0072
[2/3] arm-toolchain/androidclang: move to libexecdir
commit: 70132043376ea3104c95f94ef19932aa36f4dd52[3/3] arm-toolchain/external-arm-toolchain: remove pointless SUPPORTED file
(no commit info)
Best regards,
Signature · 1 line
Jon Mason <[email protected]>