Source: antpm
Version: 1.16-8
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 antpm 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, antpm can be built reproducibly in our current
experimental framework.

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

-- 
Dhole
diff -Nru antpm-1.16/debian/changelog antpm-1.16/debian/changelog
--- antpm-1.16/debian/changelog 2014-08-17 08:38:28.000000000 +0200
+++ antpm-1.16/debian/changelog 2015-06-14 13:25:38.000000000 +0200
@@ -1,3 +1,10 @@
+antpm (1.16-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Remove timestamp macro from source code to make package build reproducibly 
+
+ -- Dhole <dh...@openmailbox.org>  Sun, 14 Jun 2015 13:19:46 +0200
+
 antpm (1.16-8) unstable; urgency=low
 
   * Team upload
diff -Nru antpm-1.16/debian/patches/remove_timestamp 
antpm-1.16/debian/patches/remove_timestamp
--- antpm-1.16/debian/patches/remove_timestamp  1970-01-01 01:00:00.000000000 
+0100
+++ antpm-1.16/debian/patches/remove_timestamp  2015-06-14 13:26:42.000000000 
+0200
@@ -0,0 +1,31 @@
+Description: Remove timestamp
+ .
+ antpm (1.16-8.1) UNRELEASED; urgency=medium
+ .
+   * Non-maintainer upload.
+   * Remove timestamp macro from source code to make package build reproducibly
+Author: Dhole <dh...@openmailbox.org>
+
+---
+
+--- antpm-1.16.orig/src/common.cpp
++++ antpm-1.16/src/common.cpp
+@@ -296,8 +296,7 @@ getVersionString()
+ {
+   return std::string("") + APP_NAME
+       + " v" + std::string(BOOST_STRINGIZE(ANTPM_VERSION))
+-      + " built " __DATE__ " " + __TIME__ + "" //+#ANTPM_SERIAL_IMPL
+-      + " under "
++      + " built under "
+ #ifdef __linux__
+ # ifdef __LP64__
+   "linux64"
diff -Nru antpm-1.16/debian/patches/series antpm-1.16/debian/patches/series
--- antpm-1.16/debian/patches/series    2014-08-17 08:38:28.000000000 +0200
+++ antpm-1.16/debian/patches/series    2015-06-14 13:25:55.000000000 +0200
@@ -5,3 +5,4 @@
 02-try-fixing-FTBFS-under-hurd-i386-kfreebsd-amd64-kfre
 03-gant-try-fixing-FTBFS-under-hurd-i386
 link-boost-atomic2.patch
+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