Created attachment 576602 [details] build.log with mksh After setting eselect sh set bash it builds.
I made a patch that replaces the offending tests in acinclude.m4 with alternatives that are strictly POSIX-conformant. I tested it by adjusting the ebuild so that it: * applies the patch in question * inherits the autotools eclass * contains a src_prepare function that calls default, followed by autoreconf After doing this, I was able to successfully build icedtea-3.12.0 with mksh as the effective /bin/sh.
Created attachment 576708 [details, diff] icedtea-3.12.0-dont-use-regex-binary-op-in-acinclude.patch
icedtea-3.13.0 is now in portage and remains broken. Same issue, same solution.
The tests were taken from OpenJDK itself, but it looks like they force configure to be run with bash. I've filed an upstream bug for this now: https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3748 and I'll try and get the patch in for 3.14.0. In future, if response on here is slow, feel free to use the IcedTea bug database directly. I don't tend to always see Gentoo bugs.
(In reply to Andrew John Hughes from comment #4) > In future, if response on here is slow, feel free to use the IcedTea bug > database directly. I don't tend to always see Gentoo bugs. Noted with thanks. Hopefully they will see that it's an unnecessary bashism.
This can be closed now. Thanks, Andrew.
Closing. This issue was fixed by 3.14.0 and Gentoo no longer carries any older versions.