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.
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!