Improve reproduciblity of some packages

I figure these out when trying to run the build in docker, which provides an environment slightly different to the one used when building in qemu/chroot/bwrap with rootfs.py
This commit is contained in:
Eduardo Sánchez Muñoz 2022-12-01 23:14:38 +01:00
parent 9634b6d059
commit 8adab8b568
4 changed files with 23 additions and 3 deletions

View file

@ -50,4 +50,8 @@ src_install() {
# Remove messed up manpages
rm "${DESTDIR}/"*.0
rm "${DESTDIR}${PREFIX}/lib/perl5/5.32.1/pod/perldebguts.pod"
# Improve reproducibility. hostcat might be empty or set to "cat /etc/hosts"
# depending on whether /etc/hosts was available during the build.
sed -i "s_^hostcat='.*'\$_hostcat=''_g" "${DESTDIR}${PREFIX}/lib/perl5/5.32.1/i386-linux/Config_heavy.pl"
}