[Pkg-electronics-devel] Bug#918533: gnucap-python: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jan 7 08:19:33 GMT 2019


Source: gnucap-python
Version: 0.0.2-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that gnucap-python could not be built reproducibly.

This is because it uses:

  $ echo "\n"

… or similar which is not the same across dash/bash etc, resulting in
a diff of:

│ │ │ │ ├── NEWS
│ │ │ │ │ @@ -1,3 +1 @@
│ │ │ │ │ -0.0.0
│ │ │ │ │ -=====
│ │ │ │ │ -* initial release
│ │ │ │ │ +0.0.0\n=====\n* initial release

A patch is attached, although given that this NEWS entry is pretty
meaningless, it is unclear whether the best course of action would
be to simply remove its creation…

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2019-01-07 08:17:54.232102376 +0100
--- b/debian/rules	2019-01-07 09:16:36.921058809 +0100
@@ -52,7 +52,7 @@
 	cd debian/tmp/usr/lib/*/gnucap[0-9]; ln -sf c_python${PYDEF}.so c_python.so
 	mv debian/tmp${PYDEF}/usr/share debian/tmp/usr
 
-	echo "0.0.0\n=====\n* initial release" > debian/tmp/usr/share/doc/gnucap-python/NEWS
+	printf "0.0.0\n=====\n* initial release\n" > debian/tmp/usr/share/doc/gnucap-python/NEWS
 
 override_dh_auto_configure: $(PYVERS:%=ac-python%)
 override_dh_auto_build: $(PYVERS:%=ab-python%)


More information about the Pkg-electronics-devel mailing list