How does it vary? $BASH is set by AC_PATH_PROG(BASH, bash, no) at https://github.com/apertium/apertium-anaphora/blob/master/configure.ac#L39 which should never find /bin/sh
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. 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. -- Tino Didriksen On Sun, 3 Jan 2021 at 11:48, Chris Lamb <la...@debian.org> wrote: > Source: apertium-anaphora > Version: 1.0.1-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 > apertium-anaphora could not be built reproducibly. > > This is because it uses a BASH variable, which appears to vary > depending on whether /bin/sh points to /bin/bash or not. > > Patch attached that forces /bin/bash — this script needs Bash (it uses > '[[', for example). > > [0] https://reproducible-builds.org/ > > > Regards, > > -- > ,''`. > : :' : Chris Lamb > `. `'` la...@debian.org / chris-lamb.co.uk > `--- > debian-science-maintainers mailing list > debian-science-maintain...@alioth-lists.debian.net > > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers