[Pkg-javascript-devel] Bug#834988: twitter-bootstrap3: please make the build reproducible

Chris Lamb lamby at debian.org
Sun Aug 21 10:56:56 UTC 2016


Source: twitter-bootstrap3
Version: 3.3.6+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], I noticed
that twitter-bootstrap3 could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch	2016-08-21 11:54:36.103131504 +0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-21
+
+--- twitter-bootstrap3-3.3.6+dfsg.orig/docs/assets/js/src/customizer.js
++++ twitter-bootstrap3-3.3.6+dfsg/docs/assets/js/src/customizer.js
+@@ -14,7 +14,7 @@ window.onload = function () { // wait fo
+ 
+   var cw = '/*!\n' +
+            ' * Bootstrap v3.3.5 (http://getbootstrap.com)\n' +
+-           ' * Copyright 2011-' + new Date().getFullYear() + ' Twitter, Inc.\n' +
++           ' * Copyright 2011-' + (new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime())).getFullYear() + ' Twitter, Inc.\n' +
+            ' * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n' +
+            ' */\n\n'
+ 
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2016-08-21 11:54:46.991242483 +0100
@@ -0,0 +1 @@
+reproducible-build.patch


More information about the Pkg-javascript-devel mailing list