[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 Tue, Sep 26, 2006 at 09:23:23PM +0200, Martijn van Oosterhout wrote:
> >Will this problem disappear if end programs will pass --as-needed flag
> >to the ld command line?
> 
> Some of it is also pkg-config's fault. For example, anyone using
> pkg-config with gtk+2 gets the following:
> 
> # pkg-config --libs gtk+-2.0
> -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lXrandr -lXi -lXinerama
> -lXext -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig
> -lXcursor -lpango-1.0 -lcairo -lXrender -lX11 -lgobject-2.0
> -lgmodule-2.0 -ldl -lglib-2.0
> 
> Which is all crap. Yes, this is the list you need for static, but

gtk1.2 also seems to be noisy; at least two of my packages (libstroke,
mtrack) pick up a ton of apparently unneeded deps from gtk-config;

[8:48am] hamish@noddy:ham/mtrack/mtrack-0.3> pkg-config gtk --libs
-rdynamic -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm

The pkg-config results are the same:

[8:48am] hamish@noddy:ham/mtrack/mtrack-0.3> gtk-config --libs
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm

checklib reports that libdl, libXi, libXext and libX11 all become
unnecessary dependencies of the mtrack package as a result.

Hamish
-- 
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>



Reply to: