On 2020-02-01 Vagrant Cascadian <[email protected]> wrote:
> Source: autogen
[...]
> The paths for various binaries (grep, bash, sh) differ on a merged /usr
> system, and autogen embeds those paths in several included
> files.

> The value of the SHELL environment variable also gets embedded into the
> build when set.

> The attached patch works around this in debian/rules by passing GREP,
> POSIX_SHELL and SHELL to configure to ensure reproducible builds
> regardless of environment or when build on a usrmerge system.
[...]

Hello Vagrant,

Thanks for the patch. Afaict it does not need bash but a posix shell:
---
config/libopts.m4
[while :
  do
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which bash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`which dash`
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=/usr/xpg4/bin/sh
      test -x "$POSIX_SHELL" && break
      POSIX_SHELL=`/bin/sh -c '
          exec 2>/dev/null
          if ! true ; then exit 1 ; fi
          echo /bin/sh'`
      test -x "$POSIX_SHELL" && br
---

I will therefore use /bin/sh instead of /bin/bash.

cu Andreas

Reply via email to