Re: pkg-config including too much crap

2006-04-10 Thread Goswin von Brederlow
"Martijn van Oosterhout" <[EMAIL PROTECTED]> writes: > On 4/4/06, Loïc Minier <[EMAIL PROTECTED]> wrote: >> gtk+-2.0.pc's Libs only has -lgtk, it requires gdk, atk, and cairo >> because of grep -ir #include /usr/include/gtk-2.0 | grep -v 'atk' (it >> needs at least the Cflags). Some people go

Re: pkg-config including too much crap

2006-04-09 Thread Martijn van Oosterhout
On 4/4/06, Loïc Minier <[EMAIL PROTECTED]> wrote: > gtk+-2.0.pc's Libs only has -lgtk, it requires gdk, atk, and cairo > because of grep -ir #include /usr/include/gtk-2.0 | grep -v 'atk' (it > needs at least the Cflags). Some people go as far as saying that since > the headers are included fro

Re: pkg-config including too much crap

2006-04-04 Thread Loïc Minier
On Tue, Apr 04, 2006, Roger Leigh wrote: > 1. gtk+-2.0.pc does not use Libs.private. This would clean up most of >the libraries. This is a GTK+ bug. gtk+-2.0.pc's Libs only has -lgtk, it requires gdk, atk, and cairo because of grep -ir #include /usr/include/gtk-2.0 | grep -v 'atk' (it nee

Re: pkg-config including too much crap

2006-04-04 Thread Roger Leigh
Roger Leigh <[EMAIL PROTECTED]> writes: > 2. Even then, -lgtk-x11-2.0 still needs to come from the Requires, but >should still be private. For this, a Requires.private would be the >best solution (but its Cflags should still remain public). This >needs implementing in pkg-config. It

Re: pkg-config including too much crap

2006-04-04 Thread Roger Leigh
"Martijn van Oosterhout" <[EMAIL PROTECTED]> writes: > On 4/4/06, Roger Leigh <[EMAIL PROTECTED]> wrote: >> "Martijn van Oosterhout" <[EMAIL PROTECTED]> writes: >> > Is there a way to get sane output from pkg-config or should I just >> > parse the .pc file myself? >> >> The .pc file needs converti

Re: pkg-config including too much crap

2006-04-04 Thread Loïc Minier
On Tue, Apr 04, 2006, Martijn van Oosterhout wrote: > Well, the thing is that the .pc doesn't list all those libraries, it's > just that pkg-config is adding them. The .pc file looks like below. > Apparently, pkg-config is following the "Requires" link and appending > all those libs also. Perhaps t

Re: pkg-config including too much crap

2006-04-04 Thread Martijn van Oosterhout
On 4/4/06, Roger Leigh <[EMAIL PROTECTED]> wrote: > "Martijn van Oosterhout" <[EMAIL PROTECTED]> writes: > > Is there a way to get sane output from pkg-config or should I just > > parse the .pc file myself? > > The .pc file needs converting to use Libs.private for libraries which > are only indirec

Re: pkg-config including too much crap

2006-04-04 Thread Roger Leigh
"Martijn van Oosterhout" <[EMAIL PROTECTED]> writes: > Hi, > > When you run pkg-config you sometimes get a lot more crap than you > need. For example: > > # pkg-config --libs gtkspell-2.0 > -L/usr/X11R6/lib -lgtkspell -laspell -lgtk-x11-2.0 -lgdk-x11-2.0 > -lXrandr -lXi -lXinerama -lXext -latk-1.0

pkg-config including too much crap

2006-04-04 Thread Martijn van Oosterhout
Hi, When you run pkg-config you sometimes get a lot more crap than you need. For example: # pkg-config --libs gtkspell-2.0 -L/usr/X11R6/lib -lgtkspell -laspell -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 -lpang