From c4041b667dbab0285145bdc78decc85e341e0072 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 16 Jun 2022 12:22:50 +0100 Subject: [PATCH] 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/ Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- .../external-arm-toolchain/androidclang_r416183b.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/androidclang_r416183b.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/androidclang_r416183b.bb index 82133886..c8640d76 100644 --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/androidclang_r416183b.bb +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/androidclang_r416183b.bb @@ -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"