summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/bash
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/bash')
-rw-r--r--meta/recipes-extended/bash/bash.inc22
1 files changed, 19 insertions, 3 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index 92916d9a6a..f6cb7e4047 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -48,16 +48,32 @@ do_install_append () {
48 fi 48 fi
49} 49}
50do_install_append_class-target () { 50do_install_append_class-target () {
51 # Clean host path in bashbug 51 # Clean buildhost references in bashbug
52 sed -i -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \ 52 sed -i -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \
53 -e "s,-I${WORKDIR}/\S* ,,g" ${D}${bindir}/bashbug 53 -e "s,-I${WORKDIR}/\S* ,,g" \
54 -e 's|${DEBUG_PREFIX_MAP}||g' \
55 ${D}${bindir}/bashbug
56
57 # Clean buildhost references in bash.pc
58 sed -i -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \
59 ${D}${libdir}/pkgconfig/bash.pc
60
61 # Clean buildhost references in Makefile.inc
62 sed -i -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \
63 -e 's|${DEBUG_PREFIX_MAP}||g' \
64 -e 's:${HOSTTOOLS_DIR}/::g' \
65 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
66 ${D}${libdir}/bash/Makefile.inc
54} 67}
55 68
56do_install_ptest () { 69do_install_ptest () {
57 make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test 70 make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test
58 cp ${B}/Makefile ${D}${PTEST_PATH} 71 cp ${B}/Makefile ${D}${PTEST_PATH}
59 sed -i -e 's/^Makefile/_Makefile/' -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \ 72 sed -i -e 's/^Makefile/_Makefile/' -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \
60 -e "s,${S},,g" -e "s,${B},,g" -e "s,${STAGING_DIR_NATIVE},,g" ${D}${PTEST_PATH}/Makefile 73 -e 's|${DEBUG_PREFIX_MAP}||g' \
74 -e "s,${S},,g" -e "s,${B},,g" -e "s,${STAGING_DIR_NATIVE},,g" \
75 -e 's:${HOSTTOOLS_DIR}/::g' \
76 ${D}${PTEST_PATH}/Makefile
61} 77}
62 78
63pkg_postinst_${PN} () { 79pkg_postinst_${PN} () {