Skip to contentSkip to conversation

bats: use baselib

PATCH New [email protected] 1 participant 1 message May 18, 2023

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index a642d7cf5d..015bc42f82 100644
@@ -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