Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350279 - app-office/openerp-server-5.0.6 depends on some packages with USE=python, but ebuild does not check it.
Summary: app-office/openerp-server-5.0.6 depends on some packages with USE=python, but...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Jean-Noël Rivasseau (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-01 12:52 UTC by Kola Bernard
Modified: 2011-01-14 10:33 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 Kola Bernard 2011-01-01 12:52:31 UTC
# emerge =app-office/openerp-server-5.0.6 -q
[...]
>>> Emerging (20 of 20) app-office/openerp-server-5.0.6
>>> Failed to emerge app-office/openerp-server-5.0.6, Log file:
>>>  '/mnt/auto/vartmp/portage/app-office/openerp-server-5.0.6/temp/build.log'
 * Package:    app-office/openerp-server-5.0.6
 * Repository: gentoo
 * Maintainer: elvanor@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox
python2.6 setup.py build
Error: python module libxml2 (libxml2 python bindings) is required
Error: python module libxslt (libxslt python bindings) is required
 * ERROR: app-office/openerp-server-5.0.6 failed:
 *   Building failed

After add USE='python' and remerge "dev-libs/libxslt" && "dev-libs/libxml2" the ebuild works fine.
# USE='python' emerge dev-libs/libxslt dev-libs/libxml2 -q1 && emerge =app-office/openerp-server-5.0.6 -q
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-office/openerp-server-5.0.6
>>> Installing (1 of 1) app-office/openerp-server-5.0.6
>>> Recording app-office/openerp-server in "world" favorites file...

 * Messages for package app-office/openerp-server-5.0.6:

 * In order to setup the initial database, run:
 *   emerge --config =app-office/openerp-server-5.0.6
 * Be sure the database is started before
 * GNU info directory index is up-to-date.

!!! existing preserved libs found

Both packages are dependency of dev-python/lxml.
I do not know enough about, but I think maybe needs dev-python/lxml this two libs with USE='python'?
Maybe a 
dev-libs/libxslt[python]
dev-libs/libxml2[python]
in the "{RD,D}EPEND" section will help, but I do not know if was better to blame "dev-python/lxml" or "app-office/openerp-server".
Comment 1 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2011-01-06 07:59:41 UTC
Hmm, I don't know either if it would be better to add this to lxml or openerp.

Python herd, can you advise?
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-06 16:53:07 UTC
app-office/openerp-server directly uses libxml2 and libxslt Python modules, so app-office/openerp-server should additionally depend on:
dev-libs/libxml2[python]
dev-libs/libxslt[python]

dev-python/lxml does NOT import libxml2 and libxslt Python modules. Extension modules of dev-python/lxml are linked against some libraries of dev-libs/libxml2 and dev-libs/libxslt, which are installed even with USE="-python".

$ scanelf -qF '%F: %n' `qlist dev-python/lxml | sort`
/usr/lib64/python2.6/site-packages/lxml/etree.so: libxslt.so.1,libexslt.so.0,libxml2.so.2,libpython2.6.so.1.0,libpthread.so.0,libc.so.6
/usr/lib64/python2.6/site-packages/lxml/objectify.so: libxml2.so.2,libpython2.6.so.1.0,libpthread.so.0,libc.so.6
/usr/lib64/python2.7/site-packages/lxml/etree.so: libxslt.so.1,libexslt.so.0,libxml2.so.2,libpython2.7.so.1.0,libpthread.so.0,libc.so.6
/usr/lib64/python2.7/site-packages/lxml/objectify.so: libxml2.so.2,libpython2.7.so.1.0,libpthread.so.0,libc.so.6
/usr/lib64/python3.1/site-packages/lxml/etree.so: libxslt.so.1,libexslt.so.0,libxml2.so.2,libpython3.1.so.1.0,libpthread.so.0,libc.so.6
/usr/lib64/python3.1/site-packages/lxml/objectify.so: libxml2.so.2,libpython3.1.so.1.0,libpthread.so.0,libc.so.6
Comment 3 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2011-01-14 10:33:55 UTC
Fixed, thanks for the report