Source: gnucap-python
Version: 0.0.2-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-b...@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- 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%)

Reply via email to