Skip to content

Commit

Permalink
perl: improve reproducibility
Browse files Browse the repository at this point in the history
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 arsv/perl-cross#86 to solve
this properly, but for now we can just delete perltoc.pod after make has
finished and re-generate it.

[ YOCTO #13726 ]

Signed-off-by: Ross Burton <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
(cherry picked from commit 7e0f6c9)
Signed-off-by: Armin Kuster <[email protected]>
  • Loading branch information
rossburton authored and akuster committed Feb 23, 2020
1 parent 559fd36 commit 4ee9c60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meta/recipes-devtools/perl/perl_5.30.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ print(datetime.fromtimestamp($SOURCE_DATE_EPOCH, timezone.utc).strftime('%a %b %

do_compile() {
oe_runmake
# This isn't generated reliably so delete and re-generate.
# https://github.com/arsv/perl-cross/issues/86

if [ -e pod/perltoc.pod ]; then
bbnote Rebuilding perltoc.pod
rm -f pod/perltoc.pod
oe_runmake pod/perltoc.pod
fi
}

do_install() {
Expand Down

0 comments on commit 4ee9c60

Please sign in to comment.