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

Bug 354733

Summary: media-libs/mesa missing RDEPEND on x11-proto/dri2proto
Product: Gentoo Linux Reporter: David Flogeras <dflogeras2>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log failing to compile against cairo
make V=1
failed config.log

Description David Flogeras 2011-02-13 14:17:37 UTC
For some reason it cannot find the include cairo.h, which is installed in /usr/include/cairo/cairo.h

Cairo's pkg-config --cflags looks like it includes the above dir.

Reproducible: Always
Comment 1 David Flogeras 2011-02-13 14:19:52 UTC
graphviz-gpl fails in a similar fashion now too since the cairo upgrade
Comment 2 Rafał Mużyło 2011-02-13 16:41:53 UTC
Any chance of a build log ?
Comment 3 David Flogeras 2011-02-13 18:26:30 UTC
Created attachment 262375 [details]
Build log failing to compile against cairo

See attached
Comment 4 Rafał Mużyło 2011-02-13 18:48:47 UTC
Attach config.log too and see with V=1 how exactly the failing command looks like.
Comment 5 David Flogeras 2011-02-13 20:37:06 UTC
Created attachment 262379 [details]
make V=1

You can see from make V=1 log, it is not passing the correct -I to find cairo.h
Comment 6 David Flogeras 2011-02-13 20:38:15 UTC
Created attachment 262381 [details]
failed config.log

As requested
Comment 7 Rafał Mużyło 2011-02-13 22:13:13 UTC
I see something strange in your config.log: all (or so it seems) the pkg-config provided _CFLAGS var are empty, though _LIBS seem unaffected.
Comment 8 David Flogeras 2011-02-14 15:57:18 UTC
Anything else I can provide?

The only thing about this system is that it is actually a 32bit chroot installed on a 64bit machine (I use it to build for a small system).  That shouldn't make a difference though.
Comment 9 Rafał Mużyło 2011-02-14 16:22:15 UTC
As I said, check if at least at command line vars are correctly returned.
Now, it's hard to say whether it's the ebuild/package is doing something wrong
or is something about your pkg-config that's broken.
I.e. what does 'pkg-config pangocairo --cflags' return ?
It's strange though that _LIBS seems unaffected.
Comment 10 David Flogeras 2011-02-14 16:39:03 UTC
Ok the output is the following.  I had run emerge -cq --with-bdeps n to clean up before installing on the target.  Is that incorrect to do, or is graphviz supposed to have dri2proto as a DEPEND?:


Package dri2proto was not found in the pkg-config search path.
Perhaps you should add the directory containing `dri2proto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'dri2proto', required by 'egl', not found
Comment 11 Rafał Mużyło 2011-02-14 17:22:43 UTC
I'd say it's yet another proof, that you shouldn't touch x11-protos.
depclean with '--with-bdeps n' was simply asking for trouble.

IMHO, this marks the bug INVALID - YMMV.
Comment 12 David Flogeras 2011-02-14 17:31:44 UTC
It's your call, I'm not the developer :)

So is there a safe way to use --with-bdeps n, or should it be avoided totally?
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2011-02-15 15:36:24 UTC
x11-proto/dri2proto should be RDEPEND instead of DEPEND in media-libs/mesa for egl.pc so the package doesn't break with depclean

moving to correct maintainers
Comment 14 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-02-15 15:42:16 UTC

*** This bug has been marked as a duplicate of bug 342393 ***