Source: guymager Version: 0.7.4-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 guymager could not be built reproducibly. A generated source file contains the build date and time. The attached patch fixes this by using the date from the latest changelog entry. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/adjust_compileinfo b/debian/patches/adjust_compileinfo index 2b48007..328d60f 100644 --- a/debian/patches/adjust_compileinfo +++ b/debian/patches/adjust_compileinfo @@ -1,10 +1,12 @@ --- a/compileinfo.sh +++ b/compileinfo.sh -@@ -2,7 +2,7 @@ +@@ -1,8 +1,8 @@ + #!/bin/bash echo '// Automatically generated file. See project file and compileinfo.sh for further information.' - date '+const char *pCompileInfoTimestamp = "%Y-%m-%d-%H.%M.%S";' +-date '+const char *pCompileInfoTimestamp = "%Y-%m-%d-%H.%M.%S";' -head -qn 1 changelog debian/changelog 2>/dev/null | awk '{ ++date --utc '+const char *pCompileInfoTimestamp = "%Y-%m-%d-%H.%M.%S";' -d "$(dpkg-parsechangelog -S Date)" +head -qn 1 debian/changelog 2>/dev/null | awk '{ Version = $2 gsub ("\\(", "", Version)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds