The newly added ebuild for dev-util/w32api-3.17.2 has a nasty syntax error in the version mangling code. ${P:0:-2} is not a valid expression.
Created attachment 267315 [details, diff] Proposed modification to the ebuild Actual result after using with crossdev: /usr/cross-compilers/cross-i686-pc-mingw32/w32api/w32api-3.17.2.ebuild: line 15: -2: substring expression < 0 in MY_P="${P:0:-2}-${PV:0-1}-mingw32" the ${P:0:-2} is not a valid expression. As a result, the MY_P variable ends up empty and the fetch fails. According to the Gentoo Development Guide http://devmanual.gentoo.org/tools-reference/bash/index.html#bash-substring-extraction the length parameter must not be less than zero. In this case the following modification would work: 15c15 < MY_P="${P:0:-2}-${PV:0-1}-mingw32" --- > MY_P="${P:0:${#P}-2}-${PV:0-1}-mingw32" but the attached modification should work even for versions that lack the third version number position.
${P:0:-2} is a valid expression if you have a new enough bash