diff options
author | Sakib Sajal <sakib.sajal@windriver.com> | 2021-09-17 19:13:00 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-09-24 08:12:35 -0700 |
commit | 34ec975313003c83ab9dbbe8c698aa750fa08354 (patch) | |
tree | 04224b7666e9d3514bcbe282803c425071ee313d | |
parent | d11af153b7e89905132f57b009dcb29c9d0f1fa1 (diff) | |
download | meta-openembedded-34ec975313003c83ab9dbbe8c698aa750fa08354.tar.gz |
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.bb | 6 |
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" | |||
14 | 14 | ||
15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
16 | 16 | ||
17 | do_configure:prepend() { | ||
18 | sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats | ||
19 | sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-file | ||
20 | sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-test | ||
21 | } | ||
22 | |||
17 | do_install() { | 23 | do_install() { |
18 | # Just a bunch of bash scripts to install | 24 | # Just a bunch of bash scripts to install |
19 | ${S}/install.sh ${D}${prefix} ${baselib} | 25 | ${S}/install.sh ${D}${prefix} ${baselib} |