Source: perfect-scrollbar Version: 1.5.2+ds-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 perfect-scrollbar could not be built reproducibly. This is because a copyright notice embeds the current build year. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1969-12-31 16:00:00.000000000 -0800 --- b/debian/patches/reproducible-build.patch 2021-11-28 11:35:57.366240536 -0800 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2021-11-28 + +--- perfect-scrollbar-1.5.2+ds.orig/rollup.config.js ++++ perfect-scrollbar-1.5.2+ds/rollup.config.js +@@ -7,7 +7,7 @@ const version = require('./package.json' + const banner = + `/*! + * perfect-scrollbar v${version} +- * Copyright ${new Date().getFullYear()} Hyunje Jun, MDBootstrap and Contributors ++ * Copyright ${(new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime())).getFullYear()} Hyunje Jun, MDBootstrap and Contributors + * Licensed under MIT + */ + `; --- a/debian/patches/series 2021-11-28 11:34:09.082066502 -0800 --- b/debian/patches/series 2021-11-28 11:35:56.362238958 -0800 @@ -1 +1,2 @@ do-not-use-rollup-minify.patch +reproducible-build.patch