On Mon, 12 Feb 2018 17:38:33 -0600
"A. Wilcox" <awilfox(a)adelielinux.org> wrote:
Let me start off by saying abuild, as written upstream, is not
I stand corrected; my only experience with abuild at this point is what
I've picked up here and there by orbiting Adelie.
Upstream ships abuild with #!/bin/ash. They require BusyBox shell.
managed to make it work on bash *and* get the patches upstreamed:
That said, I do not think Alpine's developers had any intention of
making a POSIX sh script when they wrote abuild.
The line that failed with "bad substitution" is:
if [ ! -f
This is a blatant bashism, but it's supported in BusyBox (and zsh), so
there is no harm in using it for them.
Additionally, since they require BusyBox, they specifically told me
two years ago that making it #!/bin/sh on Adélie was unsupported and
that I can keep the pieces when it breaks.
Then it sounds very much like if you've made it work with bash
reliably, and it uses bashisms that just happen to be supported by
their implementation of ash, that the sensible choice is indeed to
make abuild depend on bash specifically.
Let me remind everyone that Alpine is *upstream*, not *downstream*.
They enforce the rules, and we play by them. We aren't the ones who
tell them to use POSIX, they're the ones that tell us to use a
If they're telling us to use a bash-like, then we should clearly just
comply and make abuild depend on bash, then :)