]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
busybox: Use base_bindir instead of hardcoding /bin path
authorKhem Raj <raj.khem@gmail.com>
Sun, 24 Apr 2022 22:20:30 +0000 (15:20 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Apr 2022 17:24:37 +0000 (18:24 +0100)
This symlink is not valid when using usrmerge and ptest packaging would fail

Exception: FileExistsError: [Errno 17] File exists: '/usr/bin/busybox.suid' -> '/mnt/b/yoe/master/build/tmp/work/ppc64p9le-yoe-linux-musl/busybox/1.35.0-r0/package/usr/lib/busybox/ptest/bin/login'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/busybox.inc

index 69fa499737517f56d59161e533ff1f110106bfe9..5f1c473d5ea5b7d498a77fe215e140a0a2421d31 100644 (file)
@@ -347,7 +347,7 @@ do_install_ptest () {
         # These access the internet which is not guaranteed to work on machines running the tests
         rm -rf ${D}${PTEST_PATH}/testsuite/wget
        sort ${B}/.config > ${D}${PTEST_PATH}/.config
-       ln -s /bin/busybox   ${D}${PTEST_PATH}/busybox
+       ln -s ${base_bindir}/busybox   ${D}${PTEST_PATH}/busybox
 }
 
 inherit update-alternatives