On Tue, Aug 16, 2011 at 15:59:32 +0400, Michael Tokarev wrote:

> 16.08.2011 11:50, Liang Guo wrote:
> > Hi, Michael,
> > 
> > On Wed, Aug 10, 2011 at 5:49 AM, Michael Tokarev <[email protected]> wrote:
> >> 09.08.2011 14:26, Michael Tokarev wrote:
> >> []
> >>> There are other dependencies too, like alsa openssl xrandr etc,
> >>> but I haven't checked these.
> >>
> >> See also 
> >> http://cgit.freedesktop.org/spice/spice/commit/?h=0.8&id=54c660470a5aea19f799c5574cc0d4a707696712
> >>  --
> >> this is actually a bugfix, -- spice .pc file unnecessary includes alsa 
> >> which
> >> pulls its own set of include dirs, which contains, among other things,
> >> file named "error.h".  Which clashes with local (in another package
> >> using spice) file of the same name.  So that qemu 0.15 does not
> >> build with spice 0.8.2 for example:
> >>
> >> http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg00417.html
> >> http://lists.gnu.org/archive/html/qemu-devel/2011-08/msg00617.html
> >>
> >> /mjt
> > I've asked Kilian to sponsor my new spice 0.8.2-2,
> > 
> > In this upload, libpixman-1-dev (>= 0.17.7~) and libssl-dev is added to
> > libspice-server-dev's Depends field. alsa and other unused x11 Requires
> > are removed.
> 
> And this is, actually, wrong.  The original issue, incorrectly diagnosed
> by me in this bugreport, is that spice people use Requires: pkg-config
> variable to declare inter-library dependencies, while they should use
> Requires.private instead.  It is the development files of libpixman,
> libssl etc are not needed to build applications against lispice-server,
> unless you want to have static build (in which case all inter-dependent
> libraries are also needed, and that's where Requires.private pkg-config
> variable comes into play).
> 
> So the problem actually is the wrong pkg-config dependencies, not debian
> package dependencies, due to wrong upstream usage of pkg-config.
> 
> So I went on and corrected the mess.  Here's the difference:
> 
Even with Requires.private you'll need the corresponding -dev packages
in Depends, because pkg-config will look for them for --cflags, just not
--libs.

Cheers,
Julien



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to