[Debian-med-packaging] Bug#852518: python-mne: bootstrap.min.js corrupted when built with dash as /bin/sh

Chris Lamb lamby at debian.org
Wed Jan 25 02:21:14 UTC 2017


Source: python-mne
Version: 0.13.1+dfsg-1
Severity: serious
Tags: patch
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that python-mne generates an invalid bootstrap.min.js when built
with dash as /bin/sh.

With dash you get an extra "-e". Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/debian/rules b/debian/rules
index fa02162..4e5ac91 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,7 +19,7 @@ override_dh_clean:
 override_dh_auto_build:
 	dh_auto_build
 	yui-compressor debian/JS/bootstrap/bootstrap.js > $(CURDIR)/mne/html/bootstrap.min.js
-	echo -e "\n" >> $(CURDIR)/mne/html/bootstrap.min.js
+	printf "\n\n" >> $(CURDIR)/mne/html/bootstrap.min.js
 
 override_dh_auto_test:
 	mkdir -p build


More information about the Debian-med-packaging mailing list