[Reproducible-builds] Bug#788751: amsynth: please make the build reproducible
Dhole
dhole at openmailbox.org
Sun Jun 14 18:15:45 UTC 2015
Source: amsynth
Version: 1.5.1-1
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 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
-------------- next part --------------
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 <dhole at 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 <dhole at 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
-------------- 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/7e7e9a52/attachment.sig>
More information about the Reproducible-builds
mailing list