[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Top 20 unnecessary dependencies [was: Re: A plan to get rid of unnecessary package dependencies]



On 9/28/06, Mike Hommey <mh@glandium.org> 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
gtk applications.

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,
                from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
                from /usr/include/gtk-2.0/gdk/gdk.h:30,
                from /usr/include/gtk-2.0/gtk/gtk.h:31,
                from gtktest.c:10:
/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,
                from /usr/include/gtk-2.0/gtk/gtk.h:31,
                from gtktest.c:10:
/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 <kleptog@gmail.com> http://svana.org/kleptog/



Reply to: