summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2020-01-10 17:24:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-11 09:19:19 +0000
commitea11f86ce936eac2c32928b04c00487b4d91eae8 (patch)
tree4f6f71794f7cb29d8e6b34e4828e3eb699579fe6 /meta/recipes-devtools/perl
parent08220028e52992dcba667fc97bf3afe8be1949fb (diff)
downloadpoky-ea11f86ce936eac2c32928b04c00487b4d91eae8.tar.gz
perl: improve reproducibility
Occasionally the reproducibility selftest fails because perl-pod differs, specifically that the perltoc.pod file was sometimes missing modules. Debugging revealed that there are missing dependencies so there is a build race: building perltoc.pod from an clean build tree results in no modules being listed at all. A bug has been filed at https://github.com/arsv/perl-cross/issues/86 to solve this properly, but for now we can just delete perltoc.pod after make has finished and re-generate it. [ YOCTO #13726 ] (From OE-Core rev: 7e0f6c9ea4f824f29dc30c6631fd8039ebe83a0b) Signed-off-by: Ross Burton <ross.burton@intel.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_5.30.1.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.30.1.bb b/meta/recipes-devtools/perl/perl_5.30.1.bb
index 66707e7f9d..03e7f206f9 100644
--- a/meta/recipes-devtools/perl/perl_5.30.1.bb
+++ b/meta/recipes-devtools/perl/perl_5.30.1.bb
@@ -112,6 +112,14 @@ print(datetime.fromtimestamp($SOURCE_DATE_EPOCH, timezone.utc).strftime('%a %b %
112 112
113do_compile() { 113do_compile() {
114 oe_runmake 114 oe_runmake
115 # This isn't generated reliably so delete and re-generate.
116 # https://github.com/arsv/perl-cross/issues/86
117
118 if [ -e pod/perltoc.pod ]; then
119 bbnote Rebuilding perltoc.pod
120 rm -f pod/perltoc.pod
121 oe_runmake pod/perltoc.pod
122 fi
115} 123}
116 124
117do_install() { 125do_install() {