diff options
author | Oleh Matiusha <omatiush@cisco.com> | 2024-04-03 08:53:47 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-04 14:05:03 +0100 |
commit | e96918f49ece07370cb5b46f5b98d456b6fc1d56 (patch) | |
tree | bb017a8297718d4f1299339eb7beaf601ee56f1d /meta/recipes-extended | |
parent | fa6c4f014a5cd4d10b266d9e08842db107d52aaa (diff) | |
download | poky-e96918f49ece07370cb5b46f5b98d456b6fc1d56.tar.gz |
bash: improve reproducibility
nativesdk-bash package contains host references in output packages.
remove them.
(From OE-Core rev: 9d749f0a67ce72952e7a731fe5081ae5f432dfdb)
Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/bash/bash.inc | 11 |
1 files changed, 10 insertions, 1 deletions
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 () { | |||
74 | mv ${D}${bindir}/bash ${D}${base_bindir} | 74 | mv ${D}${bindir}/bash ${D}${base_bindir} |
75 | fi | 75 | fi |
76 | } | 76 | } |
77 | do_install:append:class-target () { | 77 | |
78 | fix_absolute_paths () { | ||
78 | # Clean buildhost references in bashbug | 79 | # Clean buildhost references in bashbug |
79 | sed -i -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \ | 80 | sed -i -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \ |
80 | -e "s,-I${WORKDIR}/\S* ,,g" \ | 81 | -e "s,-I${WORKDIR}/\S* ,,g" \ |
@@ -93,6 +94,14 @@ do_install:append:class-target () { | |||
93 | ${D}${libdir}/bash/Makefile.inc | 94 | ${D}${libdir}/bash/Makefile.inc |
94 | } | 95 | } |
95 | 96 | ||
97 | do_install:append:class-target () { | ||
98 | fix_absolute_paths | ||
99 | } | ||
100 | |||
101 | do_install:append:class-nativesdk () { | ||
102 | fix_absolute_paths | ||
103 | } | ||
104 | |||
96 | do_install_ptest () { | 105 | do_install_ptest () { |
97 | make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test | 106 | make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test |
98 | cp ${B}/Makefile ${D}${PTEST_PATH} | 107 | cp ${B}/Makefile ${D}${PTEST_PATH} |