Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368661 - mplayer build fails when EPREFIX is in /usr/local
Summary: mplayer build fails when EPREFIX is in /usr/local
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 08:33 UTC by Michael Weiser
Modified: 2011-05-29 18:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix (mplayer-1.0_rc4_p20110322.ebuild.diff,944 bytes, patch)
2011-05-25 08:33 UTC, Michael Weiser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weiser 2011-05-25 08:33:03 UTC
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
Comment 1 Michael Weiser 2011-05-25 08:33:36 UTC
Created attachment 274569 [details, diff]
fix
Comment 2 Fabian Groffen gentoo-dev 2011-05-29 18:05:33 UTC
thanks, committed your patch