Created attachment 351772 [details] log from sed that shows __redirect_alloc_fd failure If file descriptor 1023 is open on SVR4, then /dev/fd/{0..1023} will exist, regardless of whether or not any other file descriptors are open. The fallback in __redirect_alloc_fd assumes that the existence of /dev/fd/* implies an open file descriptor. This causes a build failure on Open Indiana 151a7 because it ships with bash 4.0.28, file descriptor 1023 is somehow opened during the bootstrap and __redirect_alloc_fd cannot find a free file descriptor. Oracle's documentation suggests that you should check for free file descriptors by opening them and checking for an error: http://docs.oracle.com/cd/E26502_01/html/E29042/fd-4.html Unfortunately, I cannot figure out how to do this from the shell.
This is fixed in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=76ebfcf74e09bf40bfc790bbc7a917d71a1a0c00
Fixed to use /proc/self/fd: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d74ef62ae6509bad2d1a02d26a69dd4de511b87c
this is in 2.2.01.22097, thanks!