acl fails to build with /bin/sh set to a different POSIX shell. Reproducible: Always Steps to Reproduce: 1. set /bin/sh to point to /bin/dash 2. emerge =sys-apps/acl-2.2.51 Actual Results: ... gmake[2]: Entering directory `/var/tmp/portage/sys-apps/acl-2.2.51/work/acl-2.2.51/libmisc' /bin/sh ../libtool --mode=compile x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb -O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.51\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.51\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.51\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c quote.c eval: 1: base_compile+= x86_64-pc-linux-gnu-gcc: not found eval: 1: base_compile+= -O2: not found eval: 1: base_compile+= -march=native: not found ... Expected Results: /bin/sh should not be used on bash scripts.
Created attachment 272427 [details, diff] Fix for acl-2.2.51.ebuild This patch replaces SHELL=/bin/sh with SHELL=/bin/bash in include/buildmacros, which causes the build to complete successfully.
Created attachment 272429 [details] Patched ebuild (for convenience)
Confirmed this and http://bugs.gentoo.org/show_bug.cgi?id=366671 on Gentoo AMD64 , patch works, too. ¡Thank you for noticing!
Another solution is to pass SHELL=/bin/bash to emake.
Created attachment 273315 [details, diff] Fix for acl-2.2.51.ebuild, by passing SHELL to emake (In reply to comment #4) > Another solution is to pass SHELL=/bin/bash to emake. Definitely a much better solution :)
Comment on attachment 273315 [details, diff] Fix for acl-2.2.51.ebuild, by passing SHELL to emake this is still wrong
*** This bug has been marked as a duplicate of bug 365397 ***