Fix a variety of reproducibility issues

Include:
- Not regenerated man pages.
- Automake tarball with bad time (and completely useless).
- Ordering of files within tarballs.
- Resetting timestamp various fixes.
- Older tars not properly overwriting files leading to many issues.
- Weird lack of reproducibility in libtool scripts paths to tools.
- and more
This commit is contained in:
fosslinux 2022-02-10 21:55:06 +11:00
parent a343dcf6ed
commit 931490551a
15 changed files with 71 additions and 32 deletions

View file

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
rm doc/standards.info
rm doc/standards.info man/*.1
autoreconf-2.64 -f
# Install autoconf data files into versioned directory

View file

@ -20,4 +20,5 @@ src_compile() {
src_install() {
make install MAKEINFO=true DESTDIR="${DESTDIR}"
rm "${DESTDIR}${PREFIX}/share/doc/automake/amhello-1.0.tar.gz"
}

View file

@ -22,4 +22,5 @@ src_compile() {
src_install() {
make install MAKEINFO=true DESTDIR="${DESTDIR}"
rm "${DESTDIR}${PREFIX}/share/doc/automake/amhello-1.0.tar.gz"
}

View file

@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
checksum=708d854632c90e3706194a1a7555a3dc2fafb7ccae65872ad3420083f2781143
src_prepare() {
./bootstrap

View file

@ -4,7 +4,6 @@
# SPDX-License-Identifier: GPL-3.0-or-later
checksum=3960567fc3f358d85b58a6441d3fb97442821a6d51847df72109eec547617b0b
src_prepare() {
default

View file

@ -45,4 +45,7 @@ src_install() {
rm -rf "${PREFIX}"/lib/perl5/
default
# Remove messed up manpages
rm -r "${DESTDIR}/"*.0
}

View file

@ -16,6 +16,7 @@ set -e
export PATH=/usr/bin:/usr/sbin
export PREFIX=/usr
export SOURCES=/usr/src
export DESTDIR=/tmp/destdir
create_fhs() {
# Add the rest of the FHS that we will use and is not created pre-boot
@ -39,4 +40,4 @@ create_fhs
build bash-5.1
exec env -i PATH=${PATH} PREFIX=${PREFIX} SOURCES=${SOURCES} bash run2.sh
exec env -i PATH=${PATH} PREFIX=${PREFIX} SOURCES=${SOURCES} DESTDIR=${DESTDIR} bash run2.sh

View file

@ -56,6 +56,8 @@ build perl-5.32.1
build libarchive-3.5.2
false
build openssl-1.1.1l
build zlib-1.2.11
@ -85,7 +87,7 @@ build libatomic_ops-7.6.10
build gc-8.0.4
build guile-3.0.7
#build guile-3.0.7
if [ "$FORCE_TIMESTAMPS" = True ] ; then
echo 'Forcing all files timestamps to be 0 unix time.'