Re: [Spice-devel] [PATCH spice-server 2/3] Add support for building with meson

2018-07-20 Thread Eduardo Lima (Etrunko)
On 20/07/18 18:23, Eduardo Lima (Etrunko) wrote: > Signed-off-by: Eduardo Lima (Etrunko) > --- > Makefile.am | 2 + > build-aux/meson/check_spice-common.sh | 2 + > docs/Makefile.am | 1 + > docs/manual/Makefile.am | 1 + > docs

Re: [Spice-devel] [PATCH spice-server 1/3] build: Move spice-common to subprojects/ directory

2018-07-20 Thread Eduardo Lima (Etrunko)
On 20/07/18 18:23, Eduardo Lima (Etrunko) wrote: > The reason for this commit is that Meson expects all submodules to be > placed in this subdirectory, and since autotools build is more flexible > in this case, we make some small adjustments to configure.ac and > Makefile.am files to accommodate fo

[Spice-devel] [PATCH spice-server 0/3] Add support for building with meson/ninja

2018-07-20 Thread Eduardo Lima (Etrunko)
Many things have changed since the last version of this series. More importantly, we already have the meson build merged in spice-common and decided to not reuse the checks that are done in the subproject here, but replicate those blocks here as meson does not support any other way of reusing the s

[Spice-devel] [PATCH spice-server 3/3] Update gitlab-ci to use meson

2018-07-20 Thread Eduardo Lima (Etrunko)
Signed-off-by: Eduardo Lima (Etrunko) --- .gitlab-ci.yml | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 50fb7a15..44dc26d3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ before_script:

[Spice-devel] [PATCH spice-server 1/3] build: Move spice-common to subprojects/ directory

2018-07-20 Thread Eduardo Lima (Etrunko)
The reason for this commit is that Meson expects all submodules to be placed in this subdirectory, and since autotools build is more flexible in this case, we make some small adjustments to configure.ac and Makefile.am files to accommodate for this change. Signed-off-by: Eduardo Lima (Etrunko) --

[Spice-devel] [PATCH spice-server 2/3] Add support for building with meson

2018-07-20 Thread Eduardo Lima (Etrunko)
Signed-off-by: Eduardo Lima (Etrunko) --- Makefile.am | 2 + build-aux/meson/check_spice-common.sh | 2 + docs/Makefile.am | 1 + docs/manual/Makefile.am | 1 + docs/manual/meson.build | 18 docs/meson.build

[Spice-devel] [spice-gtk v2 1/4] build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Victor Toso
From: Victor Toso Fedora 28: 3.22.30 Fedora 27: 3.22.26 Fedora 26: 3.22.21 RHEL 7.6: 3.22.30 RHEL 7.5: 3.22.26 RHEL 7.4: 3.22.10 Debian 10: 3.22.30 Debian 9: 3.22.11 Ubuntu 18.04: 3.22.30 Ubuntu 17.10: 3.22.24 Besides cleanup the code, gtk is under heavy development to better work under Wayland

Re: [Spice-devel] [PATCH spice-gtk 2/4] fixup! build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Victor Toso
Hi, On Fri, Jul 20, 2018 at 06:17:10PM +0100, Frediano Ziglio wrote: > Remove G_GNUC_BEGIN_IGNORE_DEPRECATIONS/G_GNUC_END_IGNORE_DEPRECATIONS > for too new APIs that are available on 3.22 Looks fine, applied in top of my series. I don't agree with it being a fixup but an extra patch as it has a w

Re: [Spice-devel] [PATCH spice-gtk 1/4] fixup! build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Victor Toso
Hi, On Fri, Jul 20, 2018 at 06:17:09PM +0100, Frediano Ziglio wrote: > Remove check for gdk_event_get_scancode presence, included in 3.22 Agree with fixup, I'll ammend your patch and send a v2 of the bump patch, many thanks! Cheers, > --- > configure.ac | 12 > src/spice-wi

Re: [Spice-devel] [spice-gtk 4/4] gtk-deprecated: Avoid gdk_screen_get_width/height()

2018-07-20 Thread Victor Toso
Hi, On Fri, Jul 20, 2018 at 01:26:24PM -0400, Frediano Ziglio wrote: > > > > From: Victor Toso > > > > As those were deprecated in favor of fetching for information directly > > with GdkMonitor. > > > > Warnings fixed: > > | spice-widget.c: In function ‘mouse_wrap’: > > | spice-widget.c:1136

[Spice-devel] [spice-gtk v2 4/4] gtk-deprecated: Avoid gdk_screen_get_width/height()

2018-07-20 Thread Victor Toso
From: Victor Toso As those were deprecated in favor of fetching for information directly with GdkMonitor. Warnings fixed: | spice-widget.c: In function ‘mouse_wrap’: | spice-widget.c:1136:5: warning: ‘gdk_screen_get_width’ is deprecated | | xr = gdk_screen_get_width(screen) / 2; | ^

Re: [Spice-devel] [PATCH spice-server 5/5] test-stream-device: Check data are sent together

2018-07-20 Thread Eduardo Lima (Etrunko)
On 20/07/18 16:58, Frediano Ziglio wrote: >> >> On 13/07/18 16:33, Frediano Ziglio wrote: >>> Check that data sent to device are collapsed in a single message. >>> The StreamChannel object is mocked in the test. >>> This checks that commit dcc3f995d9f5575e319adcfe530c477a7c294ff3 >>> ("stream-devic

Re: [Spice-devel] [PATCH spice-server 5/5] test-stream-device: Check data are sent together

2018-07-20 Thread Frediano Ziglio
> > On 13/07/18 16:33, Frediano Ziglio wrote: > > Check that data sent to device are collapsed in a single message. > > The StreamChannel object is mocked in the test. > > This checks that commit dcc3f995d9f5575e319adcfe530c477a7c294ff3 > > ("stream-device: handle_data: send whole message") is doi

Re: [Spice-devel] [PATCH spice-server 5/5] test-stream-device: Check data are sent together

2018-07-20 Thread Eduardo Lima (Etrunko)
On 13/07/18 16:33, Frediano Ziglio wrote: > Check that data sent to device are collapsed in a single message. > The StreamChannel object is mocked in the test. > This checks that commit dcc3f995d9f5575e319adcfe530c477a7c294ff3 > ("stream-device: handle_data: send whole message") is doing the > righ

[Spice-devel] [PATCH] meson: Make options accessible through parent project

2018-07-20 Thread Eduardo Lima (Etrunko)
When building either spice-server or spice-gtk, spice-common should inherit the command line options from the parent project. This is done by adding the 'yield' keyword for the opus and celt051 options. It is also required to add a smartcard option so that we can bypass the checks if the user want

Re: [Spice-devel] [spice-gtk 4/4] gtk-deprecated: Avoid gdk_screen_get_width/height()

2018-07-20 Thread Frediano Ziglio
> > From: Victor Toso > > As those were deprecated in favor of fetching for information directly > with GdkMonitor. > > Warnings fixed: > | spice-widget.c: In function ‘mouse_wrap’: > | spice-widget.c:1136:5: warning: ‘gdk_screen_get_width’ is deprecated > | > | xr = gdk_screen_get_widt

[Spice-devel] [PATCH spice-gtk 2/4] fixup! build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Frediano Ziglio
Remove G_GNUC_BEGIN_IGNORE_DEPRECATIONS/G_GNUC_END_IGNORE_DEPRECATIONS for too new APIs that are available on 3.22 --- src/channel-webdav.c | 6 -- src/giopipe.c | 2 -- src/spice-widget-egl.c | 3 --- src/spice-widget.c | 17 - 4 files changed, 28 deletions(-

[Spice-devel] [PATCH spice-gtk 4/4] fixup! build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Frediano Ziglio
Add needed G_GNUC_BEGIN_IGNORE_DEPRECATIONS/G_GNUC_END_IGNORE_DEPRECATIONS for gtk_widget_set_double_buffered, looking at documentation maybe gtk_widget_set_double_buffered calls should be removed --- src/spice-widget.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/spice-widget.c

[Spice-devel] [PATCH spice-gtk 3/4] fixup! build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Frediano Ziglio
Add needed G_GNUC_BEGIN_IGNORE_DEPRECATIONS/G_GNUC_END_IGNORE_DEPRECATIONS for 3.22 --- src/spice-gtk-session.c | 3 +++ src/spice-widget.c | 4 2 files changed, 7 insertions(+) diff --git a/src/spice-gtk-session.c b/src/spice-gtk-session.c index 3d8973e1..6bca923b 100644 --- a/src/spi

[Spice-devel] [PATCH spice-gtk 1/4] fixup! build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Frediano Ziglio
Remove check for gdk_event_get_scancode presence, included in 3.22 --- configure.ac | 12 src/spice-widget.c | 10 +- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/configure.ac b/configure.ac index 2d90b7bc..6ddfa4b8 100644 --- a/configure.ac +++ b/confi

[Spice-devel] [spice-gtk 1/4] build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Victor Toso
From: Victor Toso Fedora 28: 3.22.30 Fedora 27: 3.22.26 Fedora 26: 3.22.21 RHEL 7.6: 3.22.30 RHEL 7.5: 3.22.26 RHEL 7.4: 3.22.10 Debian 10: 3.22.30 Debian 9: 3.22.11 Ubuntu 18.04: 3.22.30 Ubuntu 17.10: 3.22.24 Besides cleanup the code, gtk is under heavy development to better work under Wayland

[Spice-devel] [spice-gtk 3/4] gtk-deprecated: silence warn on gtk_widget_set_double_buffered()

2018-07-20 Thread Victor Toso
From: Victor Toso To quote documentation: | gtk_widget_set_double_buffered has been deprecated since version | 3.14 and should not be used in newly-written code. | This function does not work under non-X11 backends or with | non-native windows. It should not be used in newly written code. So

[Spice-devel] [spice-gtk 2/4] gtk-deprecated: Use gdk_keymap_get_for_display()

2018-07-20 Thread Victor Toso
From: Victor Toso As gdk_keymap_get_default() was deprecated in 3.22 Warnings fixed: | vncdisplaykeymap.c: In function ‘vnc_display_keyval_set_entries’: | vncdisplaykeymap.c:263:4: warning: ‘gdk_keymap_get_default’ is | deprecated: Use 'gdk_keymap_get_for_display' instead | | gdk_keymap

[Spice-devel] [spice-gtk 4/4] gtk-deprecated: Avoid gdk_screen_get_width/height()

2018-07-20 Thread Victor Toso
From: Victor Toso As those were deprecated in favor of fetching for information directly with GdkMonitor. Warnings fixed: | spice-widget.c: In function ‘mouse_wrap’: | spice-widget.c:1136:5: warning: ‘gdk_screen_get_width’ is deprecated | | xr = gdk_screen_get_width(screen) / 2; | ^

[Spice-devel] [spice-gtk 0/4] gtk bump and silence some deprecation warns

2018-07-20 Thread Victor Toso
From: Victor Toso The only deprecation warning that I see is on usb-device-widget.c around GtkAligment that had all API's deprecated in 3.14. I'll fix that at a later time. Included Ubuntu LTS version in the first patch and included my comment in the commit too, see thread [0] [0] https://lists

Re: [Spice-devel] [spice-gtk] build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Victor Toso
Hi, On Fri, Jul 20, 2018 at 09:20:59AM -0400, Frediano Ziglio wrote: > > > > From: Victor Toso > > > > Fedora 28: 3.22.30 > > Fedora 27: 3.22.26 > > Fedora 26: 3.22.21 > > RHEL 7.6: 3.22.30 > > RHEL 7.5: 3.22.26 > > RHEL 7.4: 3.22.10 > > Debian 10: 3.22.30 > > Debian 9: 3.22.11 > > > > Signed

Re: [Spice-devel] [spice-gtk] build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Frediano Ziglio
> > From: Victor Toso > > Fedora 28: 3.22.30 > Fedora 27: 3.22.26 > Fedora 26: 3.22.21 > RHEL 7.6: 3.22.30 > RHEL 7.5: 3.22.26 > RHEL 7.4: 3.22.10 > Debian 10: 3.22.30 > Debian 9: 3.22.11 > > Signed-off-by: Victor Toso Last Ubuntu LTS (18.04) is happy too (3.22.30) Any other reason you want

[Spice-devel] [spice-gtk] build-sys: bump gtk requirement 3.12 -> 3.22

2018-07-20 Thread Victor Toso
From: Victor Toso Fedora 28: 3.22.30 Fedora 27: 3.22.26 Fedora 26: 3.22.21 RHEL 7.6: 3.22.30 RHEL 7.5: 3.22.26 RHEL 7.4: 3.22.10 Debian 10: 3.22.30 Debian 9: 3.22.11 Signed-off-by: Victor Toso --- configure.ac| 4 +-- src/spice-gtk-session.c | 38 - src/sp

Re: [Spice-devel] [spice-server v2] dcc: Rework COMPRESS_DEBUG macro

2018-07-20 Thread Christophe Fergeau
On Fri, Jul 20, 2018 at 06:03:03AM -0400, Frediano Ziglio wrote: > > > > Rather than using > > #ifdef COMPRESS_DEBUG > >spice_info(...); > > #endif > > > > we can #define COMPRESS_DEBUG to spice_debug() or to do nothing for a > > slight readability improvement. This opportunity is used to r

Re: [Spice-devel] [spice-server v2 1/3] dcc: Fix QUIC fallback in get_compression_for_bitmap()

2018-07-20 Thread Frediano Ziglio
> > There was a small regression introduced in get_compression_for_bitmap() > by f401eb07f dcc: Rewrite dcc_image_compress. > If SPICE_IMAGE_COMPRESSION_AUTO_GLZ is specified, and the bitmap has a > stride which is bigger than its width (ie it has padding), then > get_compression_for_bitmap() will

Re: [Spice-devel] [spice-server v2] dcc: Rework COMPRESS_DEBUG macro

2018-07-20 Thread Frediano Ziglio
> > Rather than using > #ifdef COMPRESS_DEBUG >spice_info(...); > #endif > > we can #define COMPRESS_DEBUG to spice_debug() or to do nothing for a > slight readability improvement. This opportunity is used to replace > these spice_info() calls with g_debug(). The "do nothing" macro is a bit

[Spice-devel] [spice-server v2] dcc: Rework COMPRESS_DEBUG macro

2018-07-20 Thread Christophe Fergeau
Rather than using #ifdef COMPRESS_DEBUG spice_info(...); #endif we can #define COMPRESS_DEBUG to spice_debug() or to do nothing for a slight readability improvement. This opportunity is used to replace these spice_info() calls with g_debug(). The "do nothing" macro is a bit convoluted to ensu

[Spice-devel] [spice-gtk] cache: Fix OOM due bad refcount of image

2018-07-20 Thread Victor Toso
From: 乐义华 The image in cache was not being freed properly leading the client to crash with OOM after sometime. When image flag is SPICE_IMAGE_FLAGS_CACHE_REPLACE_ME, and if found it in hash table, we will increase the refcount but this image will only be destroyed, so the cache will usage more a

Re: [Spice-devel] [spice-server v2 1/3] dcc: Fix QUIC fallback in get_compression_for_bitmap()

2018-07-20 Thread Christophe Fergeau
On Fri, Jul 20, 2018 at 11:46:38AM +0200, Christophe Fergeau wrote: > Slight screwup on my side, this is a single patch, not a series of 3 > patches as the email subject says. Ah and actually this is not even the patch I meant to send /o\ Sorry for the noise Christophe signature.asc Description

Re: [Spice-devel] [spice-server v2 1/3] dcc: Fix QUIC fallback in get_compression_for_bitmap()

2018-07-20 Thread Christophe Fergeau
Slight screwup on my side, this is a single patch, not a series of 3 patches as the email subject says. Christophe On Fri, Jul 20, 2018 at 11:44:51AM +0200, Christophe Fergeau wrote: > There was a small regression introduced in get_compression_for_bitmap() > by f401eb07f dcc: Rewrite dcc_image_co

[Spice-devel] [spice-server v2 1/3] dcc: Fix QUIC fallback in get_compression_for_bitmap()

2018-07-20 Thread Christophe Fergeau
There was a small regression introduced in get_compression_for_bitmap() by f401eb07f dcc: Rewrite dcc_image_compress. If SPICE_IMAGE_COMPRESSION_AUTO_GLZ is specified, and the bitmap has a stride which is bigger than its width (ie it has padding), then get_compression_for_bitmap() will return SPICE