diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-02-06 23:14:38 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-08 13:20:01 +0000 |
commit | 155d79d5265b124eef728c0c4bd15efd5601af21 (patch) | |
tree | 4b50d758f8e91ad44d6f6b9c7e65a1e695308018 /meta/recipes-devtools/perl | |
parent | 6ca91a91afd2abe8a3d9ec70a35fe55564460d7d (diff) | |
download | poky-155d79d5265b124eef728c0c4bd15efd5601af21.tar.gz |
perl: do not install files that contain build host specific data
This was breaking reproducibility, and the files aren't needed on
target.
[YOCTO #13772]
(From OE-Core rev: 2e0f30c4680221c693495e3a0327378d502a518b)
Signed-off-by: Alexander Kanavin <alex.kanavin@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.inc | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/perl_5.30.1.bb | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc index 7152057762..98e3361fcc 100644 --- a/meta/recipes-devtools/perl/perl-ptest.inc +++ b/meta/recipes-devtools/perl/perl-ptest.inc | |||
@@ -42,6 +42,9 @@ do_install_ptest () { | |||
42 | 42 | ||
43 | # Remove a useless timestamp... | 43 | # Remove a useless timestamp... |
44 | sed -i -e '/Autogenerated starting on/d' ${D}${PTEST_PATH}/lib/unicore/mktables.lst | 44 | sed -i -e '/Autogenerated starting on/d' ${D}${PTEST_PATH}/lib/unicore/mktables.lst |
45 | |||
46 | # Remove files with host-specific configuration for building native binaries | ||
47 | rm ${D}${PTEST_PATH}/Makefile.config ${D}${PTEST_PATH}/xconfig.h ${D}${PTEST_PATH}/xconfig.sh | ||
45 | } | 48 | } |
46 | 49 | ||
47 | python populate_packages_prepend() { | 50 | python populate_packages_prepend() { |
diff --git a/meta/recipes-devtools/perl/perl_5.30.1.bb b/meta/recipes-devtools/perl/perl_5.30.1.bb index 3634122686..dcdabb692d 100644 --- a/meta/recipes-devtools/perl/perl_5.30.1.bb +++ b/meta/recipes-devtools/perl/perl_5.30.1.bb | |||
@@ -144,6 +144,9 @@ do_install_append_class-target() { | |||
144 | # This is used to substitute target configuration when running native perl via perl-configpm-switch.patch | 144 | # This is used to substitute target configuration when running native perl via perl-configpm-switch.patch |
145 | ln -s Config_heavy.pl ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/Config_heavy-target.pl | 145 | ln -s Config_heavy.pl ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/Config_heavy-target.pl |
146 | 146 | ||
147 | # This contains host-specific information used for building miniperl (a helper executable built with host compiler) | ||
148 | # and therefore isn't reproducible. I believe the file isn't actually needed on target. | ||
149 | rm ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/xconfig.h | ||
147 | } | 150 | } |
148 | 151 | ||
149 | do_install_append_class-nativesdk() { | 152 | do_install_append_class-nativesdk() { |