Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359051 - media-libs/mesa needs dev-libs/libxml2 to build
Summary: media-libs/mesa needs dev-libs/libxml2 to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 17:21 UTC by Piotr Karbowski (RETIRED)
Modified: 2011-04-12 00:15 UTC (History)
0 users

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


Attachments
build.log (build.log,67.24 KB, text/plain)
2011-04-12 00:15 UTC, Angelo Arrifano (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Karbowski (RETIRED) gentoo-dev 2011-03-15 17:21:38 UTC
Hi there,

media-libs/mesa failing if there is no libxml2 in system, as it running some python code inside. (Found it on new, clean install).

Reproducible: Always

Steps to Reproduce:
1. emerge mesa when there is no libxml2.
Comment 1 Rafał Mużyło 2011-03-15 18:18:25 UTC
dev-libs/libxml2[python] is among RDEPEND.
Your system must be messed up somehow, if it doesn't work.
Comment 2 Piotr Karbowski (RETIRED) gentoo-dev 2011-03-15 18:32:15 UTC
It is 100% clean gentoo install, fresh, I will reopen it and reproduce in chroot tomorrow.
Comment 3 Piotr Karbowski (RETIRED) gentoo-dev 2011-03-15 18:34:07 UTC
Ah, you see, you are wrong, RDEPEND is RUNETIME DEPEND, it should be in DEPEND variable then.
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-03-15 19:04:44 UTC
Please add your emerge --info as a comment and the complete build log as an attachment to this bug report.
Comment 5 Rafał Mużyło 2011-03-15 19:47:48 UTC
(In reply to comment #3)
> Ah, you see, you are wrong, RDEPEND is RUNETIME DEPEND, it should be in DEPEND
> variable then.

Honestly, even though it does seem as if DEPEND would be a better place for the dep, it seems unlikely it will change anything in your case.
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-03-16 00:59:48 UTC
(In reply to comment #3)
> Ah, you see, you are wrong, RDEPEND is RUNETIME DEPEND, it should be in DEPEND
> variable then.

You missed the following in the media-libs/mesa/mesa-7.9.2.ebuild
DEPEND="${RDEPEND}
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-16 04:32:37 UTC
It should all be correct. All media-libs/mesa ebuilds in the official tree correctly DEPEND on dev-libs/libxml2[python].

With no build log (the entire thing, if you are going to attach it to this bug report) showing an actual build error and no `emerge --info' as requested earlier, it's hard to see a bug here.
Comment 8 Angelo Arrifano (RETIRED) gentoo-dev 2011-04-12 00:15:19 UTC
Created attachment 269579 [details]
build.log

I had the same problem with mesa-7.10.1 in a hardened amd64 machine.

dev-libs/libxml2[python] is indeed in DEPEND="${RDEPEND}" so lets search further..

$ python
>>> import libxml2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named libxml2

$ qlist -o libxml
(...)
/usr/lib64/python2.6/site-packages/libxml2.py

$ eselect python list
Available Python interpreters:
  [1]   python2.6
  [2]   python2.7 *
  [3]   python3.1

$ emerge -1 avq libxml2
[ebuild   R   ] dev-libs/libxml2-2.7.8  USE="icu python readline -debug -doc -examples -ipv6 -test"
Would you like to merge these packages? [Yes/No] Y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-libs/libxml2-2.7.8
>>> Installing (1 of 1) dev-libs/libxml2-2.7.8
>>> Jobs: 1 of 1 complete

$ qlist -o libxml
/usr/lib64/python2.7/site-packages/libxml2.py