[OE-core] [PATCH 1/1] bash: fix interpreter of ptest script

kai.kang at windriver.com kai.kang at windriver.com
Wed Aug 24 09:26:37 UTC 2016


From: Kai Kang <kai.kang at windriver.com>

The interpreter of bash ptest script tests/getopts5.sub is
/local/bin/bash which is not suitable for oe. Use /bin/bash instead.

Signed-off-by: Kai Kang <kai.kang at windriver.com>
---
 meta/recipes-extended/bash/bash.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index 1d08526..d299a4a 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -54,6 +54,8 @@ do_install_ptest () {
 	cp ${B}/Makefile ${D}${PTEST_PATH}
         sed -i -e 's/^Makefile/_Makefile/' -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \
 	    -e "s,${S},,g" -e "s,${B},,g" -e "s,${STAGING_DIR_NATIVE},,g" ${D}${PTEST_PATH}/Makefile
+
+	sed -i -e 's:/local\(/bin/bash\):\1:' ${D}${PTEST_PATH}/tests/getopts5.sub
 }
 
 pkg_postinst_${PN} () {
-- 
2.9.3




More information about the Openembedded-core mailing list