nativesdk-bash package contains host references in output packages.
remove them.

Signed-off-by: Oleh Matiusha <[email protected]>
---
v2
 - moved common code to separate function
---
---
 meta/recipes-extended/bash/bash.inc | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/bash/bash.inc 
b/meta/recipes-extended/bash/bash.inc
index 7832ad052b..e541161c75 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -74,7 +74,8 @@ do_install:append () {
                mv ${D}${bindir}/bash ${D}${base_bindir}
        fi
 }
-do_install:append:class-target () {
+
+fix_absolute_paths () {
        # Clean buildhost references in bashbug
        sed -i -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \
                -e "s,-I${WORKDIR}/\S* ,,g" \
@@ -93,6 +94,14 @@ do_install:append:class-target () {
                ${D}${libdir}/bash/Makefile.inc
 }
 
+do_install:append:class-target () {
+       fix_absolute_paths
+}
+
+do_install:append:class-nativesdk () {
+       fix_absolute_paths
+}
+
 do_install_ptest () {
        make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test
        cp ${B}/Makefile ${D}${PTEST_PATH}
-- 
2.33.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197912): 
https://lists.openembedded.org/g/openembedded-core/message/197912
Mute This Topic: https://lists.openembedded.org/mt/105304955/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to