Source: node-ws
Version: 7.2.1-2
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-ws could not be built reproducibly.

This is because it ships a bunch of build artifacts under ".deps"
directories under /usr/lib as well as some Makefile scripts, both of
which contain the absolute build dir.

A patch attached that simply ensures they do not end up in the binary
package, but this may not be the right or cleanest solution.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2020-01-22 10:34:38.144226879 +0000
--- b/debian/rules      2020-01-22 10:56:35.469495605 +0000
@@ -18,6 +18,8 @@
 
 override_dh_install:
        dh_install
+       find $(CURDIR)/debian/node-ws/usr/lib -name .deps -type d -print0 | 
xargs -0r rm -rf
+       find $(CURDIR)/debian/node-ws/usr/lib -name Makefile -type f -delete
        find $(CURDIR)/debian/node-ws/usr/lib -name *.node -exec chmod 644 '{}' 
\;
 
 debian/wscat.1:

Reply via email to