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

Bug 199745

Summary: gnome-base/gnome-desktop-2.20.1 needs to check USE python for libxml2
Product: Gentoo Linux Reporter: Samuli Suominen (RETIRED) <ssuominen>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: VERIFIED INVALID    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Samuli Suominen (RETIRED) gentoo-dev 2007-11-20 08:57:10 UTC
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/bin/xml2po", line 35, in ?
    import libxml2
ImportError: No module named libxml2
  File "/usr/bin/xml2po", line 35, in ?
    import libxml2
ImportError: No module named libxml2
make[3]: *** [fr/lgpl.xml] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [es/lgpl.xml] Error 1
Traceback (most recent call last):
  File "/usr/bin/xml2po", line 35, in ?
    import libxml2
ImportError: No module named libxml2
make[3]: *** [ar/lgpl.xml] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnome-base/gnome-desktop-2.20.1/work/gnome-desktop-2.20.1/desktop-docs/lgpl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-base/gnome-desktop-2.20.1/work/gnome-desktop-2.20.1/desktop-docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/gnome-desktop-2.20.1/work/gnome-desktop-2.20.1'
make: *** [all] Error 2

Solution is of course (freestyle :-p),

pkg_setup() {

local xmlpython_check="Re-emerge dev-libs/libxml2 with USE python."

if ! built_with_use dev-libs/libxml2 python; then
  eerror "${xmlpython_check}"
  die "${xmlpython_check}"
fi

}
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-11-20 20:01:00 UTC
This is not a gnome-desktop bug.  xml2po comes from gnome-doc-utils, which *does* have such a check.  re-emerge gnome-doc-utils, and it will complain.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2007-11-20 20:14:38 UTC
(In reply to comment #1)
> This is not a gnome-desktop bug.  xml2po comes from gnome-doc-utils, which
> *does* have such a check.  re-emerge gnome-doc-utils, and it will complain.
> 

bah.. 

*wants USE based deps from portage*