The Makefile bakes LD_RUN_PATH=...:$(HOME)/lib:/usr/local/lib:... into the command binaries via LDENV, embedding the build host HOME directory in the shipped binaries:
do_package_qa: QA Issue: File /usr/bin/tchmgr ... contains reference to the build host HOME directory [buildpaths] Strip the $(HOME)/lib and /usr/local/lib entries from the generated Makefile after configure. Signed-off-by: Khem Raj <[email protected]> --- .../recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb b/meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb index d0ed6013f7..77ac917005 100644 --- a/meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb +++ b/meta-oe/recipes-support/tokyocabinet/tokyocabinet_1.4.48.bb @@ -25,3 +25,11 @@ SRC_URI[sha256sum] = "a003f47c39a91e22d76bc4fe68b9b3de0f38851b160bbb1ca07a4f6441 DEPENDS = "bzip2 zlib" inherit autotools-brokensep + +# tokyocabinet bakes LD_RUN_PATH=...:$(HOME)/lib:/usr/local/lib:... into the +# command binaries via the Makefile LDENV/RUNENV variables, which leaks the +# build host HOME directory into the shipped binaries (buildpaths QA). Drop +# those host search paths from the generated Makefile after configure. +do_configure:append() { + sed -i -e 's,\$(HOME)/lib:,,g' -e 's,/usr/local/lib:,,g' ${B}/Makefile +}
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#127936): https://lists.openembedded.org/g/openembedded-devel/message/127936 Mute This Topic: https://lists.openembedded.org/mt/120018163/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
