Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 499234

Summary: media-libs/mesa - libxml2 python check should use --host-root
Product: Gentoo Linux Reporter: James Le Cuirot <chewi>
Component: [OLD] LibraryAssignee: Matt Turner <mattst88>
Status: RESOLVED FIXED    
Severity: normal CC: x11
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mesa-python-check-deps.patch

Description James Le Cuirot gentoo-dev 2014-01-25 15:33:05 UTC
Created attachment 368698 [details, diff]
mesa-python-check-deps.patch

When building in a ROOT, libxml2 does not get installed to ROOT because it is only in DEPEND. has_version checks ROOT by default so python_check_deps fails even though DEPEND is satisfied. libxml2 (and Python) really is a host build dependency so adding --host-root to the has_version call fixes the check and allows Mesa to build, even when cross-compiling. Note that python_check_deps already checks for Python itself in / and not ROOT because it wouldn't make sense to execute the Python located in ROOT. See attached patch.
Comment 1 Matt Turner gentoo-dev 2014-01-26 02:14:21 UTC
Thanks, that's a good idea. I've applied the patch to mesa-9.2.5, mesa-10.0.2, and mesa-9999 (in the x11-overlay). Thanks!