Installed portage prefix on Solaris, sys-devel/autoconf-2.68 references /bin/sh: $EPREFIX/usr/bin/autoconf: #!/bin/sh The default shell in Solaris is csh, and it fails executing that: $ autoconf -v autoconf: bad substitution changing '#!/bin/sh' with '#!/bin/env' bash solves the problem Reproducible: Always Steps to Reproduce: 1. Install portage prefix on Solaris 2. Install sys-devel/autoconf-2.68 3. Execute autoconf Actual Results: $ autoconf /eprefix/usr/bin/autoconf: bad substitution Expected Results: $ autoconf autoconf-2.68: error: no input file changing '#!/bin/sh' with '#!/bin/env' bash solves the problem
Confirmed. I see the same thing on sparc-solaris. I'm confused why this can happen.
A fix is in portage 2.2.01.19062