emerge libddmpeg fails complaining that sed failed. The cause seems to be the use amd64 line (minor slip I presume) calling die for any arch other than amd64. The resolution is to just add some backets. replace: use amd64 && sed -e "s:-march=i386:-fPIC:" -i "Makefile" || die "sed failed" with: use amd64 && ( sed -e "s:-march=i386:-fPIC:" -i "Makefile" || die "sed failed" ) Reproducible: Always Steps to Reproduce: 1. 2. 3.
the proposed fix works.. and the original ebuild also replaced march with the content of the CFLAGS's mcpu.. which is VERY bad..
oops, actually the proposed patch did a die un a subshell, replaced it with if use amd64; then sed||die ; fi in CVS...