Source: simplepie
Version: 1.3.1+dfsg-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that simplepie could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, simplepie can be built reproducibly in our current reproducible
toolchain.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff -urNad
simplepie.orig/simplepie-1.3.1+dfsg/debian/patches/reproducible_build.patch
simplepie/simplepie-1.3.1+dfsg/debian/patches/reproducible_build.patch
--- simplepie.orig/simplepie-1.3.1+dfsg/debian/patches/reproducible_build.patch
1970-01-01 01:00:00.000000000 +0100
+++ simplepie/simplepie-1.3.1+dfsg/debian/patches/reproducible_build.patch
2015-02-12 23:36:57.665902167 +0000
@@ -0,0 +1,11 @@
+--- simplepie-1.3.1+dfsg.orig/build/compile.php
++++ simplepie-1.3.1+dfsg/build/compile.php
+@@ -67,7 +67,7 @@ $compiled = preg_replace("#\n\n\n+#", "\
+ // Hardcode the build
+ $compiled = str_replace(
+ "define('SIMPLEPIE_BUILD', gmdate('YmdHis',
SimplePie_Misc::get_build()))",
+- "define('SIMPLEPIE_BUILD', '" . gmdate('YmdHis', time()) . "')",
++ "define('SIMPLEPIE_BUILD', '" . gmdate('YmdHis',
strtotime(`dpkg-parsechangelog --show-field Date`)) . "')",
+ $compiled
+ );
+
diff -urNad simplepie.orig/simplepie-1.3.1+dfsg/debian/patches/series
simplepie/simplepie-1.3.1+dfsg/debian/patches/series
--- simplepie.orig/simplepie-1.3.1+dfsg/debian/patches/series 2015-02-12
23:35:00.124727344 +0000
+++ simplepie/simplepie-1.3.1+dfsg/debian/patches/series 2015-02-12
23:36:54.613767783 +0000
@@ -1,3 +1,4 @@
include_idn.patch
cache_directory.patch
fix_compile_file.patch
+reproducible_build.patch