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

Signed-off-by: Oleksiy Obitotskyy <oobit...@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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#147062): 
https://lists.openembedded.org/g/openembedded-core/message/147062
Mute This Topic: https://lists.openembedded.org/mt/80002908/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to