in x11-wm/wmii/wmii-3.5.1.ebuild is the following sed expression : sed -i \ -e "/^PREFIX/s/=.*/= \/usr/" \ -e "/^CONFPREFIX/s/=.*/= \/etc/" \ -e "/^X11INC/s/=.*/= \/usr\/include/" \ -e "/^X11LIB/s/=.*/= \/usr\/lib/" \ -e "/^CFLAGS/s/= -Os/+=/" \ -e "/^LDFLAGS/s/=/+=/" \ -e "/^CC/s/=.*/= $(tc-getCC)/" \ config.mk || die "sed failed" On my system $(tc-getCC) is evaluated to /usr/share/cache/bin/gcc The '/' characters make the sed expression fail, a dirty workaround is to replace : -e "/^CC/s/=.*/= $(tc-getCC)/" \ by : -e "/^CC/s\\=.*\\= $(tc-getCC)\\" \
Works just fine here...
Jakub, did you even read the bug? There's clearly broken code there and it's obvious under what conditions it will fail. Closing it off as WORKSFORME is silly -- we know it works for you, and anyone else who happens to not have a / in certain variables, but it doesn't work for those who do.
That it works for one person does not mean that it is not a bug.
Should be fixed. Thank you for the bug report. :)