Package list node-d3-shape / fresh-snapshots/main debian / patches / reproducible_build.diff
fresh-snapshots/main

Tree @fresh-snapshots/main (Download .tar.gz)

reproducible_build.diff @fresh-snapshots/main

e5260c1
 
 
 
781bd1f
 
 
 
 
e5260c1
 
 
 
 
 
 
 
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2019-06-20

Index: node-d3-shape/rollup.config.js
===================================================================
--- node-d3-shape.orig/rollup.config.js
+++ node-d3-shape/rollup.config.js
@@ -9,7 +9,7 @@ const config = {
     format: "umd",
     indent: false,
     extend: true,
-    banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`,
+    banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime())).getFullYear()} ${meta.author.name}`,
     globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"})))
   },
   plugins: []