Source: 0xffff
Version: 0.6.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds@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
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 <dh...@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 <dh...@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

Attachment: 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

Reply via email to