Source: node-chart.js Version: 2.9.3+dfsg-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0] we noticed that node-chart.js could not be built reproducibly. This is because it was embedding another build date in a "banner" comment. Patch attached that matches, for example, #930911 and friends. [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 2019-12-07 09:50:17.251183113 +0000 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2019-12-07 + +--- node-chart.js-2.9.3+dfsg.orig/rollup.config.js ++++ node-chart.js-2.9.3+dfsg/rollup.config.js +@@ -11,7 +11,7 @@ const input = 'src/index.js'; + const banner = `/*! + * Chart.js v${pkg.version} + * ${pkg.homepage} +- * (c) ${new Date().getFullYear()} Chart.js Contributors ++ * (c) ${(new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime())).getFullYear()} Chart.js Contributors + * Released under the MIT License + */`; + --- a/debian/patches/series 2019-12-07 09:24:09.053762957 +0000 --- b/debian/patches/series 2019-12-07 09:50:14.286987118 +0000 @@ -1,3 +1,4 @@ workaroud-css-generator-error.patch #fix-rollup-resolve-paths.patch fix-rollup-resolve-paths.patch +reproducible-build.patch
-- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel