Source: vue-router.js
Version: 3.0.2+ds-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that vue-router.js could not be built reproducibly.

This is it due to embedded the current build year in the .js file
headers.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2019-03-12 08:47:04.870110457 
+0000
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2019-03-12
+
+--- vue-router.js-3.0.2+ds.orig/build/configs.js
++++ vue-router.js-3.0.2+ds/build/configs.js
+@@ -5,10 +5,11 @@ const cjs = require('rollup-plugin-commo
+ const node = require('rollup-plugin-node-resolve')
+ const replace = require('rollup-plugin-replace')
+ const version = process.env.VERSION || require('../package.json').version
++const now = new Date(process.env.SOURCE_DATE_EPOCH ? 
(process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime());
+ const banner =
+ `/*!
+   * vue-router v${version}
+-  * (c) ${new Date().getFullYear()} Evan You
++  * (c) ${now.getFullYear()} Evan You
+   * @license MIT
+   */`
+ 
--- a/debian/patches/series     1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series     2019-03-12 08:47:03.742100206 +0000
@@ -0,0 +1 @@
+reproducible-build.patch
-- 
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to