Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 323183 - [x11 overlay] media-libs/mesa-9999 should depend on dev-libs/libxml2[python]
Summary: [x11 overlay] media-libs/mesa-9999 should depend on dev-libs/libxml2[python]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-08 13:20 UTC by Andrew Fedorov
Modified: 2011-07-20 14:58 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fedorov 2010-06-08 13:20:29 UTC
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
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-08-26 13:19:11 UTC
Fixed in the x11 overlay.
Comment 2 Keivan Moradi 2011-07-20 11:09:59 UTC
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
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-07-20 14:58:41 UTC
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.