Codebase list vmatch / 59e17bf
add reproducibility patch Sascha Steinbiss 4 years ago
3 changed file(s) with 33 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
11
22 * Sync packaged version with upstream tags.
33 * Hopefully fix building on various archs by removing -m32/-m64 handling.
4 * Add and extend reproducibility patch. Thanks to Chris Lamb.
45 * Bump Standards-Version.
56
67 -- Sascha Steinbiss <satta@debian.org> Tue, 21 Jan 2020 21:48:45 +0100
0 Description: Make the build reproducible
1 Author: Chris Lamb <lamby@debian.org>
2 Last-Update: 2020-01-20
3
4 --- a/src/bin/vmrelease.sh
5 +++ b/src/bin/vmrelease.sh
6 @@ -22,14 +22,21 @@
7 #define ${PROGRAM}RELEASE_H
8 ENDOFRELEASEPRE
9
10 -date +"#define ${PROGRAM}COMPILEDATE \"%Y-%m-%d %H:%M:%S\""
11 +date +"#define ${PROGRAM}COMPILEDATE \"%Y-%m-%d %H:%M:%S\"" --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}"
12
13 shift # get rid of first argument
14 -echo "#define ${PROGRAM}CFLAGS \"$*\""
15 +echo "#define ${PROGRAM}CFLAGS \"(reproducible build)\""
16 +
17 +if [ -e "${SOURCE_DATE_EPOCH}" ]
18 +then
19 + HOSTNAME="(reproducible build)"
20 +else
21 + HOSTNAME="`hostname`"
22 +fi
23
24 cat << ENDOFRELEASEPOST
25 #define ${PROGRAM}RELEASEDATE "2007-Aug-27"
26 #define ${PROGRAM}VERSION "`cat ${WORKVSTREESRC}/VERSION`"
27 -#define ${PROGRAM}COMPILEHOST "`hostname`"
28 +#define ${PROGRAM}COMPILEHOST "${HOSTNAME}"
29 #endif
30 ENDOFRELEASEPOST
22 common-distdir.patch
33 skip-doc-installation.patch
44 hardening.patch
5 reproducible-build.patch