Re: Top 20 unnecessary dependencies [was: Re: A plan to get rid of unnecessary package dependencies]
On 9/28/06, Mike Hommey <email@example.com> wrote:
> vali:/usr/lib/pkgconfig# pkg-config --cflags gtk+-2.0
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo
I don't know what pkg-config is supposed to do, but surely you don't
need the freetype2 nor the pango, nor the X11 includes files to build
Have you tried?
Try a simple #include <gtk/gtk.h> and you get errors like this:
In file included from /usr/include/gtk-2.0/gdk/gdkcolor.h:31,
/usr/include/gtk-2.0/gdk/gdktypes.h:33:25: error: pango/pango.h: No
such file or directory
In file included from /usr/include/gtk-2.0/gdk/gdk.h:30,
/usr/include/gtk-2.0/gdk/gdkcairo.h:25:30: error: pango/pangocairo.h:
No such file or directory
If you add /usr/include/pango-1.0 it works.
Perhaps Requires.private is not recursive? It's not mentioned in the
manpage, but I would've expected the there to be no difference between
Requires and Requires.private when looking at cflags. At least, that's
my interpretation of this thread.
Have a nice day,
Martijn van Oosterhout <firstname.lastname@example.org> http://svana.org/kleptog/