Re: [Spice-devel] [PATCH spice-streaming-server 1/3] Use defer style destruction instead of old C style and goto

2017-11-08 Thread Christophe de Dinechin
> On 8 Nov 2017, at 16:35, Frediano Ziglio wrote: > >>> >>> On 8 Nov 2017, at 16:02, Frediano Ziglio wrote: >>> >>> This better integrate with exceptions. >>> Also don't leak resources using a return in the middle of the >>> code. >>> >>> Signed-off-by: Frediano Ziglio >>> --- >>> src/Makef

[Spice-devel] [PATCH spice-server] utils: Check we list all channel names

2017-11-08 Thread Frediano Ziglio
This prevent future problems supporting new channels. Signed-off-by: Frediano Ziglio --- server/utils.c | 10 ++ 1 file changed, 10 insertions(+) Christophe, is this addressing the problem you were thinking? diff --git a/server/utils.c b/server/utils.c index ff1fc2d1..746132e5 100644 -

Re: [Spice-devel] [PATCH spice-streaming-server 1/3] Use defer style destruction instead of old C style and goto

2017-11-08 Thread Frediano Ziglio
> > > On 8 Nov 2017, at 16:02, Frediano Ziglio wrote: > > > > This better integrate with exceptions. > > Also don't leak resources using a return in the middle of the > > code. > > > > Signed-off-by: Frediano Ziglio > > --- > > src/Makefile.am | 1 + > > src/defer.hpp

Re: [Spice-devel] [PATCH spice-streaming-server 1/3] Use defer style destruction instead of old C style and goto

2017-11-08 Thread Christophe de Dinechin
> On 8 Nov 2017, at 16:02, Frediano Ziglio wrote: > > This better integrate with exceptions. > Also don't leak resources using a return in the middle of the > code. > > Signed-off-by: Frediano Ziglio > --- > src/Makefile.am | 1 + > src/defer.hpp | 16

Re: [Spice-devel] [PATCH spice-server 1/2] build: Update spice-common submodule

2017-11-08 Thread Christophe Fergeau
for the series, Acked-by: Christophe Fergeau On Wed, Nov 08, 2017 at 02:18:52PM +, Frediano Ziglio wrote: > Frediano Ziglio (6): > Make the compiler work out better way to write unaligned memory > test-marshallers: Use unaligned structure > test-marshallers: Test demarshalli

Re: [Spice-devel] [spice-streaming-agent 7/7] spec: Add missing Requires for the -devel package

2017-11-08 Thread Frediano Ziglio
> > On Wed, Nov 08, 2017 at 12:51:01PM +0100, Christophe Fergeau wrote: > > It needs the corresponding library to be installed, as well as > > pkg-config since it installs a .pc file. > > --- > > Since the plugins are going to be dlopened, and since the main package > > does not ship a .so we need

Re: [Spice-devel] [spice-streaming-agent 7/7] spec: Add missing Requires for the -devel package

2017-11-08 Thread Daniel P. Berrange
On Wed, Nov 08, 2017 at 12:51:01PM +0100, Christophe Fergeau wrote: > It needs the corresponding library to be installed, as well as > pkg-config since it installs a .pc file. > --- > Since the plugins are going to be dlopened, and since the main package > does not ship a .so we need to link to, I'

[Spice-devel] [PATCH spice-streaming-server 3/3] Do not use an encoding not supported by the client

2017-11-08 Thread Frediano Ziglio
This allows for instance old clients to work correctly. Signed-off-by: Frediano Ziglio --- src/concrete-agent.cpp| 5 - src/concrete-agent.hpp| 2 +- src/spice-streaming-agent.cpp | 6 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/concrete-agent.c

[Spice-devel] [PATCH spice-streaming-server 2/3] Wait to have some client before initialising capture

2017-11-08 Thread Frediano Ziglio
This saves some resources if no client are connected. Also will allow to get a better capture engine taking into account client supported codecs. Signed-off-by: Frediano Ziglio --- src/spice-streaming-agent.cpp | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sr

[Spice-devel] [PATCH spice-streaming-server 1/3] Use defer style destruction instead of old C style and goto

2017-11-08 Thread Frediano Ziglio
This better integrate with exceptions. Also don't leak resources using a return in the middle of the code. Signed-off-by: Frediano Ziglio --- src/Makefile.am | 1 + src/defer.hpp | 16 src/spice-streaming-agent.cpp | 16 3 files ch

Re: [Spice-devel] [spice-streaming-agent 7/7] spec: Add missing Requires for the -devel package

2017-11-08 Thread Uri Lublin
On 11/08/2017 01:51 PM, Christophe Fergeau wrote: It needs the corresponding library to be installed, as well as pkg-config since it installs a .pc file. --- Since the plugins are going to be dlopened, and since the main package does not ship a .so we need to link to, I'm unsure about the first R

Re: [Spice-devel] [spice-streaming-agent 1/6] build: Adjust README

2017-11-08 Thread Frediano Ziglio
Merged the entire series > > Acked-by: Frediano Ziglio > --- > README | 19 +-- > 1 file changed, 5 insertions(+), 14 deletions(-) > > diff --git a/README b/README > index d07c014..7e9a3c7 100644 > --- a/README > +++ b/README > @@ -2,9 +2,11 @@ Introduction > >

[Spice-devel] [PATCH spice-server 2/2] Use constant variables for image operations

2017-11-08 Thread Frediano Ziglio
This reduce the attack surface moving some data into read-only sections. Signed-off-by: Frediano Ziglio --- server/display-channel.c | 2 +- server/image-cache.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/display-channel.c b/server/display-channel.c index e

[Spice-devel] [PATCH spice-server 1/2] build: Update spice-common submodule

2017-11-08 Thread Frediano Ziglio
Frediano Ziglio (6): Make the compiler work out better way to write unaligned memory test-marshallers: Use unaligned structure test-marshallers: Test demarshalling ring: Remove __ring_remove function ring: Remove short living temporary variable canvas_base: Allow

[Spice-devel] [spice-streaming-agent 4/6] build: Generate .xz tarballs rather than bz2

2017-11-08 Thread Christophe Fergeau
Acked-by: Frediano Ziglio --- configure.ac | 2 +- spice-streaming-agent.spec.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a21832b..1d86200 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ AM_CONFIG_HEADER

[Spice-devel] [spice-streaming-agent 2/6] build: Remove AM_MAINTAINER_MODE

2017-11-08 Thread Christophe Fergeau
For once, the default automake behaviour is better than the one this macro adds... See https://blogs.gnome.org/desrt/2011/09/08/am_maintainer_mode-is-not-cool/ for details: « what this macro means is that changes to your Makefile.am will not automatically result in the Makefile being regenerated un

[Spice-devel] [spice-streaming-agent 1/6] build: Adjust README

2017-11-08 Thread Christophe Fergeau
Acked-by: Frediano Ziglio --- README | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/README b/README index d07c014..7e9a3c7 100644 --- a/README +++ b/README @@ -2,9 +2,11 @@ Introduction The SPICE Streaming Agent is a guest-side daemon whi

[Spice-devel] [spice-streaming-agent 5/6] spec: Use %{buildroot} rather than $RPM_BUILD_ROOT

2017-11-08 Thread Christophe Fergeau
This is more consistent with how other RPM macros are used (%{release}, %{version}, ...) --- Changes since v1: - more details in the commit log spice-streaming-agent.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spice-streaming-agent.spec.in b/spice-streaming

[Spice-devel] [spice-streaming-agent 3/6] build: Install .pc file to ${libdir}, not ${sharedir}

2017-11-08 Thread Christophe Fergeau
The .pc file defines a plugin installation location, which will be arch dependent, so the .pc file belongs in this arch ${libdir}, not in the 'noarch' ${sharedir} Acked-by: Frediano Ziglio --- Makefile.am | 2 +- spice-streaming-agent.spec.in | 2 +- 2 files changed, 2 insertio

[Spice-devel] [spice-streaming-agent 6/6] spec: Add missing Requires to the -devel package

2017-11-08 Thread Christophe Fergeau
It needs pkg-config to be installed since it installs a .pc file. --- Changes since v1: - only add pkgconfig Requires spice-streaming-agent.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/spice-streaming-agent.spec.in b/spice-streaming-agent.spec.in index e8c6d54..99b1f52 100644 -

Re: [Spice-devel] [PATCH spice-server] utils: Fill in all possible channel names

2017-11-08 Thread Christophe Fergeau
On Wed, Nov 08, 2017 at 07:25:21AM -0500, Frediano Ziglio wrote: > > > > On Wed, Nov 08, 2017 at 10:31:38AM +0100, Christophe Fergeau wrote: > > > Hey, > > > > > > On Wed, Nov 08, 2017 at 08:20:12AM +, Frediano Ziglio wrote: > > > > Missing some names cause some debugging messages to be > > >

Re: [Spice-devel] [spice-streaming-agent 5/7] spec: Use %autosetup

2017-11-08 Thread Christophe Fergeau
On Wed, Nov 08, 2017 at 07:44:38AM -0500, Frediano Ziglio wrote: > > > > On Wed, Nov 08, 2017 at 07:15:21AM -0500, Frediano Ziglio wrote: > > > > > > > > This makes patch applying easier, no need to duplicate the information > > > > in 2 places, a PatchN entry is enough. > > > > --- > > > > spic

Re: [Spice-devel] [spice-streaming-agent 6/7] spec: Use %{buildroot} rather than $RPM_BUILD_ROOT

2017-11-08 Thread Christophe Fergeau
On Wed, Nov 08, 2017 at 07:07:59AM -0500, Frediano Ziglio wrote: > Why this is better ? I'll add this to the commit log, but I find it more obvious this way that this is an RPM variable, as opposed to something set by the shell. > > > > > --- > > spice-streaming-agent.spec.in | 6 +++--- > >

Re: [Spice-devel] [spice-streaming-agent 3/7] build: Install .pc file to ${libdir}, not ${sharedir}

2017-11-08 Thread Christophe Fergeau
On Wed, Nov 08, 2017 at 07:09:11AM -0500, Frediano Ziglio wrote: > > > > The .pc file defines a plugin installation location, which will be arch > > dependent, so the .pc file belongs in this arch ${libdir}, not in the > > 'noarch' ${sharedir} > > --- > > Makefile.am | 2 +- > >

Re: [Spice-devel] [spice-streaming-agent 5/7] spec: Use %autosetup

2017-11-08 Thread Frediano Ziglio
> > On Wed, Nov 08, 2017 at 07:15:21AM -0500, Frediano Ziglio wrote: > > > > > > This makes patch applying easier, no need to duplicate the information > > > in 2 places, a PatchN entry is enough. > > > --- > > > spice-streaming-agent.spec.in | 3 ++- > > > 1 file changed, 2 insertions(+), 1 del

Re: [Spice-devel] [spice-streaming-agent 5/7] spec: Use %autosetup

2017-11-08 Thread Christophe Fergeau
On Wed, Nov 08, 2017 at 07:15:21AM -0500, Frediano Ziglio wrote: > > > > This makes patch applying easier, no need to duplicate the information > > in 2 places, a PatchN entry is enough. > > --- > > spice-streaming-agent.spec.in | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > >

[Spice-devel] [PATCH spice-common v3] RFC protocol: Allow to specify a surface will be streamed

2017-11-08 Thread Frediano Ziglio
This flag will allow the client to perform some optimisations on output and buffering processing. Old clients will ignore this additional flag. Signed-off-by: Frediano Ziglio --- spice.proto | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) Changes since v2: - more comments o

Re: [Spice-devel] [PATCH spice-server] utils: Fill in all possible channel names

2017-11-08 Thread Frediano Ziglio
> > On Wed, Nov 08, 2017 at 10:31:38AM +0100, Christophe Fergeau wrote: > > Hey, > > > > On Wed, Nov 08, 2017 at 08:20:12AM +, Frediano Ziglio wrote: > > > Missing some names cause some debugging messages to be > > > generated and some of our tests to fail. > > > > Something I wanted to chec

Re: [Spice-devel] [spice-streaming-agent 5/7] spec: Use %autosetup

2017-11-08 Thread Frediano Ziglio
> > This makes patch applying easier, no need to duplicate the information > in 2 places, a PatchN entry is enough. > --- > spice-streaming-agent.spec.in | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/spice-streaming-agent.spec.in b/spice-streaming-agent.spec.in > ind

Re: [Spice-devel] [spice-streaming-agent 6/7] spec: Use %{buildroot} rather than $RPM_BUILD_ROOT

2017-11-08 Thread Frediano Ziglio
Why this is better ? > > --- > spice-streaming-agent.spec.in | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/spice-streaming-agent.spec.in b/spice-streaming-agent.spec.in > index e384951..8c4f26e 100644 > --- a/spice-streaming-agent.spec.in > +++ b/spice-streaming

Re: [Spice-devel] [spice-streaming-agent 7/7] spec: Add missing Requires for the -devel package

2017-11-08 Thread Frediano Ziglio
> > It needs the corresponding library to be installed, as well as > pkg-config since it installs a .pc file. > --- > Since the plugins are going to be dlopened, and since the main package > does not ship a .so we need to link to, I'm unsure about the first > Requires this patch adds. > > Christo

Re: [Spice-devel] [spice-streaming-agent 4/7] build: Generate .xz tarballs rather than bz2

2017-11-08 Thread Frediano Ziglio
> > --- > configure.ac | 2 +- > spice-streaming-agent.spec.in | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index a21832b..1d86200 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -7,7 +7,7 @@ AM_CONFIG_HEADER([co

Re: [Spice-devel] [spice-streaming-agent 3/7] build: Install .pc file to ${libdir}, not ${sharedir}

2017-11-08 Thread Frediano Ziglio
> > The .pc file defines a plugin installation location, which will be arch > dependent, so the .pc file belongs in this arch ${libdir}, not in the > 'noarch' ${sharedir} > --- > Makefile.am | 2 +- > spice-streaming-agent.spec.in | 2 +- > 2 files changed, 2 insertions(+), 2 de

Re: [Spice-devel] [spice-streaming-agent 1/7] build: Adjust README

2017-11-08 Thread Frediano Ziglio
> > --- > README | 19 +-- > 1 file changed, 5 insertions(+), 14 deletions(-) > > diff --git a/README b/README > index d07c014..7e9a3c7 100644 > --- a/README > +++ b/README > @@ -2,9 +2,11 @@ Introduction > > > The SPICE Streaming Agent is a guest-side daemon wh

[Spice-devel] [spice-streaming-agent 5/7] spec: Use %autosetup

2017-11-08 Thread Christophe Fergeau
This makes patch applying easier, no need to duplicate the information in 2 places, a PatchN entry is enough. --- spice-streaming-agent.spec.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spice-streaming-agent.spec.in b/spice-streaming-agent.spec.in index 91e6b88..e384951

[Spice-devel] [spice-streaming-agent 6/7] spec: Use %{buildroot} rather than $RPM_BUILD_ROOT

2017-11-08 Thread Christophe Fergeau
--- spice-streaming-agent.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spice-streaming-agent.spec.in b/spice-streaming-agent.spec.in index e384951..8c4f26e 100644 --- a/spice-streaming-agent.spec.in +++ b/spice-streaming-agent.spec.in @@ -34,9 +34,9 @@ agent pl

[Spice-devel] [spice-streaming-agent 1/7] build: Adjust README

2017-11-08 Thread Christophe Fergeau
--- README | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/README b/README index d07c014..7e9a3c7 100644 --- a/README +++ b/README @@ -2,9 +2,11 @@ Introduction The SPICE Streaming Agent is a guest-side daemon which captures the -guest X.Or

[Spice-devel] [spice-streaming-agent 2/7] build: Remove AM_MAINTAINER_MODE

2017-11-08 Thread Christophe Fergeau
For once, the default automake behaviour is better than the one this macro adds... See https://blogs.gnome.org/desrt/2011/09/08/am_maintainer_mode-is-not-cool/ for details: « what this macro means is that changes to your Makefile.am will not automatically result in the Makefile being regenerated un

[Spice-devel] [spice-streaming-agent 7/7] spec: Add missing Requires for the -devel package

2017-11-08 Thread Christophe Fergeau
It needs the corresponding library to be installed, as well as pkg-config since it installs a .pc file. --- Since the plugins are going to be dlopened, and since the main package does not ship a .so we need to link to, I'm unsure about the first Requires this patch adds. Christophe spice-stream

[Spice-devel] [spice-streaming-agent 4/7] build: Generate .xz tarballs rather than bz2

2017-11-08 Thread Christophe Fergeau
--- configure.ac | 2 +- spice-streaming-agent.spec.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a21832b..1d86200 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ AM_CONFIG_HEADER([config.h]) AC_CONFIG_MAC

[Spice-devel] [spice-streaming-agent 3/7] build: Install .pc file to ${libdir}, not ${sharedir}

2017-11-08 Thread Christophe Fergeau
The .pc file defines a plugin installation location, which will be arch dependent, so the .pc file belongs in this arch ${libdir}, not in the 'noarch' ${sharedir} --- Makefile.am | 2 +- spice-streaming-agent.spec.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [Spice-devel] [PATCH spice-server] utils: Fill in all possible channel names

2017-11-08 Thread Christophe Fergeau
On Wed, Nov 08, 2017 at 10:31:38AM +0100, Christophe Fergeau wrote: > Hey, > > On Wed, Nov 08, 2017 at 08:20:12AM +, Frediano Ziglio wrote: > > Missing some names cause some debugging messages to be > > generated and some of our tests to fail. > > Something I wanted to check before sending th

Re: [Spice-devel] [PATCH spice-streaming-server] Update copyright license to Apache 2

2017-11-08 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Wed, Nov 08, 2017 at 06:04:53AM -0500, Frediano Ziglio wrote: > ping > > > > > Signed-off-by: Frediano Ziglio > > --- > > COPYING | 203 > > +- > > LICENSE | 9 -- > > spice

Re: [Spice-devel] [PATCH spice-streaming-server] Update copyright license to Apache 2

2017-11-08 Thread Frediano Ziglio
ping > > Signed-off-by: Frediano Ziglio > --- > COPYING | 203 > +- > LICENSE | 9 -- > spice-streaming-agent.spec.in | 4 +- > 3 files changed, 204 insertions(+), 12 deletions(-) > delete mode 100644 LICE

Re: [Spice-devel] [PATCH spice-server] utils: Fill in all possible channel names

2017-11-08 Thread Christophe Fergeau
Hey, On Wed, Nov 08, 2017 at 08:20:12AM +, Frediano Ziglio wrote: > Missing some names cause some debugging messages to be > generated and some of our tests to fail. Something I wanted to check before sending this patch is if the commit adding human-readable channel did not cause a small regr

[Spice-devel] [PATCH spice-server] utils: Fill in all possible channel names

2017-11-08 Thread Frediano Ziglio
Missing some names cause some debugging messages to be generated and some of our tests to fail. This patch was written by Christophe Fergeau. Signed-off-by: Frediano Ziglio --- server/utils.c | 2 ++ 1 file changed, 2 insertions(+) Tested with Gitlab, see https://gitlab.com/freddy77/spice/-/jo