Comping libsdl does not compile with /bin/sh -> /bin/zsh Reproducible: Always Steps to Reproduce: 1. ln -s /bin/zsh /bin/sh 2. emerge libsdl Actual Results: >>> Source configured. >>> Compiling source in /var/tmp/portage/media-libs/libsdl-1.2.14/work/SDL-1.2.14 ... make -j2 /bin/sh build-scripts/mkinstalldirs build make: *** No rule to make target `build/*.lo', needed by `build/libSDL.la'. Stop. make: *** Waiting for unfinished jobs.... mkdir -p -- build * ERROR: media-libs/libsdl-1.2.14 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2960: Called _eapi2_src_compile * ebuild.sh, line 646: Called die * The specific snippet of code: * emake || die "emake failed" * Expected Results: Compiling well.
zsh is not POSIX compatible shell, using it as /bin/sh replacement is a bad idea
Is right, but if the install wants to use bash features it should use /bin/bash as shell and not /bin/sh.