[Reproducible-builds] Bug#788747: 0xffff: please make the build reproducible

Dhole dhole at openmailbox.org
Sun Jun 14 18:10:18 UTC 2015


Source: 0xffff
Version: 0.6.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that 0xffff 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, 0xffff can be built reproducibly in our current
experimental framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds

-- 
Dhole
-------------- next part --------------
diff -Nru 0xffff-0.6.1/debian/changelog 0xffff-0.6.1/debian/changelog
--- 0xffff-0.6.1/debian/changelog	2015-05-27 17:45:22.000000000 +0200
+++ 0xffff-0.6.1/debian/changelog	2015-06-13 18:34:10.000000000 +0200
@@ -1,3 +1,10 @@
+0xffff (0.6.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+    - Remove timestamp from documentation to make package build reproducibly 
+
+ -- Dhole <dhole at openmailbox.org>  Sat, 13 Jun 2015 18:33:37 +0200
+
 0xffff (0.6.1-2) unstable; urgency=medium
 
   * Upload to unstable
diff -Nru 0xffff-0.6.1/debian/patches/remove_timestamp 0xffff-0.6.1/debian/patches/remove_timestamp
--- 0xffff-0.6.1/debian/patches/remove_timestamp	1970-01-01 01:00:00.000000000 +0100
+++ 0xffff-0.6.1/debian/patches/remove_timestamp	2015-06-13 18:35:34.000000000 +0200
@@ -0,0 +1,33 @@
+Description: remove timestamp
+ Remove __DATE__ macro to make package reproducibly
+ .
+ 0xffff (0.6.1-2.1) UNRELEASED; urgency=medium
+ .
+   * Non-maintainer upload.
+     - Remove timestamp from documentation to make package build reproducibly
+Author: Dhole <dhole at openmailbox.org>
+
+
+--- 0xffff-0.6.1.orig/src/mangen.c
++++ 0xffff-0.6.1/src/mangen.c
+@@ -34,7 +34,7 @@ int main() {
+ 	if ( ! pipe )
+ 		return 1;
+ 
+-	puts(".TH " NAME " 1 \"" __DATE__ "\" \"" NAME " " VERSION "\"");
++	puts(".TH " NAME " 1 \"" NAME " " VERSION "\"");
+ 	puts("");
+ 
+ 	puts(".SH NAME");
diff -Nru 0xffff-0.6.1/debian/patches/series 0xffff-0.6.1/debian/patches/series
--- 0xffff-0.6.1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ 0xffff-0.6.1/debian/patches/series	2015-06-13 18:34:53.000000000 +0200
@@ -0,0 +1 @@
+remove_timestamp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150614/47e4a1df/attachment.sig>


More information about the Reproducible-builds mailing list