Commit Graph

197 Commits

Author SHA1 Message Date
Christophe Fergeau
40ca6c29c7 spice-server 0.14.0 release 2017-10-11 10:36:34 +02:00
Christophe Fergeau
13c0dcf4a3 build: Prepare for 0.13.91 release
Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-09-25 15:08:35 +02:00
Frediano Ziglio
6517ea5cbb test-display-base: Always compile with AUTOMATED_TESTS enabled
There's no need to not compile this feature, it just enable
a parameters which must be passed in order to change test
behaviour.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-09-07 08:54:18 +01:00
Frediano Ziglio
e6cf0dd056 build-sys: Fix syntax-check
This error was reported

configure.ac:119:if test "x$have_gstreamer_0_10" = "xyes" -o "x$have_gstreamer_1_0" = "xyes"; then
maint.mk: use "test C1 && test C2", not "test C1 -a C2"; use "test C1 || test C2", not "test C1 -o C2"

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2017-09-01 22:04:44 +01:00
Frediano Ziglio
14aee7cd74 gstreamer: Check if ORC library can work
ORC library is used internally by GStreamer to generate code
dynamically.
If ORC cannot allocate executable memory, the failure causes
an abort(3) to be called.
This happens on some SELinux configurations that disable executable
memory allocation (execmem boolean).
Check that ORC could work before attempting to use GStreamer to
avoid crashes.
While this check is done, the ORC library outputs an error which will
be well visible in Qemu output.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-08-30 15:59:46 +01:00
Frediano Ziglio
8cdea23d1d display-channel: Check that all structure are destroyed during finalize
The leak detector we use currently is not enough to detect
some kind of leak in DisplayChannel so manually test.
These tests are enabled only when --enable-extra-checks is passed
to configure.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2017-08-25 09:37:17 +01:00
Christophe Fergeau
34dff543be Prepare for 0.13.90 release
Update NEWS and soname.
2017-07-26 17:04:36 +02:00
Christophe Fergeau
fa85fbf880 build-sys: Improve portability of appending to COMMON_CFLAGS
This is currently done through += in configure.ac, this commit switches
to using COMMON_CFLAGS="$COMMON_CFLAGS ..." for better portability.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-07-07 17:03:56 +02:00
Pavel Grunt
06c85b5f04 configure: Check for vp9enc presence
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-04-21 11:16:33 +01:00
Christophe Fergeau
27a9450d07 build-sys: Add configure check for TCP_KEEPIDLE
This is only available in newer FreeBSD releases (9.1 and later), and
will cause build errors or older versions

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=99213

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-03-31 12:22:52 +02:00
Frediano Ziglio
76b7f943e4 Some automatic check on video encoders
Stress a bit video encoders.
This check different combination of
- encoder type;
- image formats;
- image clipping (encoding partial frames);
- handling frames split into chunks.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2017-03-23 12:52:58 +00:00
Frediano Ziglio
c9df62d89f build-sys: Add option to enable additional checks
This to enable extra test.
This option is used also in different projects.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2017-03-23 12:52:52 +00:00
Christophe Fergeau
844544f8be build-sys: Add make check-valgrind target
This allows to run automatically our test-suite with valgrind to test
for memory leaks.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-03-21 16:34:56 +01:00
Snir Sheriber
c9987b0fd5 autotools: Add automake conditional for gstreamer
Adding conditional for having gstreamer_0_10 or gstreamer_1_0,
removing the previous conditionals and update relevant ifdefs
with the newly defined conditional
2017-02-03 09:08:55 +01:00
Frediano Ziglio
0d14f96daa Support VP9 encoder using GStreamer
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2017-01-31 09:00:06 +00:00
Pavel Grunt
c1103b76fa build-sys: Warn on usage of unavailable glib functions
Warnings are printed when glib2 >= 2.32 is present

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-01-24 21:50:38 +00:00
Frediano Ziglio
a0bd1bfbd3 build: Optimise headers check
Check multiple headers using a single m4 macro.
The resulting script is reduced.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-12-12 11:45:07 +00:00
Pavel Grunt
f934fdc3fd build-sys: Require GLIB 2.28
We are already using it

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-12-06 13:24:07 +00:00
Pavel Grunt
60e702fe13 build-sys: Use variables instead of numbers for library versions
Allow to easily change library versions.

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-12-06 13:23:08 +00:00
Pavel Grunt
06cb7378ad build-sys: Add configure option to enable statistics
Follow up to 5fba8dd1a3
to make it easier to enable them

Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-11-29 09:39:37 +00:00
Christophe Fergeau
44645cde92 build: Update SPICE_REVISION for new release
No ABI addition/removal/... so no need to change anything else.
2016-11-21 14:40:47 +01:00
Pavel Grunt
720f0d0a59 Define G_LOG_DOMAIN
Otherwise messages produced by g_{warn, return, ...} are not prefixed
like the spice_ variants.

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-11-17 09:01:23 +00:00
Frediano Ziglio
a0fcf4975b Add reds_stat to compiled software
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-10-19 07:13:59 +01:00
Frediano Ziglio
5193360594 Convert RedChannelClient hierarchy to GObject
Convert the RedChannelClient heirarchy into GObjects. Since the existing
constructors could fail and return NULL, I inherited the base channel
client from GInitable, which introduces a dependency on gio.

When using private structs with GObject, there's a maximum size of (I
think) 64k, which was exceeded by some of the private structs. To avoid
this limitation I changed some members to dynamically allocated.
2016-10-07 14:46:37 -05:00
Christophe Fergeau
2a2a3585e6 build: Update libtool versioning for 0.13.2 2016-08-04 17:12:53 +02:00
Frediano Ziglio
3b2fd86e8a Constify spice_server_char_device_recognized_subtypes
Users should not change the list of supported subtypes.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-06-29 08:09:03 +01:00
Eduardo Lima (Etrunko)
ed429a618e Use correct variable to print if LZ4 support is to be built.
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2016-06-16 11:15:02 -03:00
Eduardo Lima (Etrunko)
bcfd265bcd configure: Better wording hasn't -> has not
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-06-15 19:00:27 -03:00
Francois Gouget
0503cd3d61 streaming: Add support for GStreamer 0.10
configure will use GStreamer 1.0 if present and fall back to
GStreamer 0.10 otherwise.
ffenc_mjpeg takes its bitrate as a long so extend set_gstenc_bitrate().

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2016-06-14 17:04:40 +02:00
Francois Gouget
a21ec4e251 streaming: Add h264 support to the GStreamer video encoder
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2016-06-14 17:04:40 +02:00
Francois Gouget
6dc0dadf8d streaming: Add VP8 support to the GStreamer video encoder
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2016-06-14 17:04:40 +02:00
Francois Gouget
a697bd971b streaming: Add a GStreamer 1.0 MJPEG video encoder and use it by default
This introduces a pared down GStreamer-based video encoder to serve as
the basis for later enhancements.
In this form the new encoder supports both regular and sized streams
but lacks any rate control. It should still work fine if bandwidth is
sufficient such as on LANs.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2016-06-14 17:04:40 +02:00
snir sheriber
903c91cd30 LZ4 compression is now available at the Spicevmc channel
Compressed message type is CompressedData which contains compression
type (1 byte) followed by the uncompressed data size (4 bytes - exists
only if data was compressed) followed by the compressed data

If SPICE_USBREDIR_CAP_DATA_COMPRESS_LZ4 capability is available &&
data_size > COMPRESS_THRESHOLD && !AF_LOCAL data will be sent
compressed otherwise data will be sent uncompressed (also if
compression has failed)

Update the required protocol to 0.12.12

Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-06-13 23:12:59 +01:00
Frediano Ziglio
448f037a3c style: use capital case for C language
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 12:54:09 +01:00
Christophe Fergeau
15dbc2da7a build-sys: Remove 'CXX' from configure summary
We no longer make use of a c++ compiler since dropping the client, so
no need to show it in the configure summary.
2016-05-10 15:38:33 +02:00
Christophe Fergeau
ad00538254 build-sys: Drop unneeded python check
spice-server does not use python, the spice-common submodule needs it, but
it has its own python check through the use of AM_PATH_PYTHON
2016-05-10 15:38:33 +02:00
Frediano Ziglio
4db15f9e32 fix "spice--gtk" typo in configure.ac
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-05-10 14:16:53 +01:00
Christophe Fergeau
281eeed189 build-sys: Update libtool versioning for 0.13.1 2016-04-01 15:16:27 +02:00
Frediano Ziglio
c51f1126eb build-sys: use safer SPICE_CONTAINEROF version
Enable additional checks for this macro.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-03-23 13:44:22 +00:00
Michal Privoznik
97acfd6f3e configure: Require spice-protocol-0.12.11 at least
After 7a06efde we require SPICE_MSG_DISPLAY_GL_SCANOUT_UNIX
symbol from spice-protocol (or value to be more precise). This
has been however introduced in version 0.12.11 of the
spice-protocol (commit 3fc2221e there). However, our configure
check does not reflect this change. Fix it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-02-25 09:12:35 +00:00
Jonathon Jongsma
1438b7ccf2 Add GObject to build requirements
Preparation for GObject-ifying some internals

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-02-16 11:22:04 +00:00
Pavel Grunt
2db3868864 build-sys: Use sasl check from spice-common
Support only libsasl2 providing libsasl2.pc file

Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2015-12-21 13:40:19 +01:00
Christophe Fergeau
bc1adb5ccf build: Remove unused SPICEC_STATIC_LINKAGE_BSTATIC
A left-over from the client code.
2015-12-16 14:44:09 +01:00
Marc-André Lureau
5d8350f7d7 build-sys: disable static lib by default
It's not used in general, so no need to build it by default.

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-12-11 11:22:00 +00:00
Francois Gouget
9b42aafe31 server: Rename SUPPORT_AUTOMATED_TESTS to HAVE_AUTOMATED_TESTS
This improves consistency with spice-deps.m4 which names its
AM_CONDITIONAL() variables HAVE_XXX.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-12-08 15:39:11 +01:00
Marc-André Lureau
c5c176a5c7 server: remove OpenGL
This is really not supported, requires X11, so better to remove it for
now. Some day it might be revived, using DRM, ..

Note for later, this could be removed too (not used by client):
- spice-common/common/ogl_ctx

Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-21 13:50:46 +00:00
Francois Gouget
f6106afa4f build-sys: Use SPICE_WARNING() to issue the architecture warning
Note that spice-deps.m4 now provides the AS_VAR_APPEND() fallback.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-11-16 16:33:58 +01:00
Francois Gouget
6e12003bde build-sys: Use AC_MSG_NOTICE()
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-13 17:11:04 +00:00
Christophe Fergeau
d88b1fee74 build-sys: Adjust to new spice-common spice-deps.m4
This commit also updates the spice-common submodule

Christophe Fergeau (7):
      Add marshaller test case
      build-sys: Use ${PKG_CONFIG} rather than pkg-config
      build-sys: Rework SPICE_CHECK_* m4 macros
      build-sys: Add gio-2.0 to SPICE_CHECK_GLIB2
      build-sys: Fix error in SPICE_CHECK_LZ4 description
      build-sys: Set automake conditional in SPICE_CHECK_SMARTCARD
      build-sys: Rename SUPPORT_GL to HAVE_GL

Javier Celaya (1):
      Fix linearization of several marshallers with one item

Lukas Venhoda (3):
      ssl-verify: Only check addr length when using IP addr
      m4: Require glib version >= 2.22
      ssl-verify: Changed IPv4 hostname to IPv6
2015-10-23 14:35:14 +02:00
Christophe Fergeau
5d0649b8f0 build-sys: Remove client check from configure.ac
configure.ac is checking for pyparsing availability if
client/generated_marshallers.cpp is missing. The client/ code is gone, and
the python modules checks are done in spice-common/configure.ac
nowadays, so we can get rid of this check.
2015-10-07 18:26:00 +02:00