forked from pool/autogen
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:
|