All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pango: improve reproducibility
@ 2021-01-21 13:07 Oleksiy Obitotskyy
  2021-01-21 13:31 ` [OE-core] " Ross Burton
  0 siblings, 1 reply; 3+ messages in thread
From: Oleksiy Obitotskyy @ 2021-01-21 13:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: Oleksiy Obitotskyy

Replace filename with basename in templates
to avoid absolute path in generated source files.

Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
---
 meta/recipes-graphics/pango/pango_1.48.0.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-graphics/pango/pango_1.48.0.bb b/meta/recipes-graphics/pango/pango_1.48.0.bb
index 552a44583c..a070581732 100644
--- a/meta/recipes-graphics/pango/pango_1.48.0.bb
+++ b/meta/recipes-graphics/pango/pango_1.48.0.bb
@@ -35,6 +35,9 @@ GIR_MESON_OPTION = 'introspection'
 
 do_configure_prepend() {
     chmod +x ${S}/tests/*.py
+    if [ -n "$SOURCE_DATE_EPOCH" ]; then
+        find ${S} -name "*.template" -print0 | xargs -0 sed -i -e "s/@filename@/@basename@/"
+    fi
 }
 
 do_configure_prepend_toolchain-clang() {
-- 
2.26.2.Cisco


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

end of thread, other threads:[~2021-01-21 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21 13:07 [PATCH] pango: improve reproducibility Oleksiy Obitotskyy
2021-01-21 13:31 ` [OE-core] " Ross Burton
2021-01-21 14:12   ` Oleksiy Obitotskyy

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.