Source: aolserver4-nssqlite3 Version: 0.9-2 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps
Hi! While working on the “reproducible builds” effort [1], we have noticed that aolserver4-nssqlite3 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-nssqlite3 can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds -- Dhole
diff -u aolserver4-nssqlite3-0.9/debian/changelog aolserver4-nssqlite3-0.9/debian/changelog --- aolserver4-nssqlite3-0.9/debian/changelog +++ aolserver4-nssqlite3-0.9/debian/changelog @@ -1,3 +1,10 @@ +aolserver4-nssqlite3 (0.9-2.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 14:35:39 +0200 + aolserver4-nssqlite3 (0.9-2) unstable; urgency=low [ Stefan Sobernig ] only in patch2: unchanged: --- aolserver4-nssqlite3-0.9.orig/nssqlite3.c +++ aolserver4-nssqlite3-0.9/nssqlite3.c @@ -28,13 +28,13 @@ */ -/* +/* * nssqlite3.c -- * * This file implements the SQLite 3 database driver. */ -static const char *RCSID = "@(#) $Header: /cvsroot/aolserver/nssqlite3/nssqlite3.c,v 1.1.1.1 2005/03/07 04:36:22 dossy Exp $, compiled: " __DATE__ " " __TIME__; +static const char *RCSID = "@(#) $Header: /cvsroot/aolserver/nssqlite3/nssqlite3.c,v 1.1.1.1 2005/03/07 04:36:22 dossy Exp $"; #include "ns.h" #if NS_MAJOR_VERSION >= 4 @@ -130,8 +130,8 @@ driver); return NS_ERROR; } - Ns_Log(Notice, "nssqlite3: Loaded %s, version %s built on %s at %s.", - driver, DRIVER_VERSION, __DATE__, __TIME__); + Ns_Log(Notice, "nssqlite3: Loaded %s, version %s.", + driver, DRIVER_VERSION); return NS_OK; }
signature.asc
Description: OpenPGP digital signature