Bug#776299: twitter-bootstrap: please make the build reproducible
Source: twitter-bootstrap
Version: 2.0.2+dfsg-5
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that twitter-bootstrap could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, twitter-bootstrap can be built reproducibly in our current
experimental framework.
An alternative solution might be to simply remove the bootstrap.zip from
the final .deb - it does not (or should not!) be used from inside the
-doc package anyway.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
diff --git a/debian/patches/03-reproducible-build.diff b/debian/patches/03-reproducible-build.diff
new file mode 100644
index 0000000..a9cc532
--- /dev/null
+++ b/debian/patches/03-reproducible-build.diff
@@ -0,0 +1,11 @@
+--- a/Makefile.orig 2015-01-26 12:21:27.356099504 +0000
++++ b/Makefile 2015-01-26 12:21:38.724604940 +0000
+@@ -11,6 +11,8 @@
+
+ docs: bootstrap
+ rm -f docs/assets/bootstrap.zip
++ find bootstrap -depth -newermt '$(BUILD_DATE)' -print0 | \
++ xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
+ zip -r docs/assets/bootstrap.zip bootstrap
+ lessc ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
+ lessc ${BOOTSTRAP_RESPONSIVE_LESS} > ${BOOTSTRAP_RESPONSIVE}
diff --git a/debian/patches/series b/debian/patches/series
index d94f92b..6ef2c0e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
use-nodejs-command.patch
build-with-node-1.4.2.patch
drop-nc-from-uglifyjs.patch
+03-reproducible-build.diff
Reply to: