Source: anope Version: 2.0.3-1 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Dear Maintainer, While working on the “reproducible builds” effort [1], we have noticed that 'anope' could not be built reproducibly. The attached patch removes build date from the version string. Once applied, anope can be built reproducibly in our current experimental framework. Regards, Alexis Bienvenüe. [1]: https://wiki.debian.org/ReproducibleBuilds
diff -Nru anope-2.0.3/debian/patches/series anope-2.0.3/debian/patches/series --- anope-2.0.3/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ anope-2.0.3/debian/patches/series 2016-04-05 22:53:41.000000000 +0200 @@ -0,0 +1 @@ +strip_build_date.patch diff -Nru anope-2.0.3/debian/patches/strip_build_date.patch anope-2.0.3/debian/patches/strip_build_date.patch --- anope-2.0.3/debian/patches/strip_build_date.patch 1970-01-01 01:00:00.000000000 +0100 +++ anope-2.0.3/debian/patches/strip_build_date.patch 2016-04-05 22:54:46.000000000 +0200 @@ -0,0 +1,26 @@ +Description: Strip build date + Strip build date from version string, to get reproducible build. +Author: Alexis Bienvenüe <p...@passoire.fr> + +--- anope-2.0.3.orig/include/anope.h ++++ anope-2.0.3/include/anope.h +@@ -336,8 +336,6 @@ namespace Anope + template<typename T> class multimap : public std::multimap<string, T, ci::less> { }; + template<typename T> class hash_map : public TR1NS::unordered_map<string, T, hash_ci, compare> { }; + +- static const char *const compiled = __TIME__ " " __DATE__; +- + /** The time Anope started. + */ + extern CoreExport time_t StartTime; +--- anope-2.0.3.orig/src/misc.cpp ++++ anope-2.0.3/src/misc.cpp +@@ -632,7 +632,7 @@ Anope::string Anope::VersionShort() + + Anope::string Anope::VersionBuildString() + { +- Anope::string s = "build #" + stringify(BUILD) + ", compiled " + Anope::compiled; ++ Anope::string s = "build #" + stringify(BUILD); + Anope::string flags; + + #ifdef DEBUG_BUILD
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds