Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342393 - media-libs/mesa: gl.pc requires glproto, dri2proto
Summary: media-libs/mesa: gl.pc requires glproto, dri2proto
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo X packagers
URL: http://lists.freedesktop.org/archives...
Whiteboard:
Keywords:
: 351651 354733 354759 354951 355027 355031 355033 355037 358145 358701 359625 362855 415967 (view as bug list)
Depends on: 363965
Blocks:
  Show dependency tree
 
Reported: 2010-10-23 21:13 UTC by Joakim Tjernlund
Modified: 2014-07-07 17:18 UTC (History)
14 users (show)

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 Joakim Tjernlund 2010-10-23 21:13:23 UTC
# pkg-config  --cflags gdk-2.0
Package 'gl' requires 'glproto >= 1.4.11' but version of GLProto is 1.4.10

I think pkg-config is missing a dependency on glproto as my world is
up to date and doesn't pull in glproto

gentoo-kenth metacity-2.30.3 # eix glproto
[U] x11-proto/glproto
     Available versions:  1.4.11 ~1.4.12
     Installed versions:  1.4.10(15.44.45 2009-12-07)
     Homepage:            http://xorg.freedesktop.org/
     Description:         X.Org GL protocol headers

# eix dev-util/pkgconfig
[I] dev-util/pkgconfig
     Available versions:  0.23 0.25-r2 {elibc_FreeBSD hardened}
     Installed versions:  0.25-r2(19.19.58 2010-10-23)(-elibc_FreeBSD -hardened)
     Homepage:            http://pkgconfig.freedesktop.org/wiki/
     Description:         Package config system that manages compile/link flags


Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-24 09:43:04 UTC
media-libs/mesa does install gl.pc which depends on glproto while it does have glproto in DEPEND only. I guess we need to add it to RDEPEND as well.
Comment 2 Joakim Tjernlund 2010-10-24 11:40:11 UTC
(In reply to comment #1)
> media-libs/mesa does install gl.pc which depends on glproto while it does have
> glproto in DEPEND only. I guess we need to add it to RDEPEND as well.
> 

Perhaps all *.pc do need RDEPEND? If pkg-config always checks these deps
at runtime you need RDEPEND for all.
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2010-10-24 14:34:48 UTC
> Perhaps all *.pc do need RDEPEND? If pkg-config always checks these deps
> at runtime you need RDEPEND for all.

No, pkg-config is only used when building packages. However, glproto is only ever used when building other packages. So its runtime is actually another package's buildtime. Complex, but portage has no clean solution for this.

We'll add glproto to mesa RDEPEND, but that's all that needs to be done.

Thanks
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-24 14:51:44 UTC
Yeah, PMS lacks a clear concept of 'private' and 'public' build depends.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-02-13 17:59:45 UTC
*** Bug 354759 has been marked as a duplicate of this bug. ***
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-02-15 13:51:31 UTC
*** Bug 354951 has been marked as a duplicate of this bug. ***
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-02-15 15:42:16 UTC
*** Bug 354733 has been marked as a duplicate of this bug. ***
Comment 8 Rafał Mużyło 2011-02-15 17:40:35 UTC
*** Bug 355027 has been marked as a duplicate of this bug. ***
Comment 9 Rafał Mużyło 2011-02-15 17:41:17 UTC
*** Bug 355031 has been marked as a duplicate of this bug. ***
Comment 10 Rafał Mużyło 2011-02-15 17:45:43 UTC
*** Bug 355033 has been marked as a duplicate of this bug. ***
Comment 11 Rafał Mużyło 2011-02-15 17:46:28 UTC
*** Bug 355037 has been marked as a duplicate of this bug. ***
Comment 12 Joakim Tjernlund 2011-02-15 18:12:13 UTC
About time this bug is fixed!
Comment 13 dE 2011-02-20 12:32:31 UTC
(In reply to comment #12)
> About time this bug is fixed!
> 

You got that right ;)
Comment 14 Pacho Ramos gentoo-dev 2011-03-16 09:09:56 UTC
*** Bug 358701 has been marked as a duplicate of this bug. ***
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2011-03-20 17:12:51 UTC
*** Bug 359625 has been marked as a duplicate of this bug. ***
Comment 16 Alexey Guzeev 2011-03-20 17:33:45 UTC
Let me comment here about the bug #359625. One of my idea is that .pc file should really list only runtime dependencies within; compile dependencies there are irrelevant as at the moment the .pc file got installed into the system, the package the .pc file belongs to is already fully compiled, and for packages that wil use the .pc file later the build time dependencies of the original package are of no use at all (linker/loader will pickup the neccessary dependencies from .so/.la files anyway).

Also, I suspect that there is a bug with pkg-config - depending on order of .pc files (which is virtually random on any system where assorted packages were installed). it gives the expected results, or fails miserably stumbling upon irrelevant packages. Fixing such bug could at least workaround the problem most of the time.
Comment 17 Rafał Mużyło 2011-04-10 15:52:38 UTC
*** Bug 362855 has been marked as a duplicate of this bug. ***
Comment 18 dE 2011-04-10 17:37:39 UTC
This bug is probably producing a very bad impression on new users.
Comment 19 Maciej Mrozowski gentoo-dev 2011-04-17 18:18:03 UTC
Also see https://bugs.gentoo.org/show_bug.cgi?id=358145#c5
Comment 20 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-04-17 21:41:46 UTC
The dependency was added to mesa-7.10.2, which will go stable soon (bug 363965).
Comment 21 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-05-26 08:12:56 UTC
*** Bug 358145 has been marked as a duplicate of this bug. ***
Comment 22 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-05-26 08:13:46 UTC
(In reply to comment #20)
> The dependency was added to mesa-7.10.2, which will go stable soon (bug
> 363965).

Excellent, thank you.
Comment 23 Zac Medico gentoo-dev 2011-06-28 23:14:43 UTC
Another possible approach to handle this would be to create a virtual/mesa-build metapackage that pulls in mesa, glproto, and dri2proto. That way, people would be able to have systems installed entirely from binary packages without *proto being pulled in as runtime deps.
Comment 24 Pacho Ramos gentoo-dev 2011-07-08 13:03:35 UTC
*** Bug 351651 has been marked as a duplicate of this bug. ***
Comment 25 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-16 09:17:29 UTC
*** Bug 415967 has been marked as a duplicate of this bug. ***
Comment 26 Matt Turner gentoo-dev 2012-09-01 05:17:49 UTC
I think we've all misinterpreted this bug.

None of the headers installed by dri2proto or glproto are used by headers installed by Mesa. There's no reason for Mesa-dependent packages to require glproto or dri2proto.

I don't know enough about pkg-config to understand why/whether they should be listed somewhere in gl.pc. I suspect not.
Comment 27 Matt Turner gentoo-dev 2012-09-12 00:10:48 UTC
Patch sent.
Comment 28 Matt Turner gentoo-dev 2012-09-12 18:26:38 UTC
(In reply to comment #27)
> Patch sent.

Patch committed: http://cgit.freedesktop.org/mesa/mesa/commit/?id=af6aeae4e1286a8858e040602db338de6a1367dc

We'll see if anyone screams and then cherry-pick it to 9.0.
Comment 29 Matt Turner gentoo-dev 2012-09-18 21:09:19 UTC
(In reply to comment #28)
> We'll see if anyone screams and then cherry-pick it to 9.0.

Cherry-picked to 9.0.
Comment 30 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-09-18 23:41:07 UTC
This is fixed in mesa-9.0_pre20120918 (still p.mask'ed for bug 433880, so keeping this bug open for now).
Comment 31 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-24 01:17:08 UTC
mesa-9.0 has been unmasked for some time. Marking as FIXED.