[Reproducible-builds] Bug#788753: aolserver4-nsmysql: please make the build reproducible

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


Source: aolserver4-nsmysql
Version: 0.6-9
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 aolserver4-nsmysql 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, aolserver4-nsmysql can be built reproducibly in our current
experimental framework.

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

-- 
Dhole
-------------- next part --------------
diff -u aolserver4-nsmysql-0.6/debian/changelog aolserver4-nsmysql-0.6/debian/changelog
--- aolserver4-nsmysql-0.6/debian/changelog
+++ aolserver4-nsmysql-0.6/debian/changelog
@@ -1,3 +1,11 @@
+aolserver4-nsmysql (0.6-9.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Removed timestamp macro from source code to make package build
+    reproducibly 
+
+ -- Dhole <dhole at openmailbox.org>  Sat, 13 Jun 2015 22:45:06 +0200
+
 aolserver4-nsmysql (0.6-9) unstable; urgency=low
 
   [ Stefan Sobernig ]
only in patch2:
unchanged:
--- aolserver4-nsmysql-0.6.orig/mysql.c
+++ aolserver4-nsmysql-0.6/mysql.c
@@ -87,8 +87,8 @@
         return NS_ERROR;
     }
 
-    Ns_Log (Notice, "Ns_MySQL_DriverInit(%s):  Loaded %s, built on %s at %s.",
-    	hDriver, mysql_driver_version, __DATE__, __TIME__);
+    Ns_Log (Notice, "Ns_MySQL_DriverInit(%s):  Loaded %s.",
+    	hDriver, mysql_driver_version);
 
     return NS_OK;
 }
-------------- 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/26851fff/attachment.sig>


More information about the Reproducible-builds mailing list