]> code.ossystems Code Review - openembedded-core.git/commitdiff
perl-dbg: improve reproducibility
authorJuro Bystricky <juro.bystricky@intel.com>
Sun, 7 Jan 2018 16:56:07 +0000 (08:56 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 7 Jan 2018 22:57:26 +0000 (22:57 +0000)
Remove various build host references scattered within
comments in numerous files that are distributed in the package.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl/perl_5.24.1.bb

index 6b27b22d2282a86ebf660a319cde044adf7c073f..ab0462411f0cf83326afb6236816157c44901caa 100644 (file)
@@ -188,6 +188,19 @@ do_compile() {
         oe_runmake perl LD="${CCLD}"
 }
 
+do_compile_append_class-target() {
+        # Remove build host references from numerous comments...
+        find "${S}/cpan/Encode" -type f \
+            \( -name '*.exh' -o -name '*.c' -o -name '*.h' \)\
+            -exec sed -i -e 's:${RECIPE_SYSROOT_NATIVE}::g' {} +
+        sed -i -e 's:${RECIPE_SYSROOT}::g' ${S}/perl.h ${S}/pp.h
+        sed -i -e 's:${RECIPE_SYSROOT_NATIVE}/usr/bin/perl-native/perl${PV}.real:/usr/bin/perl${PV}:g'  \
+            ${S}/cpan/Compress-Raw-Bzip2/constants.h \
+            ${S}/cpan/Compress-Raw-Zlib/constants.h \
+            ${S}/cpan/IPC-SysV/const-c.inc \
+            ${S}/dist/Time-HiRes/const-c.inc
+}
+
 do_install() {
        #export hostperl="${STAGING_BINDIR_NATIVE}/perl-native/perl${PV}"
        oe_runmake install DESTDIR=${D}