bats: use baselib
PATCH 1/1 bats: use baselib
From: Joe Slater <[email protected]>
Use sed to change scripts to reference ${baselib}. The former set of scripts modified was incomplete.
Signed-off-by Joe Slater <[email protected]>
--- meta-oe/recipes-test/bats/bats_1.9.0.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
meta-oe/recipes-test/bats/bats_1.9.0.bb +5 -3
@@ -15,10 +15,12 @@ SRCREV = "6636e2c2ef5ffe361535cb45fc61682c5ef46b71" S = "${WORKDIR}/git" +# Numerous scripts assume ${baselib} == lib, which is not true. +# do_configure:prepend() { - sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats - sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-file - sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-test + for f in ${S}/libexec/bats-core/* ${S}/lib/bats-core/* ; do + sed -i 's:\$BATS_ROOT/lib/:\$BATS_ROOT/${baselib}/:g' $f + done } do_install() {
Signature · 1 line
2.25.1