Source: alpine Version: 2.20+dfsg1-1 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi, While working on the "reproducible builds" effort [1], we have noticed that alpine could not be built reproducibly. The attached patch removes timestamps from the build system. Once applied, alpine can be built reproducibly in our reproducible toolchain. [1]: https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff --no-dereference -urNad alpine.orig/alpine-2.20+dfsg1/debian/patches/90_reproducible_build.patch alpine/alpine-2.20+dfsg1/debian/patches/90_reproducible_build.patch --- alpine.orig/alpine-2.20+dfsg1/debian/patches/90_reproducible_build.patch 1970-01-01 01:00:00.000000000 +0100 +++ alpine/alpine-2.20+dfsg1/debian/patches/90_reproducible_build.patch 2015-07-09 16:12:22.460926998 +0100 @@ -0,0 +1,10 @@ +--- alpine-2.20+dfsg1.orig/alpine/Makefile.am ++++ alpine-2.20+dfsg1/alpine/Makefile.am +@@ -48,5 +48,5 @@ AM_LDFLAGS = `cat @top_srcdir@/c-client/ + CLEANFILES = date.c + + date.c: +- echo "char datestamp[]="\"`date`\"";" > date.c +- echo "char hoststamp[]="\"`hostname`\"";" >> date.c ++ echo "char datestamp[]="\"`dpkg-parsechangelog -l../debian/changelog -SDate`\"";" > date.c ++ echo "char hoststamp[]="\"debian\"";" >> date.c diff --no-dereference -urNad alpine.orig/alpine-2.20+dfsg1/debian/patches/series alpine/alpine-2.20+dfsg1/debian/patches/series --- alpine.orig/alpine-2.20+dfsg1/debian/patches/series 2015-07-09 16:09:24.238634581 +0100 +++ alpine/alpine-2.20+dfsg1/debian/patches/series 2015-07-09 16:12:19.012746733 +0100 @@ -4,3 +4,4 @@ 40_fix_filter_hardcoded_paths.patch 40_fix_browser_hardcoded_paths.patch 80_remove_phone_home.patch +90_reproducible_build.patch
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds