Bug#953263: beep: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Mar 6 17:53:06 GMT 2020


Source: beep
Version: 1.4.3-2
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
beep could not be built reproducibly.

This is because of obscure differences in backslash escaping between
the Bash and Dash shells in GNU Makefiles in/around:

    set -e; IFS=""; while read line; do \
        echo "  \"$${line}\\\\n\"" >> $@; \
    done < $<

This appears to produce "\n" with /bin/dash as /bin/sh or "\\n" with /
bin/bash. A patch is attached that replaces the echo line with a call
to printf which, in my experience, is not as fickle as echo and seems
more suited to this interpolation/template-type string maniplation.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: beep.diff.txt
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20200306/8208dbdb/attachment.txt>


More information about the Reproducible-bugs mailing list