Source: node-iscroll Version: 5.1.3+dfsg1-1 Severity: wishlist Tags: patch upstream User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that node-iscroll could not be built reproducibly. It embeds the current year into the copyright statement of javascript files. The attached patch uses the date from debian/copyright instead. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch new file mode 100644 index 0000000..0cd5a24 --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,16 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Enable reproducible building + The current year is embedded into the head of javascript files. + Use a fixed date instead (taken from debian/copyright). + +--- a/build.js ++++ b/build.js +@@ -5,7 +5,7 @@ + // var hint = require("jshint").JSHINT; + var uglify = require('uglify-js'); + +-var banner = '/*! iScroll v' + pkg.version + ' ~ (c) 2008-' + (new Date().getFullYear()) + ' Matteo Spinelli ~ http://cubiq.org/license */\n'; ++var banner = '/*! iScroll v' + pkg.version + ' ~ (c) 2008-2014 Matteo Spinelli ~ http://cubiq.org/license */\n'; + + var releases = { + lite: { diff --git a/debian/patches/series b/debian/patches/series index d0b0c5f..799d3ef 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 01_dont_use_jshint.patch +reproducible-build.patch
signature.asc
Description: PGP signature
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds