Bug#979134: apertium-anaphora: please make the build reproducible

Tino Didriksen tino at didriksen.cc
Sun Jan 3 11:01:44 GMT 2021


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 <lamby at debian.org> wrote:

> Source: apertium-anaphora
> Version: 1.0.1-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
> 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
>      `. `'`      lamby at debian.org / chris-lamb.co.uk
>        `---
> debian-science-maintainers mailing list
> debian-science-maintainers at alioth-lists.debian.net
>
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20210103/201a08ed/attachment.html>


More information about the debian-science-maintainers mailing list