curl: improve reproducibility
PATCH 1/1 curl: improve reproducibility
Nativesdk package contains host references in output packages. Remove them.
Signed-off-by Oleh Matiusha <[email protected]>
--- meta/recipes-support/curl/curl_7.85.0.bb | 10 ++++++++++ 1 file changed, 10 insertions(+)
meta/recipes-support/curl/curl_7.85.0.bb +10 -0
@@ -110,6 +110,16 @@ do_install:append:class-target() { ${D}${bindir}/curl-config } +do_install:append:class-nativesdk() { + # cleanup buildpaths from curl-config + sed -i \ + -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ + -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \ + -e 's|${DEBUG_PREFIX_MAP}||g' \ + -e 's|${@" ".join(d.getVar("DEBUG_PREFIX_MAP").split())}||g' \ + ${D}${bindir}/curl-config +} + do_compile_ptest() { oe_runmake test oe_runmake -C ${B}/tests/server
Signature · 1 line
2.33.0
It’s better to separate the processing into its own function so you don’t have to copy paste it from target install.
Alex
Quoted 45 lines · Oleh Matiusha via lists.openembedded.org
Nativesdk package contains host references in output packages. Remove them.
Signed-off-by Oleh Matiusha <[email protected]>--- meta/recipes-support/curl/curl_7.85.0.bb | 10 ++++++++++ 1 file changed, 10 insertions(+)meta/recipes-support/curl/curl_7.85.0.bb +10
-1@@ -110,6 +110,16 @@ do_install:append:class-target() { ${D}${bindir}/curl-config } +do_install:append:class-nativesdk() { + # cleanup buildpaths from curl-config + sed -i \ + -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ + -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \ + -e 's|${DEBUG_PREFIX_MAP}||g' \ + -e 's|${@" ".join(d.getVar("DEBUG_PREFIX_MAP").split())}||g' \ + ${D}${bindir}/curl-config +} + do_compile_ptest() { oe_runmake test oe_runmake -C ${B}/tests/server --2.33.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#196204):
https://lists.openembedded.org/g/openembedded-core/message/196204
Mute This Topic: https://lists.openembedded.org/mt/104582066/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-