<div dir="ltr"><div>How does it vary? $BASH is set by AC_PATH_PROG(BASH, bash, no) at <a href="https://github.com/apertium/apertium-anaphora/blob/master/configure.ac#L39">https://github.com/apertium/apertium-anaphora/blob/master/configure.ac#L39</a> which should never find /bin/sh<br></div><div><br></div><div>I agree it always needs Bash, but I don't see how it can find anything but /bin/bash or /usr/bin/bash or whatever bash is in $PATH. The idea, as horrible as it is, is to respect and bake-in any Bash found from a user's home folder install.</div><div><br></div><div>What I did for apertium is to change it to /usr/bin/env bash (which a helper script turns into /bin/bash for Debian packaging), which I can also do for apertium-anaphora and other Apertium tools.</div><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr" style="font-size:12.8px">-- <span style="font-size:12.8px">Tino Didriksen</span></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 3 Jan 2021 at 11:48, Chris Lamb <<a href="mailto:lamby@debian.org">lamby@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Source: apertium-anaphora<br>
Version: 1.0.1-1<br>
Severity: wishlist<br>
Tags: patch<br>
User: <a href="mailto:reproducible-builds@lists.alioth.debian.org" target="_blank">reproducible-builds@lists.alioth.debian.org</a><br>
Usertags: environment<br>
X-Debbugs-Cc: <a href="mailto:reproducible-bugs@lists.alioth.debian.org" target="_blank">reproducible-bugs@lists.alioth.debian.org</a><br>
<br>
Hi,<br>
<br>
Whilst working on the Reproducible Builds effort [0] we noticed that<br>
apertium-anaphora could not be built reproducibly.<br>
<br>
This is because it uses a BASH variable, which appears to vary<br>
depending on whether /bin/sh points to /bin/bash or not.<br>
<br>
Patch attached that forces /bin/bash — this script needs Bash (it uses<br>
'[[', for example).<br>
<br>
 [0] <a href="https://reproducible-builds.org/" rel="noreferrer" target="_blank">https://reproducible-builds.org/</a><br>
<br>
<br>
Regards,<br>
<br>
--<br>
      ,''`.<br>
     : :'  :     Chris Lamb<br>
     `. `'`      <a href="mailto:lamby@debian.org" target="_blank">lamby@debian.org</a> / <a href="http://chris-lamb.co.uk" rel="noreferrer" target="_blank">chris-lamb.co.uk</a><br>
       `--- <br>
debian-science-maintainers mailing list<br>
<a href="mailto:debian-science-maintainers@alioth-lists.debian.net" target="_blank">debian-science-maintainers@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers</a></blockquote></div></div>