All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] curl: improve reproducibility
@ 2024-03-27 17:14 Oleh Matiusha
  2024-03-27 20:17 ` [OE-core] " Ross Burton
  0 siblings, 1 reply; 3+ messages in thread
From: Oleh Matiusha @ 2024-03-27 17:14 UTC (permalink / raw)
  To: openembedded-core

nativesdk-curl package contains host references in output files.
remove them.

Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
---
v2
 - moved common code to separate function 
---
---
 meta/recipes-support/curl/curl_8.6.0.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-support/curl/curl_8.6.0.bb b/meta/recipes-support/curl/curl_8.6.0.bb
index ea69164d76..49ba0cb4a7 100644
--- a/meta/recipes-support/curl/curl_8.6.0.bb
+++ b/meta/recipes-support/curl/curl_8.6.0.bb
@@ -79,7 +79,7 @@ EXTRA_OECONF = " \
     ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls openssl', d) == '') else ''} \
 "
 
-do_install:append:class-target() {
+fix_absolute_paths () {
 	# cleanup buildpaths from curl-config
 	sed -i \
 	    -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
@@ -89,6 +89,14 @@ do_install:append:class-target() {
 	    ${D}${bindir}/curl-config
 }
 
+do_install:append:class-target() {
+	fix_absolute_paths
+}
+
+do_install:append:class-nativesdk() {
+	fix_absolute_paths
+}
+
 do_compile_ptest() {
 	oe_runmake -C ${B}/tests
 }
-- 
2.33.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH v2] curl: improve reproducibility
  2024-03-27 17:14 [PATCH v2] curl: improve reproducibility Oleh Matiusha
@ 2024-03-27 20:17 ` Ross Burton
  2024-04-03  9:04   ` Oleh Matiusha
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2024-03-27 20:17 UTC (permalink / raw)
  To: omatiush; +Cc: openembedded-core

On 27 Mar 2024, at 17:14, Oleh Matiusha via lists.openembedded.org <omatiush=cisco.com@lists.openembedded.org> wrote:
> +do_install:append:class-target() {
> + fix_absolute_paths
> +}
> +
> +do_install:append:class-nativesdk() {
> + fix_absolute_paths
> +}

Would it be best to just always do this sed?  A native build won’t have a —sysroot anyway.

(or even better, stop curl-config from embedding the sysroot in the first place)

Ross

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] curl: improve reproducibility
  2024-03-27 20:17 ` [OE-core] " Ross Burton
@ 2024-04-03  9:04   ` Oleh Matiusha
  0 siblings, 0 replies; 3+ messages in thread
From: Oleh Matiusha @ 2024-04-03  9:04 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 65 bytes --]

What about --with-libtool-sysroot and DEBUG_PREFIX_MAP?

Oleh

[-- Attachment #2: Type: text/html, Size: 73 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-03  9:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27 17:14 [PATCH v2] curl: improve reproducibility Oleh Matiusha
2024-03-27 20:17 ` [OE-core] " Ross Burton
2024-04-03  9:04   ` Oleh Matiusha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.