Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344641 - x11-libs/cairo-1.10.0-r3[qt4] creates pkg-config file with unnecessary deps
Summary: x11-libs/cairo-1.10.0-r3[qt4] creates pkg-config file with unnecessary deps
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 07:50 UTC by Dmitry Karasik
Modified: 2012-07-25 07:20 UTC (History)
1 user (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 Dmitry Karasik 2010-11-08 07:50:59 UTC
Compiling cairo with +qt4 causes the /usr/lib/pkg-config/cairo.pc file to include QtGui in Requires.private. This means that CFLAGS for QtGui are added to all packages building against cairo. This is completely unnecessary, the dependency that cairo +qt4 has on QtGui is for static linking only and thus that line should be removed and -L/usr/lib/qt4 -lQtGui -lQtCore should be added to Libs.private instead.
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2010-11-28 21:08:49 UTC
Sounds like a genuine upstream bug. Care to open a bug report in FreeDesktop's bugzilla?

Thanks
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2010-12-02 12:59:41 UTC
scarab@arcarius: ~ $ equery files cairo |grep \.pc
/usr/lib64/pkgconfig/cairo-egl.pc
/usr/lib64/pkgconfig/cairo-fc.pc
/usr/lib64/pkgconfig/cairo-ft.pc
/usr/lib64/pkgconfig/cairo-gl.pc
/usr/lib64/pkgconfig/cairo-glx.pc
/usr/lib64/pkgconfig/cairo-gobject.pc
/usr/lib64/pkgconfig/cairo-pdf.pc
/usr/lib64/pkgconfig/cairo-png.pc
/usr/lib64/pkgconfig/cairo-ps.pc
/usr/lib64/pkgconfig/cairo-qt.pc
/usr/lib64/pkgconfig/cairo-svg.pc
/usr/lib64/pkgconfig/cairo-xcb-shm.pc
/usr/lib64/pkgconfig/cairo-xcb.pc
/usr/lib64/pkgconfig/cairo-xlib-xrender.pc
/usr/lib64/pkgconfig/cairo-xlib.pc
/usr/lib64/pkgconfig/cairo.pc
scarab@arcarius: ~ $ cat /usr/lib64/pkgconfig/cairo.pc
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64
includedir=${prefix}/include

Name: cairo
Description: Multi-platform 2D graphics library
Version: 1.10.0

Requires.private:    gobject-2.0 glib-2.0    pixman-1 >= 0.18.4    fontconfig >= 2.2.95 freetype2 >= 9.7.3   egl gl libpng QtGui >= 4.4.0 xcb-shm xcb >= 1.1.92 xcb-render >= 0.9.92 xrender >= 0.6 x11 
Libs: -L${libdir} -lcairo
Libs.private:          -lz -lz   -lGL         
Cflags: -I${includedir}/cairo


Cant reproduce with full blown cairo...
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2010-12-02 13:00:05 UTC
erm can :P not cant :)
Comment 4 Dmitry Karasik 2010-12-02 21:40:26 UTC
What do you mean can't reproduce? The entry: QtGui >= 4.4.0 appears in the Requires.private line that you posted.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2012-07-14 19:51:24 UTC
spatz is maintaining this now.
Comment 6 Ben de Groot (RETIRED) gentoo-dev 2012-07-25 07:20:29 UTC
If this is still an issue with 1.12.2, then please open a bug report upstream, as suggest in comment #1.