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

Bug 155221

Summary: gnome-doc-utils-0.8.0 missing libxml2 (with python support) dependency
Product: Gentoo Linux Reporter: Marcin Deranek <marcin.deranek>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marcin Deranek 2006-11-15 03:51:17 UTC
Hi,

Recently I tried to emerge gcalctool-5.8.25 on ~amd64 and it fails with the following error:

<snip>
Making all in de
Traceback (most recent call last):
  File "/usr/bin/xml2po", line 34, in ?
    import libxml2
ImportError: No module named libxml2
make[2]: *** [es/gcalctool.xml] Error 1
make[2]: *** Waiting for unfinished jobs....
<snip>

/usr/bin/xml2po belongs to gnome-doc-utils-0.8.0 and is written in python. Apparently it requires libxml2 module. Unfortunately my libxml2 is built without python support (USE=-python). Re-compiling it with python support solves the problem.. Looks like libxml2 python module is needed only during installation.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-15 03:55:30 UTC
The ebuild already checks for this.


*** This bug has been marked as a duplicate of 109369 ***
Comment 2 Marcin Deranek 2006-11-15 04:27:51 UTC
Indeed - I've just checked it, so I see 2 scenarios which would explain:
* Check was added, but ebuild version hasn't changed (not likely)
* After installation of gnome-doc-utils I have removed python from my use flags and re-compiled all packages. Since gnome-doc-utils doesn't have python flag it hasn't been recompiled, but libxml2 was (very likely)

Is there any reasonable way to workaround 2nd situation except adding 'dev-libs/libxml2 python' to /etc/portage/package.use file ?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-11-15 04:35:49 UTC
There's no reasonable solution for such issues until Bug 2272 gets fixed.