summaryrefslogtreecommitdiff
path: root/debian/patches/reproducible_build.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/reproducible_build.diff')
-rw-r--r--debian/patches/reproducible_build.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/reproducible_build.diff b/debian/patches/reproducible_build.diff
new file mode 100644
index 0000000..2f690be
--- /dev/null
+++ b/debian/patches/reproducible_build.diff
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby@debian.org>
+Last-Update: 2019-06-20
+
+--- a/rollup.config.js
++++ b/rollup.config.js
+@@ -10,7 +10,7 @@
+ 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: []