If libxml2 is compiled with USE="-python" then mesa-9999 build will fail: python -t -O -O main/es_generator.py -S main/APIspec.xml -V GLES2.0 > main/api_exec_es2.c Traceback (most recent call last): File "main/es_generator.py", line 26, in <module> import APIspecutil as apiutil File "/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa/main/APIspecutil.py", line 28, in <module> Traceback (most recent call last): File "main/es_generator.py", line 26, in <module> import APIspecutil as apiutil File "/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa/main/APIspecutil.py", line 28, in <module> import libxml2 ImportError: No module named libxml2 import libxml2 ImportError: No module named libxml2 gmake[2]: *** No rule to make target `depend', needed by `default'. Stop. gmake[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src' make: *** [default] Error 1 * ERROR: media-libs/mesa-9999 failed: * died running emake, base_src_make * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 3844: Called base_src_compile * environment, line 730: Called base_src_make * environment, line 768: Called die * The specific snippet of code: * emake "$@" || die "died running emake, $FUNCNAME"; * * If you need support, post the output of 'emerge --info =media-libs/mesa-9999', * the complete build log and the output of 'emerge -pqv =media-libs/mesa-9999'. * This ebuild is from an overlay: '/usr/portage-overlay/' * The complete build log is located at '/var/tmp/portage/media-libs/mesa-9999/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-9999/temp/environment'. * S: '/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999' Reproducible: Always Steps to Reproduce: 1. USE="-python" emerge libxml2 2. VIDEO_CARDS="radeon" emerge =mesa-9999
Fixed in the x11 overlay.
This bug still exist. I've set global python use flag but problem is mesa emerges before libxml2 when doing emerge -uDN world. re-emerging libxml2 with python solves the problem: # USE="python" emerge libxml2 Steps to Reproduce: 1. make.conf -> VIDEO_CARDS="nouveau" USE="python -hal acpi alsa bash-completion bidi consolekit dbus dri firefox fontconfig ftp kde lm_sensors mmx modules mozilla mpi ncurses networkmanager opengl openmp plasma policykit rdesktop readline rss samba semantic-desktop sharedmem smp spell sse sse2 ssl threads truetype udev unicode usb vnc X xml" 2. emerge -uDN world
The dependency is correct. You can verify by building libxml with USE="python" disabled and then re-emerging mesa. Your problem is more likely some issue with the x11 overlay or an incomplete python-updater run after python upgrade.