qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH for-4.0 v3] configure: bump spice-server require


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH for-4.0 v3] configure: bump spice-server required version to 0.12.5
Date: Thu, 29 Nov 2018 10:07:01 +0100
User-agent: NeoMutt/20180716

On Thu, Nov 29, 2018 at 03:32:28AM -0500, Frediano Ziglio wrote:
> > On Thu, Nov 29, 2018 at 12:09 PM Gerd Hoffmann <address@hidden> wrote:
> > >
> > > On Wed, Nov 28, 2018 at 07:59:32PM +0400, Marc-André Lureau wrote:
> > > > Looking at chardev/spice.c code, I realize compilation was broken for
> > > > a while with spice-server < 0.12.3. Let's bump required version
> > > > to 0.12.5, released May 19 2014, instead of adding more #ifdef.
> > >
> > > Oh, you did the 0.12.5 patch already.  Scratch my other reply then.
> > >
> > > > -  if $pkg_config --atleast-version=0.12.0 spice-server && \
> > > > +  if $pkg_config --atleast-version=0.12.5 spice-server && \
> > > >       $pkg_config --atleast-version=0.12.3 spice-protocol && \
> > >
> > > I think we should adjust spice-protocol too to whatever 0.12.5 requires
> > > to build.
> > >
> > 
> > Why not leave that responsibility to pkg-config, and only require in
> > qemu what is required there?
> > 
> > 
> 
> That is remove explicit requirement in configure script?
> I can see that spice-core.h (spice-server, one of the mail include) is
> including spice-protocol headers.
> Looking at configure both are required so would make sense to check
> only spice-server, unless packaging has some bugs if you have spice-server
> (devel) installed you also have spice-protocol.

seems the spice-protocol dep is there due to qemu itself needing it:

commit 358689fe299c306f1d81bea57a5067d0abb56699
Author: Michal Privoznik <address@hidden>
Date:   Fri Mar 1 08:43:18 2013 +0100

    configure: Require at least spice-protocol-0.12.3
    
    As of 5a49d3e9 we assume SPICE_PORT_EVENT_BREAK to be defined.
    However, it is defined not in 0.12.2 what we require now, but in
    0.12.3.  Therefore in order to prevent build failure we must
    adjust our minimal requirements.
    
    Signed-off-by: Stefan Hajnoczi <address@hidden>

That makes sense.  So, when spice-server 0.12.5 requires spice-protocol
0.12.8+ anyway I think we can savely drop the spice-protocol check.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]