If EPREFIX points to a path below /usr/local, mplayer build fails with an error message: /usr/local/gentoo/var/tmp/portage/media-video/mplayer-1.0_rc4_p20110322/temp/environment: ./configure: /usr/local/gentoo/usr/gentoo/bin/bash: bad interpreter: No such file or directory This is caused by rewriting static paths within configure in the wrong order. First the shebang is rewritten to $EPREFIX/bin/bash. Then a rewrite intended to replace occurences of /usr/local with $EPREFIX/usr rewrites it again, leading to something like /usr/local/gentoo/usr/gentoo/bin/bash. Attached patch fixes the issue. Reproducible: Always Steps to Reproduce: 1. emerge mplayer Actual Results: build fails Expected Results: build succeeds
Created attachment 274569 [details, diff] fix
thanks, committed your patch