Source: abcm2ps Version: 7.8.9-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps
Hi! While working on the “reproducible builds” effort [1], we have noticed that abcm2ps could not be built reproducibly. The attached patch removes extra timestamps from the build system. Specifically, the patch avoids the the usage of the __DATE__ and __TIME__ C macro which embed timestamps during the compilation and make the package build unreproducibly. Once applied, abcm2ps can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds -- Dhole
diff -Nru abcm2ps-7.8.9/debian/changelog abcm2ps-7.8.9/debian/changelog --- abcm2ps-7.8.9/debian/changelog 2014-10-18 23:38:31.000000000 +0200 +++ abcm2ps-7.8.9/debian/changelog 2015-06-13 18:51:51.000000000 +0200 @@ -1,3 +1,10 @@ +abcm2ps (7.8.9-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Remove compilation date to make package build reproducibly + + -- Dhole <dh...@openmailbox.org> Sat, 13 Jun 2015 18:51:11 +0200 + abcm2ps (7.8.9-1) unstable; urgency=low * New upstream release (closes: #742296). diff -Nru abcm2ps-7.8.9/debian/patches/remove_compile_time abcm2ps-7.8.9/debian/patches/remove_compile_time --- abcm2ps-7.8.9/debian/patches/remove_compile_time 1970-01-01 01:00:00.000000000 +0100 +++ abcm2ps-7.8.9/debian/patches/remove_compile_time 2015-06-13 18:52:40.000000000 +0200 @@ -0,0 +1,22 @@ +Description: Remove compile time + . + abcm2ps (7.8.9-1.1) UNRELEASED; urgency=medium + . + * Non-maintainer upload. + * Remove compilation date to make package build reproducibly +Author: Dhole <dh...@openmailbox.org> + +--- + +--- abcm2ps-7.8.9.orig/abc2ps.c ++++ abcm2ps-7.8.9/abc2ps.c +@@ -321,8 +321,7 @@ static void display_version(int full) + fputs("abcm2ps-" VERSION " (" VDATE ")\n", stderr); + if (!full) + return; +- fputs("Compiled: " __DATE__ "\n" +- "Options:" ++ fputs("Options:" + #ifdef A4_FORMAT + " A4_FORMAT" + #endif diff -Nru abcm2ps-7.8.9/debian/patches/series abcm2ps-7.8.9/debian/patches/series --- abcm2ps-7.8.9/debian/patches/series 2014-10-18 18:38:51.000000000 +0200 +++ abcm2ps-7.8.9/debian/patches/series 2015-06-13 18:52:22.000000000 +0200 @@ -2,3 +2,4 @@ makefile-add-destdir makefile-install-ignore-docs non-resettable-pagenumber +remove_compile_time
signature.asc
Description: OpenPGP digital signature