]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
parted: use libtool to install test binaries
authorRoss Burton <ross.burton@arm.com>
Fri, 9 Jan 2026 13:11:28 +0000 (13:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Jan 2026 10:16:17 +0000 (10:16 +0000)
If libtool builds a binary it's best to use libtool to install it, as
otherwise you might install a wrapper script or need to make assumptions
about where libtool has put the real binary (as this isn't always .libs)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/parted/parted_3.6.bb

index 6fc2cb3b3aa8794218682a1e292a7488936e63aa..8f703d162ff6af41064b8c2f07e30e58a7a24041 100644 (file)
@@ -45,8 +45,8 @@ do_install_ptest() {
            -e "s|^Makefile:.*|Makefile:|g" \
            -e "/^BUILDINFO.*$/d" \
            -i $t/tests/Makefile
-       for i in print-align print-max print-flags dup-clobber duplicate fs-resize; \
-         do cp ${B}/tests/.libs/$i $t/tests/; \
+       for i in print-align print-max print-flags dup-clobber duplicate fs-resize; do
+               ${B}/libtool --mode=install install ${B}/tests/$i $t/tests/
        done
        sed -e 's| ../parted||' -i $t/tests/*.sh
 }