Nonprefixed shebang for ncurses-config cause emerge ncurses to fail This is in an early bootstrap system... maybe later things will work better. Just adding the line below to src_compile of the ebuild fixed the problem: sed -i -e "s/\/bin\/sh/${EPREFIX//\//\\/}\/bin\/sh/;" misc/ncurses-config
Created attachment 224577 [details] patch to ncurses-5.7-r3.ebuild
Bah, this issue showed up in bug 309825. That was tested and considered fixed when I (unknowingly) did emerge --oneshot --nodeps bash in my test routine. I didn't know that ncurses exhibited this same issue at the time. Assuming it is possible and safe to do so (does bash work well enough without ncurses??), I suggest to modify the bootstrapping instructions to reflect this.
yes, we MUST emerge --nodeps --oneshot bash as first thing now.
*** Bug 310587 has been marked as a duplicate of this bug. ***
I updated the bootstrap docs accordingly