summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2019-06-20 10:48:44 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-21 15:32:36 +0100
commitd4d8e851062ce5cc43bfe1cc65df4343b6572bfa (patch)
tree2ff251916c1842cc887696d2846030bd3fdaec60 /meta/recipes-devtools/perl
parentff31e2860ab80ffecd3b273f40744daf96a4a184 (diff)
downloadpoky-d4d8e851062ce5cc43bfe1cc65df4343b6572bfa.tar.gz
perl: Improve ptest package reproducibility
Fixes a few reproducibility issues in the perl ptest package: 1) config.log has a lot of paths encoded in it. This file is unnecessary for ptest, so it is omitted from the package 2) Makefile.config has a lot of paths encoded in it. This file should be fixed up using the same rules as several other files that are in the package 3) Paths in DEBUG_PREFIX_MAP are not being correctly removed from files because DEBUG_PREFIX_MAP is now several command line arguments. Instead of requiring an exact match for all arguments, remove any matching argument. (From OE-Core rev: 04454faadf5cf18c054c98803380393db42646c4) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl')
-rw-r--r--meta/recipes-devtools/perl/perl-ptest.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc
index 9dd9b7da57..7152057762 100644
--- a/meta/recipes-devtools/perl/perl-ptest.inc
+++ b/meta/recipes-devtools/perl/perl-ptest.inc
@@ -2,6 +2,9 @@ inherit ptest
2 2
3SRC_URI += "file://run-ptest \ 3SRC_URI += "file://run-ptest \
4 " 4 "
5
6DEBUG_PREFIX_MAP_REGEX = "${@'\\|'.join(d.getVar('DEBUG_PREFIX_MAP').split())}"
7
5do_install_ptest () { 8do_install_ptest () {
6 mkdir -p ${D}${PTEST_PATH} 9 mkdir -p ${D}${PTEST_PATH}
7 sed -e "s:\/usr\/local:${bindir}:g" -i cpan/version/t/* 10 sed -e "s:\/usr\/local:${bindir}:g" -i cpan/version/t/*
@@ -13,7 +16,7 @@ do_install_ptest () {
13 --exclude='win32/config.*' --exclude=plan9 --exclude=README.plan9 --exclude=perlplan9.pod --exclude=Configure \ 16 --exclude='win32/config.*' --exclude=plan9 --exclude=README.plan9 --exclude=perlplan9.pod --exclude=Configure \
14 --exclude=veryclean.sh --exclude=realclean.sh --exclude=getioctlsizes \ 17 --exclude=veryclean.sh --exclude=realclean.sh --exclude=getioctlsizes \
15 --exclude=dl_aix.xs --exclude=sdbm.3 --exclude='cflags.SH' --exclude=makefile.old \ 18 --exclude=dl_aix.xs --exclude=sdbm.3 --exclude='cflags.SH' --exclude=makefile.old \
16 --exclude=miniperl --exclude=generate_uudmap --exclude=patches * | ( cd ${D}${PTEST_PATH} && tar -x ) 19 --exclude=miniperl --exclude=generate_uudmap --exclude=patches --exclude='config.log' * | ( cd ${D}${PTEST_PATH} && tar -x )
17 20
18 ln -sf ${bindir}/perl ${D}${PTEST_PATH}/t/perl 21 ln -sf ${bindir}/perl ${D}${PTEST_PATH}/t/perl
19 22
@@ -21,12 +24,12 @@ do_install_ptest () {
21 find "${D}${PTEST_PATH}" \ 24 find "${D}${PTEST_PATH}" \
22 \( -name '*.PL' -o -name 'myconfig' -o -name 'cflags' -o -name '*.pl' -o -name '*.sh' -o -name '*.pm' \ 25 \( -name '*.PL' -o -name 'myconfig' -o -name 'cflags' -o -name '*.pl' -o -name '*.sh' -o -name '*.pm' \
23 -o -name 'h2xs' -o -name 'h2ph' \ 26 -o -name 'h2xs' -o -name 'h2ph' \
24 -o -name '*.h' -o -name 'config.sh-*' -o -name 'pod2man' -o -name 'pod2text' \) \ 27 -o -name '*.h' -o -name 'config.sh-*' -o -name 'pod2man' -o -name 'pod2text' -o -name 'Makefile.config' \) \
25 -type f -exec sed -i \ 28 -type f -exec sed -i \
26 -e "s,${D},,g" \ 29 -e "s,${D},,g" \
27 -e "s,--sysroot=${STAGING_DIR_HOST},,g" \ 30 -e "s,--sysroot=${STAGING_DIR_HOST},,g" \
28 -e "s,-isystem${STAGING_INCDIR} ,,g" \ 31 -e "s,-isystem${STAGING_INCDIR} ,,g" \
29 -e 's|${DEBUG_PREFIX_MAP}||g' \ 32 -e 's^${DEBUG_PREFIX_MAP_REGEX}^^g' \
30 -e "s,${STAGING_BINDIR_NATIVE}/perl-native/,${bindir}/,g" \ 33 -e "s,${STAGING_BINDIR_NATIVE}/perl-native/,${bindir}/,g" \
31 -e "s,${STAGING_LIBDIR},${libdir},g" \ 34 -e "s,${STAGING_LIBDIR},${libdir},g" \
32 -e "s,${STAGING_BINDIR},${bindir},g" \ 35 -e "s,${STAGING_BINDIR},${bindir},g" \