aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakib Sajal <sakib.sajal@windriver.com>2021-09-17 19:13:00 -0400
committerKhem Raj <raj.khem@gmail.com>2021-09-20 08:48:41 -0700
commite17e680664ee3f7a91dfc14ba5e82f00eb06ef16 (patch)
treefd03e8b6f1975ef83183c082a052a0eb03257325
parent4118d0eb23bcddae6d34376ff1ed4a61cfa570f3 (diff)
downloadmeta-openembedded-e17e680664ee3f7a91dfc14ba5e82f00eb06ef16.tar.gz
meta-openembedded-e17e680664ee3f7a91dfc14ba5e82f00eb06ef16.tar.bz2
meta-openembedded-e17e680664ee3f7a91dfc14ba5e82f00eb06ef16.zip
bats: source files from correct directory
Files are installed in ${baselib} directory when multilib is enabled and not in the hardcoded lib directory making it fail to source bats-core files. Parameterize the libdir such that the files are sources correctly. Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-test/bats/bats_1.4.1.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/recipes-test/bats/bats_1.4.1.bb b/meta-oe/recipes-test/bats/bats_1.4.1.bb
index b30055549..30e83457c 100644
--- a/meta-oe/recipes-test/bats/bats_1.4.1.bb
+++ b/meta-oe/recipes-test/bats/bats_1.4.1.bb
@@ -14,6 +14,12 @@ SRCREV = "54e965fa9d269c2b3ff9036d81f32bac3df0edea"
S = "${WORKDIR}/git"
+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
+}
+
do_install() {
# Just a bunch of bash scripts to install
${S}/install.sh ${D}${prefix} ${baselib}