Skip to content

Commit

Permalink
perl: do not install files that contain build host specific data
Browse files Browse the repository at this point in the history
Source: poky
MR: 00000
Type: Integration
Disposition: Merged from poky
ChangeID: 155d79d
Description:

This was breaking reproducibility, and the files aren't needed on
target.

[YOCTO #13772]

(From OE-Core rev: 2e0f30c4680221c693495e3a0327378d502a518b)

Signed-off-by: Alexander Kanavin <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Signed-off-by: Jeremy Puhlman <[email protected]>
  • Loading branch information
kanavin authored and jpuhlman committed Feb 8, 2020
1 parent f5872a5 commit edc80d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta/recipes-devtools/perl/perl-ptest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ do_install_ptest () {

# Remove a useless timestamp...
sed -i -e '/Autogenerated starting on/d' ${D}${PTEST_PATH}/lib/unicore/mktables.lst

# Remove files with host-specific configuration for building native binaries
rm ${D}${PTEST_PATH}/Makefile.config ${D}${PTEST_PATH}/xconfig.h ${D}${PTEST_PATH}/xconfig.sh
}

python populate_packages_prepend() {
Expand Down
3 changes: 3 additions & 0 deletions meta/recipes-devtools/perl/perl_5.30.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ do_install_append_class-target() {
# This is used to substitute target configuration when running native perl via perl-configpm-switch.patch
ln -s Config_heavy.pl ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/Config_heavy-target.pl

# This contains host-specific information used for building miniperl (a helper executable built with host compiler)
# and therefore isn't reproducible. I believe the file isn't actually needed on target.
rm ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/xconfig.h
}

do_install_append_class-nativesdk() {
Expand Down

0 comments on commit edc80d3

Please sign in to comment.