Source: amsynth
Version: 1.5.1-1
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 amsynth 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 unreproducible.
Once applied, amsynth can be built reproducibly in our current
experimental framework.

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

-- 
Dhole
diff -Nru amsynth-1.5.1/debian/changelog amsynth-1.5.1/debian/changelog
--- amsynth-1.5.1/debian/changelog      2015-05-10 15:09:49.000000000 +0200
+++ amsynth-1.5.1/debian/changelog      2015-06-13 19:30:55.000000000 +0200
@@ -1,3 +1,10 @@
+amsynth (1.5.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Remove timestamp from help to make package build reproducibly
+
+ -- Dhole <dh...@openmailbox.org>  Sat, 13 Jun 2015 19:29:52 +0200
+
 amsynth (1.5.1-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru amsynth-1.5.1/debian/patches/remove_timestamp 
amsynth-1.5.1/debian/patches/remove_timestamp
--- amsynth-1.5.1/debian/patches/remove_timestamp       1970-01-01 
01:00:00.000000000 +0100
+++ amsynth-1.5.1/debian/patches/remove_timestamp       2015-06-13 
19:31:20.000000000 +0200
@@ -0,0 +1,21 @@
+Description: Remove timestamp
+ .
+ amsynth (1.5.1-1.1) UNRELEASED; urgency=medium
+ .
+   * Non-maintainer upload.
+   * Remove timestamp from help to make package build reproducibly
+Author: Dhole <dh...@openmailbox.org>
+
+---
+
+--- amsynth-1.5.1.orig/src/main.cc
++++ amsynth-1.5.1/src/main.cc
+@@ -324,7 +324,7 @@ int main( int argc, char *argv[] )
+       while ((opt = getopt_long(argc, argv, "vhstdzxm:c:a:r:p:b:U:P:n:", 
longopts, &longindex)) != -1) {
+               switch (opt) {
+                       case 'v':
+-                              cout << PACKAGE_STRING << " -- compiled " << 
__DATE__ << " " << __TIME__ << endl;
++                              cout << PACKAGE_STRING << endl;
+                               return 0;
+                       case 'h':
+                               cout << help_text;
diff -Nru amsynth-1.5.1/debian/patches/series 
amsynth-1.5.1/debian/patches/series
--- amsynth-1.5.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ amsynth-1.5.1/debian/patches/series 2015-06-13 19:31:05.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