Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499234 - media-libs/mesa - libxml2 python check should use --host-root
Summary: media-libs/mesa - libxml2 python check should use --host-root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-01-25 15:33 UTC by James Le Cuirot
Modified: 2014-01-26 02:14 UTC (History)
1 user (show)

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


Attachments
mesa-python-check-deps.patch (mesa-python-check-deps.patch,326 bytes, patch)
2014-01-25 15:33 UTC, James Le Cuirot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!