Source: snake4 Version: 1.0.14-1 Severity: wishlist Tags: patch upstream User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps username X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that snake4 could not be built reproducibly. It embeds the build date and user into the binary. The attached patch strips this to enable reproducible building. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch new file mode 100644 index 0000000..b798b5d --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,26 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Strip build date/user to enable reproducible building + +--- a/Makefile ++++ b/Makefile +@@ -57,8 +57,6 @@ + SCOREBASEFILE = $(PROG).score + SCOREFILE = $(INSTLIBDIR)/$(SCOREBASEFILE) + DEFINES = -DVERSION=\"$(VERSION)\" \ +- "-DCOMPILED_DATE=\"$(COMPILED_DATE)\"" \ +- "-DCOMPILED_BY=\"$(COMPILED_BY)\"" \ + -DSCOREFILE=\"$(SCOREFILE)\" \ + -DXK_MISCELLANY -DXK_LATIN1 + +--- a/snake4.c ++++ b/snake4.c +@@ -31,8 +31,7 @@ + version(void) + { + printf( +- "snake4 " VERSION ", by Sverre H. Huseby " +- "(compiled " COMPILED_DATE " by " COMPILED_BY ")\n" ++ "snake4 " VERSION ", by Sverre H. Huseby\n" + ); + exit(0); + } diff --git a/debian/patches/series b/debian/patches/series index 9641816..0c6d4f8 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ useless-linkage.patch hardening.patch standard-install-directories.patch +reproducible-build.patch
signature.asc
Description: Digital signature
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds