From c3377df257b0f29b00e79322c3edc34c85cb1270 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 25 Jun 2026 06:17:28 +0000 Subject: [PATCH] tokyocabinet: drop $HOME/lib from LD_RUN_PATH to fix buildpaths QA 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 --- .../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 +}