Bug#881262: node-module-deps: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Nov 9 13:47:40 UTC 2017


Source: node-module-deps
Version: 4.1.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at 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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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


More information about the Reproducible-bugs mailing list