Source: node-module-deps Version: 4.1.1-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that node-module-deps could not be built reproducibly. This is because output.json includes the absolute build path. Patch attached that replaces this with the examples directory. We could also do this via a patch on the source file itself (ie. removing __dirname) but this way keeps all patching of these files together at the very least. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/rules 2017-11-09 13:02:17.499619258 +0000 --- b/debian/rules 2017-11-09 13:44:02.853843244 +0000 @@ -32,6 +32,8 @@ # patch example find $(CURDIR)/debian/node-module-deps/usr/share/doc/node-module-deps/examples/ -name '*.js' -exec \ sed -i "s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('module-deps'),g" {} \; + sed -i -e "s,$(CURDIR)/example/,/usr/share/doc/node-module-deps/examples/,g" \ + $(CURDIR)/debian/node-module-deps/usr/share/doc/node-module-deps/examples/output.json else override_dh_installexamples: endif
-- Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel