forked from pool/autogen
- Add autogen-reproducible-tar.patch to make .tar.gz build reproducible ( https://sourceforge.net/p/autogen/bugs/182/ ) - Add autogen-constant-timeout.patch to make build reproducible (boo#1041534) - Set MAN_PAGE_DATE to not include build date into man pages (boo#1047218) OBS-URL: https://build.opensuse.org/request/show/585128 OBS-URL: https://build.opensuse.org/package/show/Base:System/autogen?expand=0&rev=56
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
|
Date: 2018-03-09
|
|
|
|
https://sourceforge.net/p/autogen/bugs/182/
|
|
|
|
libopts-41.1.16.tar.gz contained timestamps from build
|
|
and indeterminism from filesystem readdir order.
|
|
|
|
See https://reproducible-builds.org/ for why this matters.
|
|
|
|
Index: autogen-5.18.12/pkg/libopts/mklibsrc.sh
|
|
===================================================================
|
|
--- autogen-5.18.12.orig/pkg/libopts/mklibsrc.sh
|
|
+++ autogen-5.18.12/pkg/libopts/mklibsrc.sh
|
|
@@ -107,13 +107,15 @@ EOMakefile
|
|
| ${CLexe} -I4 --spread=1 --line-sep=" \\"
|
|
} > Makefile.am
|
|
|
|
-gz='gzip --best'
|
|
+gz='gzip --best -n'
|
|
sfx=tar.gz
|
|
|
|
cd ..
|
|
echo ! cd `pwd`
|
|
echo ! tar cvf ${tag}.${sfx} ${tag}
|
|
-tar cvf - ${tag} | $gz > ${top_builddir}/autoopts/${tag}.${sfx}
|
|
+rbopts=""
|
|
+[ -z "$SOURCE_DATE_EPOCH" ] || ! tar --help|grep -q sort= || rbopts="--sort=name --format=gnu --clamp-mtime --mtime @$SOURCE_DATE_EPOCH"
|
|
+tar cvf - $rbopts ${tag} | $gz > ${top_builddir}/autoopts/${tag}.${sfx}
|
|
rm -rf ${tag}
|
|
|
|
## Local Variables:
|