Source: twitter-bootstrap3
Version: 3.3.6+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bui...@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- 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 <la...@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
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to