Hello community,
here is the log from the commit of package spice-protocol for openSUSE:Factory checked in at 2018-07-04 23:51:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/spice-protocol (Old)
and /work/SRC/openSUSE:Factory/.spice-protocol.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "spice-protocol"
Wed Jul 4 23:51:12 2018 rev:23 rq:619391 version:0.12.14
Changes:
--------
--- /work/SRC/openSUSE:Factory/spice-protocol/spice-protocol.changes 2017-09-04 12:26:26.810824184 +0200
+++ /work/SRC/openSUSE:Factory/.spice-protocol.new/spice-protocol.changes 2018-07-04 23:51:16.888147167 +0200
@@ -1,0 +2,10 @@
+Wed Jun 20 00:20:12 UTC 2018 - luc14n0@linuxmail.org
+
+- Update to version 0.12.14:
+ + Add: stream-device protocol; SPICE_SURFACE_FLAGS_STREAMING_MODE
+ flag; e2k (Elbrus 2000) architecture and SPICE_MAX_NUM_STREAMS.
+- Replace autoconf and automake BuildRequires with meson, and
+ configure/make (install) with meson/meson_build/meson_install
+ macros to follow upstream changes.
+
+-------------------------------------------------------------------
Old:
----
spice-protocol-0.12.13.tar.bz2
New:
----
spice-protocol-0.12.14.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ spice-protocol.spec ++++++
--- /var/tmp/diff_new_pack.7PAvaf/_old 2018-07-04 23:51:17.644146332 +0200
+++ /var/tmp/diff_new_pack.7PAvaf/_new 2018-07-04 23:51:17.648146327 +0200
@@ -1,7 +1,7 @@
#
# spec file for package spice-protocol
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,20 +17,18 @@
Name: spice-protocol
-Version: 0.12.13
+Version: 0.12.14
Release: 0
-Url: http://www.spice-space.org/
Summary: SPICE-protocol definitions
License: BSD-3-Clause
Group: Development/Languages/C and C++
-BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: autoconf
-BuildRequires: automake
+URL: https://www.spice-space.org/
+Source: https://www.spice-space.org/download/releases/%{name}-%{version}.tar.bz2
+BuildRequires: meson
BuildRequires: pkgconfig
Requires: python-pyparsing
Requires: python-six
-Source: https://www.spice-space.org/download/releases/%{name}-%{version}.tar.bz2
+BuildArch: noarch
%description
Headers defining the SPICE-protocol
@@ -46,17 +44,15 @@
%setup -q
%build
-mkdir -vp m4
-autoreconf -fi
-%configure
-%__make %{?_smp_mflags}
+%meson
+%meson_build
%install
-make DESTDIR=%{buildroot} install
+%meson_install
%files devel
-%defattr(-,root,root)
-%doc COPYING NEWS
+%license COPYING
+%doc NEWS
%{_datadir}/pkgconfig/spice-protocol.pc
%{_includedir}/spice-1/
++++++ spice-protocol-0.12.13.tar.bz2 -> spice-protocol-0.12.14.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/INSTALL new/spice-protocol-0.12.14/INSTALL
--- old/spice-protocol-0.12.13/INSTALL 2017-02-20 10:35:28.000000000 +0100
+++ new/spice-protocol-0.12.14/INSTALL 2018-06-01 10:10:31.000000000 +0200
@@ -1,8 +1,8 @@
Installation Instructions
*************************
-Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
-Inc.
+ Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
+Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
@@ -12,97 +12,96 @@
Basic Installation
==================
- Briefly, the shell command `./configure && make && make install'
+ Briefly, the shell command './configure && make && make install'
should configure, build, and install this package. The following
-more-detailed instructions are generic; see the `README' file for
+more-detailed instructions are generic; see the 'README' file for
instructions specific to this package. Some packages provide this
-`INSTALL' file but do not implement all of the features documented
+'INSTALL' file but do not implement all of the features documented
below. The lack of an optional feature in a given package is not
necessarily a bug. More recommendations for GNU packages can be found
in *note Makefile Conventions: (standards)Makefile Conventions.
- The `configure' shell script attempts to guess correct values for
+ The 'configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions. Finally, it creates a shell script `config.status' that
+those values to create a 'Makefile' in each directory of the package.
+It may also create one or more '.h' files containing system-dependent
+definitions. Finally, it creates a shell script 'config.status' that
you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
+file 'config.log' containing compiler output (useful mainly for
+debugging 'configure').
- It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring. Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.
+ It can also use an optional file (typically called 'config.cache' and
+enabled with '--cache-file=config.cache' or simply '-C') that saves the
+results of its tests to speed up reconfiguring. Caching is disabled by
+default to prevent problems with accidental use of stale cache files.
If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
+to figure out how 'configure' could check whether to do them, and mail
+diffs or instructions to the address given in the 'README' so they can
be considered for the next release. If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
+some point 'config.cache' contains results you don't want to keep, you
may remove or edit it.
- The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'. You need `configure.ac' if
-you want to change it or regenerate `configure' using a newer version
-of `autoconf'.
+ The file 'configure.ac' (or 'configure.in') is used to create
+'configure' by a program called 'autoconf'. You need 'configure.ac' if
+you want to change it or regenerate 'configure' using a newer version of
+'autoconf'.
The simplest way to compile this package is:
- 1. `cd' to the directory containing the package's source code and type
- `./configure' to configure the package for your system.
+ 1. 'cd' to the directory containing the package's source code and type
+ './configure' to configure the package for your system.
- Running `configure' might take a while. While running, it prints
+ Running 'configure' might take a while. While running, it prints
some messages telling which features it is checking for.
- 2. Type `make' to compile the package.
+ 2. Type 'make' to compile the package.
- 3. Optionally, type `make check' to run any self-tests that come with
+ 3. Optionally, type 'make check' to run any self-tests that come with
the package, generally using the just-built uninstalled binaries.
- 4. Type `make install' to install the programs and any data files and
+ 4. Type 'make install' to install the programs and any data files and
documentation. When installing into a prefix owned by root, it is
recommended that the package be configured and built as a regular
- user, and only the `make install' phase executed with root
+ user, and only the 'make install' phase executed with root
privileges.
- 5. Optionally, type `make installcheck' to repeat any self-tests, but
+ 5. Optionally, type 'make installcheck' to repeat any self-tests, but
this time using the binaries in their final installed location.
This target does not install anything. Running this target as a
- regular user, particularly if the prior `make install' required
+ regular user, particularly if the prior 'make install' required
root privileges, verifies that the installation completed
correctly.
6. You can remove the program binaries and object files from the
- source code directory by typing `make clean'. To also remove the
- files that `configure' created (so you can compile the package for
- a different kind of computer), type `make distclean'. There is
- also a `make maintainer-clean' target, but that is intended mainly
+ source code directory by typing 'make clean'. To also remove the
+ files that 'configure' created (so you can compile the package for
+ a different kind of computer), type 'make distclean'. There is
+ also a 'make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
- 7. Often, you can also type `make uninstall' to remove the installed
+ 7. Often, you can also type 'make uninstall' to remove the installed
files again. In practice, not all packages have tested that
uninstallation works correctly, even though it is required by the
GNU Coding Standards.
- 8. Some packages, particularly those that use Automake, provide `make
+ 8. Some packages, particularly those that use Automake, provide 'make
distcheck', which can by used by developers to test that all other
- targets like `make install' and `make uninstall' work correctly.
+ targets like 'make install' and 'make uninstall' work correctly.
This target is generally not run by end users.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
-the `configure' script does not know about. Run `./configure --help'
+the 'configure' script does not know about. Run './configure --help'
for details on some of the pertinent environment variables.
- You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment. Here
-is an example:
+ You can give 'configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here is
+an example:
./configure CC=c99 CFLAGS=-g LIBS=-lposix
@@ -113,21 +112,21 @@
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
-own directory. To do this, you can use GNU `make'. `cd' to the
+own directory. To do this, you can use GNU 'make'. 'cd' to the
directory where you want the object files and executables to go and run
-the `configure' script. `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'. This
-is known as a "VPATH" build.
+the 'configure' script. 'configure' automatically checks for the source
+code in the directory that 'configure' is in and in '..'. This is known
+as a "VPATH" build.
- With a non-GNU `make', it is safer to compile the package for one
+ With a non-GNU 'make', it is safer to compile the package for one
architecture at a time in the source code directory. After you have
-installed the package for one architecture, use `make distclean' before
+installed the package for one architecture, use 'make distclean' before
reconfiguring for another architecture.
On MacOS X 10.5 and later systems, you can create libraries and
executables that work on multiple system types--known as "fat" or
-"universal" binaries--by specifying multiple `-arch' options to the
-compiler but only a single `-arch' option to the preprocessor. Like
+"universal" binaries--by specifying multiple '-arch' options to the
+compiler but only a single '-arch' option to the preprocessor. Like
this:
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
@@ -136,105 +135,104 @@
This is not guaranteed to produce working output in all cases, you
may have to build one architecture at a time and combine the results
-using the `lipo' tool if you have problems.
+using the 'lipo' tool if you have problems.
Installation Names
==================
- By default, `make install' installs the package's commands under
-`/usr/local/bin', include files under `/usr/local/include', etc. You
-can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX', where PREFIX must be an
+ By default, 'make install' installs the package's commands under
+'/usr/local/bin', include files under '/usr/local/include', etc. You
+can specify an installation prefix other than '/usr/local' by giving
+'configure' the option '--prefix=PREFIX', where PREFIX must be an
absolute file name.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
-options like `--bindir=DIR' to specify different values for particular
-kinds of files. Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them. In general, the
-default for these options is expressed in terms of `${prefix}', so that
-specifying just `--prefix' will affect all of the other directory
+options like '--bindir=DIR' to specify different values for particular
+kinds of files. Run 'configure --help' for a list of the directories
+you can set and what kinds of files go in them. In general, the default
+for these options is expressed in terms of '${prefix}', so that
+specifying just '--prefix' will affect all of the other directory
specifications that were not explicitly provided.
The most portable way to affect installation locations is to pass the
-correct locations to `configure'; however, many packages provide one or
+correct locations to 'configure'; however, many packages provide one or
both of the following shortcuts of passing variable assignments to the
-`make install' command line to change installation locations without
+'make install' command line to change installation locations without
having to reconfigure or recompile.
The first method involves providing an override variable for each
-affected directory. For example, `make install
+affected directory. For example, 'make install
prefix=/alternate/directory' will choose an alternate location for all
directory configuration variables that were expressed in terms of
-`${prefix}'. Any directories that were specified during `configure',
-but not in terms of `${prefix}', must each be overridden at install
-time for the entire installation to be relocated. The approach of
-makefile variable overrides for each directory variable is required by
-the GNU Coding Standards, and ideally causes no recompilation.
-However, some platforms have known limitations with the semantics of
-shared libraries that end up requiring recompilation when using this
-method, particularly noticeable in packages that use GNU Libtool.
-
- The second method involves providing the `DESTDIR' variable. For
-example, `make install DESTDIR=/alternate/directory' will prepend
-`/alternate/directory' before all installation names. The approach of
-`DESTDIR' overrides is not required by the GNU Coding Standards, and
+'${prefix}'. Any directories that were specified during 'configure',
+but not in terms of '${prefix}', must each be overridden at install time
+for the entire installation to be relocated. The approach of makefile
+variable overrides for each directory variable is required by the GNU
+Coding Standards, and ideally causes no recompilation. However, some
+platforms have known limitations with the semantics of shared libraries
+that end up requiring recompilation when using this method, particularly
+noticeable in packages that use GNU Libtool.
+
+ The second method involves providing the 'DESTDIR' variable. For
+example, 'make install DESTDIR=/alternate/directory' will prepend
+'/alternate/directory' before all installation names. The approach of
+'DESTDIR' overrides is not required by the GNU Coding Standards, and
does not work on platforms that have drive letters. On the other hand,
it does better at avoiding recompilation issues, and works well even
-when some directory options were not specified in terms of `${prefix}'
-at `configure' time.
+when some directory options were not specified in terms of '${prefix}'
+at 'configure' time.
Optional Features
=================
If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+with an extra prefix or suffix on their names by giving 'configure' the
+option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
- Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System). The
-`README' should mention any `--enable-' and `--with-' options that the
+ Some packages pay attention to '--enable-FEATURE' options to
+'configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to '--with-PACKAGE' options, where PACKAGE
+is something like 'gnu-as' or 'x' (for the X Window System). The
+'README' should mention any '--enable-' and '--with-' options that the
package recognizes.
- For packages that use the X Window System, `configure' can usually
+ For packages that use the X Window System, 'configure' can usually
find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
+you can use the 'configure' options '--x-includes=DIR' and
+'--x-libraries=DIR' to specify their locations.
Some packages offer the ability to configure how verbose the
-execution of `make' will be. For these packages, running `./configure
+execution of 'make' will be. For these packages, running './configure
--enable-silent-rules' sets the default to minimal output, which can be
-overridden with `make V=1'; while running `./configure
+overridden with 'make V=1'; while running './configure
--disable-silent-rules' sets the default to verbose, which can be
-overridden with `make V=0'.
+overridden with 'make V=0'.
Particular systems
==================
- On HP-UX, the default C compiler is not ANSI C compatible. If GNU
-CC is not installed, it is recommended to use the following options in
+ On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC
+is not installed, it is recommended to use the following options in
order to use an ANSI C compiler:
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
- HP-UX `make' updates targets which have the same time stamps as
-their prerequisites, which makes it generally unusable when shipped
-generated files such as `configure' are involved. Use GNU `make'
-instead.
+ HP-UX 'make' updates targets which have the same time stamps as their
+prerequisites, which makes it generally unusable when shipped generated
+files such as 'configure' are involved. Use GNU 'make' instead.
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
-parse its `' header file. The option `-nodtk' can be used as
-a workaround. If GNU CC is not installed, it is therefore recommended
-to try
+parse its '' header file. The option '-nodtk' can be used as a
+workaround. If GNU CC is not installed, it is therefore recommended to
+try
./configure CC="cc"
@@ -242,26 +240,26 @@
./configure CC="cc -nodtk"
- On Solaris, don't put `/usr/ucb' early in your `PATH'. This
+ On Solaris, don't put '/usr/ucb' early in your 'PATH'. This
directory contains several dysfunctional programs; working variants of
-these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
-in your `PATH', put it _after_ `/usr/bin'.
+these programs are available in '/usr/bin'. So, if you need '/usr/ucb'
+in your 'PATH', put it _after_ '/usr/bin'.
- On Haiku, software installed for all users goes in `/boot/common',
-not `/usr/local'. It is recommended to use the following options:
+ On Haiku, software installed for all users goes in '/boot/common',
+not '/usr/local'. It is recommended to use the following options:
./configure --prefix=/boot/common
Specifying the System Type
==========================
- There may be some features `configure' cannot figure out
+ There may be some features 'configure' cannot figure out
automatically, but needs to determine by the type of machine the package
will run on. Usually, assuming the package is built to be run on the
-_same_ architectures, `configure' can figure that out, but if it prints
+_same_ architectures, 'configure' can figure that out, but if it prints
a message saying it cannot guess the machine type, give it the
-`--build=TYPE' option. TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
+'--build=TYPE' option. TYPE can either be a short name for the system
+type, such as 'sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
@@ -270,101 +268,101 @@
OS
KERNEL-OS
- See the file `config.sub' for the possible values of each field. If
-`config.sub' isn't included in this package, then this package doesn't
+ See the file 'config.sub' for the possible values of each field. If
+'config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
-use the option `--target=TYPE' to select the type of system they will
+use the option '--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
+eventually be run) with '--host=TYPE'.
Sharing Defaults
================
- If you want to set default values for `configure' scripts to share,
-you can create a site shell script called `config.site' that gives
-default values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists. Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
+ If you want to set default values for 'configure' scripts to share,
+you can create a site shell script called 'config.site' that gives
+default values for variables like 'CC', 'cache_file', and 'prefix'.
+'configure' looks for 'PREFIX/share/config.site' if it exists, then
+'PREFIX/etc/config.site' if it exists. Or, you can set the
+'CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all 'configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
-environment passed to `configure'. However, some packages may run
+environment passed to 'configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'. For example:
+them in the 'configure' command line, using 'VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
-causes the specified `gcc' to be used as the C compiler (unless it is
+causes the specified 'gcc' to be used as the C compiler (unless it is
overridden in the site shell script).
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf limitation. Until the limitation is lifted, you can use
-this workaround:
+Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
+Autoconf limitation. Until the limitation is lifted, you can use this
+workaround:
CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
-`configure' Invocation
+'configure' Invocation
======================
- `configure' recognizes the following options to control how it
+ 'configure' recognizes the following options to control how it
operates.
-`--help'
-`-h'
- Print a summary of all of the options to `configure', and exit.
+'--help'
+'-h'
+ Print a summary of all of the options to 'configure', and exit.
-`--help=short'
-`--help=recursive'
+'--help=short'
+'--help=recursive'
Print a summary of the options unique to this package's
- `configure', and exit. The `short' variant lists options used
- only in the top level, while the `recursive' variant lists options
- also present in any nested packages.
-
-`--version'
-`-V'
- Print the version of Autoconf used to generate the `configure'
+ 'configure', and exit. The 'short' variant lists options used only
+ in the top level, while the 'recursive' variant lists options also
+ present in any nested packages.
+
+'--version'
+'-V'
+ Print the version of Autoconf used to generate the 'configure'
script, and exit.
-`--cache-file=FILE'
+'--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
- traditionally `config.cache'. FILE defaults to `/dev/null' to
+ traditionally 'config.cache'. FILE defaults to '/dev/null' to
disable caching.
-`--config-cache'
-`-C'
- Alias for `--cache-file=config.cache'.
-
-`--quiet'
-`--silent'
-`-q'
+'--config-cache'
+'-C'
+ Alias for '--cache-file=config.cache'.
+
+'--quiet'
+'--silent'
+'-q'
Do not print messages saying which checks are being made. To
- suppress all normal output, redirect it to `/dev/null' (any error
+ suppress all normal output, redirect it to '/dev/null' (any error
messages will still be shown).
-`--srcdir=DIR'
+'--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
- `configure' can determine that directory automatically.
+ 'configure' can determine that directory automatically.
-`--prefix=DIR'
- Use DIR as the installation prefix. *note Installation Names::
- for more details, including other options available for fine-tuning
- the installation locations.
+'--prefix=DIR'
+ Use DIR as the installation prefix. *note Installation Names:: for
+ more details, including other options available for fine-tuning the
+ installation locations.
-`--no-create'
-`-n'
+'--no-create'
+'-n'
Run the configure checks, but stop before creating any output
files.
-`configure' also accepts some other, not widely useful, options. Run
-`configure --help' for more details.
+'configure' also accepts some other, not widely useful, options. Run
+'configure --help' for more details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/Makefile.am new/spice-protocol-0.12.14/Makefile.am
--- old/spice-protocol-0.12.13/Makefile.am 2016-03-10 16:56:56.000000000 +0100
+++ new/spice-protocol-0.12.14/Makefile.am 2018-06-01 10:06:28.000000000 +0200
@@ -22,4 +22,6 @@
`find "$(srcdir)" -type f -name Makefile.in -print` \
$(NULL)
+EXTRA_DIST = meson.build
+
-include $(top_srcdir)/git.mk
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/Makefile.in new/spice-protocol-0.12.14/Makefile.in
--- old/spice-protocol-0.12.13/Makefile.in 2017-02-20 10:35:28.000000000 +0100
+++ new/spice-protocol-0.12.14/Makefile.in 2018-06-01 10:10:31.000000000 +0200
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
# @configure_input@
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -326,6 +326,7 @@
`find "$(srcdir)" -type f -name Makefile.in -print` \
$(NULL)
+EXTRA_DIST = meson.build
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/NEWS new/spice-protocol-0.12.14/NEWS
--- old/spice-protocol-0.12.13/NEWS 2017-07-03 13:14:24.000000000 +0200
+++ new/spice-protocol-0.12.14/NEWS 2018-06-01 10:09:57.000000000 +0200
@@ -1,3 +1,13 @@
+Major changes in 0.12.14
+========================
+* add stream-device protocol
+* add SPICE_SURFACE_FLAGS_STREAMING_MODE flag
+* add e2k (Elbrus 2000) architecture
+* add SPICE_MAX_NUM_STREAMS
+* add meson support
+* add bult-ins byte swapping for Visual C++
+* switch to built-ins byte swapping in GCC
+
Major changes in 0.12.13
========================
* add DISPLAY_PREFERRED_VIDEO_CODEC_TYPE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/aclocal.m4 new/spice-protocol-0.12.14/aclocal.m4
--- old/spice-protocol-0.12.13/aclocal.m4 2017-02-20 10:35:28.000000000 +0100
+++ new/spice-protocol-0.12.14/aclocal.m4 2018-06-01 10:10:30.000000000 +0200
@@ -1,6 +1,6 @@
-# generated automatically by aclocal 1.15 -*- Autoconf -*-
+# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,7 @@
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
-# Copyright (C) 2002-2014 Free Software Foundation, Inc.
+# Copyright (C) 2002-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -35,7 +35,7 @@
[am__api_version='1.15'
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
dnl require some minimum version. Point them to the right macro.
-m4_if([$1], [1.15], [],
+m4_if([$1], [1.15.1], [],
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
])
@@ -51,14 +51,14 @@
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.15])dnl
+[AM_AUTOMAKE_VERSION([1.15.1])dnl
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -110,7 +110,7 @@
# AM_CONDITIONAL -*- Autoconf -*-
-# Copyright (C) 1997-2014 Free Software Foundation, Inc.
+# Copyright (C) 1997-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -143,7 +143,7 @@
# Do all the work for Automake. -*- Autoconf -*-
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -340,7 +340,7 @@
done
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -361,7 +361,7 @@
fi
AC_SUBST([install_sh])])
-# Copyright (C) 2003-2014 Free Software Foundation, Inc.
+# Copyright (C) 2003-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -383,7 +383,7 @@
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
# From Jim Meyering
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -418,7 +418,7 @@
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
-# Copyright (C) 1997-2014 Free Software Foundation, Inc.
+# Copyright (C) 1997-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -459,7 +459,7 @@
# Obsolete and "removed" macros, that must however still report explicit
# error messages when used, to smooth transition.
#
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -486,7 +486,7 @@
# Helper functions for option handling. -*- Autoconf -*-
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -517,7 +517,7 @@
# Check to make sure that the build environment is sane. -*- Autoconf -*-
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -598,7 +598,7 @@
rm -f conftest.file
])
-# Copyright (C) 2009-2014 Free Software Foundation, Inc.
+# Copyright (C) 2009-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -658,7 +658,7 @@
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
])
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -686,7 +686,7 @@
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])])
-# Copyright (C) 2006-2014 Free Software Foundation, Inc.
+# Copyright (C) 2006-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -705,7 +705,7 @@
# Check how to create a tarball. -*- Autoconf -*-
-# Copyright (C) 2004-2014 Free Software Foundation, Inc.
+# Copyright (C) 2004-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/configure new/spice-protocol-0.12.14/configure
--- old/spice-protocol-0.12.13/configure 2017-02-20 10:35:28.000000000 +0100
+++ new/spice-protocol-0.12.14/configure 2018-06-01 10:10:30.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for spice-protocol 0.12.13.
+# Generated by GNU Autoconf 2.69 for spice-protocol 0.12.14.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -576,8 +576,8 @@
# Identity of this package.
PACKAGE_NAME='spice-protocol'
PACKAGE_TARNAME='spice-protocol'
-PACKAGE_VERSION='0.12.13'
-PACKAGE_STRING='spice-protocol 0.12.13'
+PACKAGE_VERSION='0.12.14'
+PACKAGE_STRING='spice-protocol 0.12.14'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1200,7 +1200,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures spice-protocol 0.12.13 to adapt to many kinds of systems.
+\`configure' configures spice-protocol 0.12.14 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1266,7 +1266,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of spice-protocol 0.12.13:";;
+ short | recursive ) echo "Configuration of spice-protocol 0.12.14:";;
esac
cat <<\_ACEOF
@@ -1343,7 +1343,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-spice-protocol configure 0.12.13
+spice-protocol configure 0.12.14
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1360,7 +1360,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by spice-protocol $as_me 0.12.13, which was
+It was created by spice-protocol $as_me 0.12.14, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -2228,7 +2228,7 @@
# Define the identity of the package.
PACKAGE='spice-protocol'
- VERSION='0.12.13'
+ VERSION='0.12.14'
cat >>confdefs.h <<_ACEOF
@@ -2905,7 +2905,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by spice-protocol $as_me 0.12.13, which was
+This file was extended by spice-protocol $as_me 0.12.14, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -2967,7 +2967,7 @@
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-spice-protocol config.status 0.12.13
+spice-protocol config.status 0.12.14
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/configure.ac new/spice-protocol-0.12.14/configure.ac
--- old/spice-protocol-0.12.13/configure.ac 2017-02-20 10:34:26.000000000 +0100
+++ new/spice-protocol-0.12.14/configure.ac 2018-05-14 14:06:48.000000000 +0200
@@ -2,7 +2,7 @@
m4_define([SPICE_MAJOR], 0)
m4_define([SPICE_MINOR], 12)
-m4_define([SPICE_MICRO], 13)
+m4_define([SPICE_MICRO], 14)
AC_INIT(spice-protocol, [SPICE_MAJOR.SPICE_MINOR.SPICE_MICRO], [], spice-protocol)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/install-sh new/spice-protocol-0.12.14/install-sh
--- old/spice-protocol-0.12.13/install-sh 2017-02-20 10:35:28.000000000 +0100
+++ new/spice-protocol-0.12.14/install-sh 2018-06-01 10:10:31.000000000 +0200
@@ -1,7 +1,7 @@
#!/bin/sh
# install - install a program, script, or datafile
-scriptversion=2013-12-25.23; # UTC
+scriptversion=2016-01-11.22; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
@@ -496,6 +496,6 @@
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/meson.build new/spice-protocol-0.12.14/meson.build
--- old/spice-protocol-0.12.13/meson.build 1970-01-01 01:00:00.000000000 +0100
+++ new/spice-protocol-0.12.14/meson.build 2018-06-01 10:06:28.000000000 +0200
@@ -0,0 +1,23 @@
+#
+# project definition
+#
+project('spice-protocol', 'c',
+ version : '0.12.14',
+ license : 'BSD',
+ meson_version : '>= 0.41.0')
+
+subdir('spice')
+
+#
+# spice-protocol.pc generation
+#
+datadir = get_option('datadir')
+pkgconfig_dir = join_paths(get_option('prefix'), datadir, 'pkgconfig')
+
+pkgconfig = import('pkgconfig')
+pkgconfig.generate(name : meson.project_name(),
+ description : 'SPICE protocol headers',
+ version : meson.project_version(),
+ subdirs : 'spice-1',
+ install_dir : pkgconfig_dir,
+ variables : 'datadir=@0@'.format(join_paths('${prefix}', datadir)))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/missing new/spice-protocol-0.12.14/missing
--- old/spice-protocol-0.12.13/missing 2017-02-20 10:35:28.000000000 +0100
+++ new/spice-protocol-0.12.14/missing 2018-06-01 10:10:31.000000000 +0200
@@ -1,9 +1,9 @@
-#! /bin/sh
+#!/bin/sh
# Common wrapper for a few potentially missing GNU programs.
-scriptversion=2013-10-28.13; # UTC
+scriptversion=2016-01-11.22; # UTC
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
# Originally written by Fran,cois Pinard , 1996.
# This program is free software; you can redistribute it and/or modify
@@ -210,6 +210,6 @@
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/spice/Makefile.am new/spice-protocol-0.12.14/spice/Makefile.am
--- old/spice-protocol-0.12.13/spice/Makefile.am 2016-03-10 16:56:56.000000000 +0100
+++ new/spice-protocol-0.12.14/spice/Makefile.am 2018-06-01 10:06:28.000000000 +0200
@@ -19,6 +19,9 @@
types.h \
vd_agent.h \
vdi_dev.h \
+ stream-device.h \
$(NULL)
+EXTRA_DIST = meson.build
+
-include $(top_srcdir)/git.mk
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/spice/Makefile.in new/spice-protocol-0.12.14/spice/Makefile.in
--- old/spice-protocol-0.12.13/spice/Makefile.in 2017-02-20 10:35:28.000000000 +0100
+++ new/spice-protocol-0.12.14/spice/Makefile.in 2018-06-01 10:10:31.000000000 +0200
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
# @configure_input@
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -259,8 +259,10 @@
types.h \
vd_agent.h \
vdi_dev.h \
+ stream-device.h \
$(NULL)
+EXTRA_DIST = meson.build
all: all-am
.SUFFIXES:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/spice/enums.h new/spice-protocol-0.12.14/spice/enums.h
--- old/spice-protocol-0.12.13/spice/enums.h 2017-06-07 21:57:25.000000000 +0200
+++ new/spice-protocol-0.12.14/spice/enums.h 2018-05-14 14:06:48.000000000 +0200
@@ -296,8 +296,9 @@
typedef enum SpiceSurfaceFlags {
SPICE_SURFACE_FLAGS_PRIMARY = (1 << 0),
+ SPICE_SURFACE_FLAGS_STREAMING_MODE = (1 << 1),
- SPICE_SURFACE_FLAGS_MASK = 0x1
+ SPICE_SURFACE_FLAGS_MASK = 0x3
} SpiceSurfaceFlags;
typedef enum SpiceSurfaceFmt {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/spice/macros.h new/spice-protocol-0.12.14/spice/macros.h
--- old/spice-protocol-0.12.13/spice/macros.h 2017-02-20 10:34:26.000000000 +0100
+++ new/spice-protocol-0.12.14/spice/macros.h 2018-05-14 14:06:48.000000000 +0200
@@ -248,130 +248,14 @@
/* Arch specific stuff for speed
*/
-#if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__)
-# if defined (__i386__)
-# define SPICE_BYTESWAP16_IA32(val) \
- (__extension__ \
- ({ register uint16_t __v, __x = ((uint16_t) (val)); \
- if (__builtin_constant_p (__x)) \
- __v = SPICE_BYTESWAP16_CONSTANT (__x); \
- else \
- __asm__ ("rorw $8, %w0" \
- : "=r" (__v) \
- : "0" (__x) \
- : "cc"); \
- __v; }))
-# if !defined (__i486__) && !defined (__i586__) \
- && !defined (__pentium__) && !defined (__i686__) \
- && !defined (__pentiumpro__) && !defined (__pentium4__)
-# define SPICE_BYTESWAP32_IA32(val) \
- (__extension__ \
- ({ register uint32_t __v, __x = ((uint32_t) (val)); \
- if (__builtin_constant_p (__x)) \
- __v = SPICE_BYTESWAP32_CONSTANT (__x); \
- else \
- __asm__ ("rorw $8, %w0\n\t" \
- "rorl $16, %0\n\t" \
- "rorw $8, %w0" \
- : "=r" (__v) \
- : "0" (__x) \
- : "cc"); \
- __v; }))
-# else /* 486 and higher has bswap */
-# define SPICE_BYTESWAP32_IA32(val) \
- (__extension__ \
- ({ register uint32_t __v, __x = ((uint32_t) (val)); \
- if (__builtin_constant_p (__x)) \
- __v = SPICE_BYTESWAP32_CONSTANT (__x); \
- else \
- __asm__ ("bswap %0" \
- : "=r" (__v) \
- : "0" (__x)); \
- __v; }))
-# endif /* processor specific 32-bit stuff */
-# define SPICE_BYTESWAP64_IA32(val) \
- (__extension__ \
- ({ union { uint64_t __ll; \
- uint32_t __l[2]; } __w, __r; \
- __w.__ll = ((uint64_t) (val)); \
- if (__builtin_constant_p (__w.__ll)) \
- __r.__ll = SPICE_BYTESWAP64_CONSTANT (__w.__ll); \
- else \
- { \
- __r.__l[0] = SPICE_BYTESWAP32 (__w.__l[1]); \
- __r.__l[1] = SPICE_BYTESWAP32 (__w.__l[0]); \
- } \
- __r.__ll; }))
- /* Possibly just use the constant version and let gcc figure it out? */
-# define SPICE_BYTESWAP16(val) (SPICE_BYTESWAP16_IA32 (val))
-# define SPICE_BYTESWAP32(val) (SPICE_BYTESWAP32_IA32 (val))
-# define SPICE_BYTESWAP64(val) (SPICE_BYTESWAP64_IA32 (val))
-# elif defined (__ia64__)
-# define SPICE_BYTESWAP16_IA64(val) \
- (__extension__ \
- ({ register uint16_t __v, __x = ((uint16_t) (val)); \
- if (__builtin_constant_p (__x)) \
- __v = SPICE_BYTESWAP16_CONSTANT (__x); \
- else \
- __asm__ __volatile__ ("shl %0 = %1, 48 ;;" \
- "mux1 %0 = %0, @rev ;;" \
- : "=r" (__v) \
- : "r" (__x)); \
- __v; }))
-# define SPICE_BYTESWAP32_IA64(val) \
- (__extension__ \
- ({ register uint32_t __v, __x = ((uint32_t) (val)); \
- if (__builtin_constant_p (__x)) \
- __v = SPICE_BYTESWAP32_CONSTANT (__x); \
- else \
- __asm__ __volatile__ ("shl %0 = %1, 32 ;;" \
- "mux1 %0 = %0, @rev ;;" \
- : "=r" (__v) \
- : "r" (__x)); \
- __v; }))
-# define SPICE_BYTESWAP64_IA64(val) \
- (__extension__ \
- ({ register uint64_t __v, __x = ((uint64_t) (val)); \
- if (__builtin_constant_p (__x)) \
- __v = SPICE_BYTESWAP64_CONSTANT (__x); \
- else \
- __asm__ __volatile__ ("mux1 %0 = %1, @rev ;;" \
- : "=r" (__v) \
- : "r" (__x)); \
- __v; }))
-# define SPICE_BYTESWAP16(val) (SPICE_BYTESWAP16_IA64 (val))
-# define SPICE_BYTESWAP32(val) (SPICE_BYTESWAP32_IA64 (val))
-# define SPICE_BYTESWAP64(val) (SPICE_BYTESWAP64_IA64 (val))
-# elif defined (__x86_64__)
-# define SPICE_BYTESWAP32_X86_64(val) \
- (__extension__ \
- ({ register uint32_t __v, __x = ((uint32_t) (val)); \
- if (__builtin_constant_p (__x)) \
- __v = SPICE_BYTESWAP32_CONSTANT (__x); \
- else \
- __asm__ ("bswapl %0" \
- : "=r" (__v) \
- : "0" (__x)); \
- __v; }))
-# define SPICE_BYTESWAP64_X86_64(val) \
- (__extension__ \
- ({ register uint64_t __v, __x = ((uint64_t) (val)); \
- if (__builtin_constant_p (__x)) \
- __v = SPICE_BYTESWAP64_CONSTANT (__x); \
- else \
- __asm__ ("bswapq %0" \
- : "=r" (__v) \
- : "0" (__x)); \
- __v; }))
- /* gcc seems to figure out optimal code for this on its own */
-# define SPICE_BYTESWAP16(val) (SPICE_BYTESWAP16_CONSTANT (val))
-# define SPICE_BYTESWAP32(val) (SPICE_BYTESWAP32_X86_64 (val))
-# define SPICE_BYTESWAP64(val) (SPICE_BYTESWAP64_X86_64 (val))
-# else /* generic gcc */
-# define SPICE_BYTESWAP16(val) (SPICE_BYTESWAP16_CONSTANT (val))
-# define SPICE_BYTESWAP32(val) (SPICE_BYTESWAP32_CONSTANT (val))
-# define SPICE_BYTESWAP64(val) (SPICE_BYTESWAP64_CONSTANT (val))
-# endif
+#if defined (__GNUC__) && (__GNUC__ >= 4) && defined (__OPTIMIZE__)
+# define SPICE_BYTESWAP16(val) __builtin_bswap16(val)
+# define SPICE_BYTESWAP32(val) __builtin_bswap32(val)
+# define SPICE_BYTESWAP64(val) __builtin_bswap64(val)
+#elif defined(_MSC_VER)
+# define SPICE_BYTESWAP16(val) _byteswap_ushort(val)
+# define SPICE_BYTESWAP32(val) _byteswap_ulong(val)
+# define SPICE_BYTESWAP64(val) _byteswap_uint64(val)
#else /* generic */
# define SPICE_BYTESWAP16(val) (SPICE_BYTESWAP16_CONSTANT (val))
# define SPICE_BYTESWAP32(val) (SPICE_BYTESWAP32_CONSTANT (val))
@@ -379,7 +263,7 @@
#endif /* generic */
-/* detect endianess */
+/* detect endianness */
#undef SPICE_ENDIAN
#define SPICE_ENDIAN_LITTLE 4321
#define SPICE_ENDIAN_BIG 1234
@@ -404,7 +288,8 @@
# if defined(__LITTLE_ENDIAN__) || defined(__ARMEL__) \
|| defined(__THUMBEL__) || defined(__AARCH64EL__) \
|| defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__) \
- || defined(__amd64__) || defined(__x86_64__) || defined(__i386__)
+ || defined(__amd64__) || defined(__x86_64__) || defined(__i386__) \
+ || defined(__e2k__)
# define SPICE_ENDIAN SPICE_ENDIAN_LITTLE
# endif
# if defined(__BIG_ENDIAN__) || defined(__ARMEB__) \
@@ -427,11 +312,11 @@
#endif
#if !defined(SPICE_ENDIAN)
-#error Unable to detect processor endianess
+#error Unable to detect processor endianness
#endif
#if SPICE_ENDIAN == SPICE_ENDIAN_PDP
-#error PDP endianess not supported by Spice
+#error PDP endianness not supported by Spice
#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/spice/meson.build new/spice-protocol-0.12.14/spice/meson.build
--- old/spice-protocol-0.12.13/spice/meson.build 1970-01-01 01:00:00.000000000 +0100
+++ new/spice-protocol-0.12.14/spice/meson.build 2018-06-01 10:06:28.000000000 +0200
@@ -0,0 +1,22 @@
+spice_protocol_headers = [
+ 'barrier.h',
+ 'controller_prot.h',
+ 'end-packed.h',
+ 'enums.h',
+ 'error_codes.h',
+ 'foreign_menu_prot.h',
+ 'ipc_ring.h',
+ 'macros.h',
+ 'protocol.h',
+ 'qxl_dev.h',
+ 'qxl_windows.h',
+ 'start-packed.h',
+ 'stats.h',
+ 'types.h',
+ 'vd_agent.h',
+ 'vdi_dev.h',
+ 'stream-device.h',
+]
+
+install_headers(spice_protocol_headers,
+ subdir : join_paths('spice-1', 'spice'))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/spice/protocol.h new/spice-protocol-0.12.14/spice/protocol.h
--- old/spice-protocol-0.12.13/spice/protocol.h 2017-02-20 10:34:26.000000000 +0100
+++ new/spice-protocol-0.12.14/spice/protocol.h 2018-06-01 10:06:28.000000000 +0200
@@ -45,6 +45,12 @@
#define SPICE_TICKET_KEY_PAIR_LENGTH 1024
#define SPICE_TICKET_PUBKEY_BYTES (SPICE_TICKET_KEY_PAIR_LENGTH / 8 + 34)
+/*
+ * This is the maximum number of streams possible.
+ * IDs will be in the interval [0, SPICE_MAX_NUM_STREAMS).
+ */
+#define SPICE_MAX_NUM_STREAMS 64
+
typedef struct SPICE_ATTR_PACKED SpiceLinkHeader {
uint32_t magic;
uint32_t major_version;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/spice/stream-device.h new/spice-protocol-0.12.14/spice/stream-device.h
--- old/spice-protocol-0.12.13/spice/stream-device.h 1970-01-01 01:00:00.000000000 +0100
+++ new/spice-protocol-0.12.14/spice/stream-device.h 2018-06-01 10:06:28.000000000 +0200
@@ -0,0 +1,218 @@
+/*
+ Copyright (C) 2017-2018 Red Hat, Inc.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * This header contains definition for the device that
+ * allows to send streamed data to the server.
+ *
+ * The device is currently implemented as a VirtIO port inside the
+ * guest. The guest should open that device to use this protocol to
+ * communicate with the host.
+ */
+
+#ifndef SPICE_STREAM_DEVICE_H_
+#define SPICE_STREAM_DEVICE_H_
+
+#include
+
+/*
+ * Structures are all "naturally aligned"
+ * containing integers up to 64 bit.
+ * All numbers are in little endian format.
+ *
+ * For security reasons structures should not contain implicit paddings.
+ *
+ * The protocol can be defined by these states:
+ * - Initial. Device just opened. Guest should wait
+ * for a message from the host;
+ * - Idle. No streaming allowed;
+ * - Ready. Server sent list of possible codecs;
+ * - Streaming. Stream active, enabled by the guest.
+ */
+
+/* version of the protocol */
+#define STREAM_DEVICE_PROTOCOL 1
+
+typedef struct StreamDevHeader {
+ /* should be STREAM_DEVICE_PROTOCOL */
+ uint8_t protocol_version;
+ /* reserved, should be set to 0 */
+ uint8_t padding;
+ /* as defined in StreamMsgType enumeration */
+ uint16_t type;
+ /* size of the following message.
+ * A message of type STREAM_TYPE_XXX_YYY is represented with a
+ * corresponding StreamMsgXxxYyy structure. */
+ uint32_t size;
+} StreamDevHeader;
+
+typedef enum StreamMsgType {
+ /* invalid, do not use */
+ STREAM_TYPE_INVALID = 0,
+ /* allows to send version information */
+ STREAM_TYPE_CAPABILITIES,
+ /* send screen resolution */
+ STREAM_TYPE_FORMAT,
+ /* stream data */
+ STREAM_TYPE_DATA,
+ /* server ask to start a new stream */
+ STREAM_TYPE_START_STOP,
+ /* server notify errors to guest */
+ STREAM_TYPE_NOTIFY_ERROR,
+ /* guest cursor */
+ STREAM_TYPE_CURSOR_SET,
+ /* guest cursor position */
+ STREAM_TYPE_CURSOR_MOVE,
+} StreamMsgType;
+
+typedef enum StreamCapabilities {
+ STREAM_CAP_END // this must be the last
+} StreamCapabilities;
+
+/* Generic extension capabilities.
+ * This is a set of bits to specify which capabilities host and guest support.
+ * This message is sent by the host to the guest or by the guest to the host.
+ * Should be sent as first message.
+ * If it is not sent, it means that guest/host doesn't support any extension.
+ * Guest should send this as a reply from same type of message
+ * from the host.
+ * This message should be limited to STREAM_MSG_CAPABILITIES_MAX_BYTES. This
+ * allows plenty of negotiations.
+ *
+ * States allowed: Initial(host), Idle(guest)
+ * state will change to Idle.
+ */
+typedef struct StreamMsgCapabilities {
+ uint8_t capabilities[0];
+} StreamMsgCapabilities;
+
+#define STREAM_MSG_CAPABILITIES_MAX_BYTES 1024
+
+/* Define the format of the stream, start a new stream.
+ * This message is sent by the guest to the host to
+ * tell the host the new stream format.
+ *
+ * States allowed: Ready
+ * state will change to Streaming.
+ */
+typedef struct StreamMsgFormat {
+ /* screen resolution/stream size */
+ uint32_t width;
+ uint32_t height;
+ /* as defined in SpiceVideoCodecType enumeration */
+ uint8_t codec;
+ uint8_t padding1[3];
+} StreamMsgFormat;
+
+/* This message contains just raw data stream.
+ * This message is sent by the guest to the host.
+ *
+ * States allowed: Streaming
+ */
+typedef struct StreamMsgData {
+ uint8_t data[0];
+} StreamMsgData;
+
+/* Tell to stop current stream and possibly start a new one.
+ * This message is sent by the host to the guest.
+ * Allows to communicate the codecs supported by the clients.
+ * The agent should stop the old stream and if any codec in the
+ * list is supported start streaming (as Mjpeg is always supported
+ * agent should stop only on a real stop request).
+ *
+ * States allowed: any
+ * state will change to Idle (no codecs) or Ready
+ */
+typedef struct StreamMsgStartStop {
+ /* supported codecs, 0 to stop streaming */
+ uint8_t num_codecs;
+ /* as defined in SpiceVideoCodecType enumeration */
+ uint8_t codecs[0];
+} StreamMsgStartStop;
+
+/* Tell guest about invalid protocol.
+ * This message is sent by the host to the guest.
+ * The server will stop processing data from the guest.
+ *
+ * States allowed: any
+ */
+typedef struct StreamMsgNotifyError {
+ /* numeric error code.
+ * Currently not defined, set to 0.
+ */
+ uint32_t error_code;
+ /* String message, UTF-8 encoded.
+ * This field terminate with the message.
+ * Not necessary NUL-terminated.
+ */
+ uint8_t msg[0];
+} StreamMsgNotifyError;
+
+#define STREAM_MSG_CURSOR_SET_MAX_WIDTH 1024
+#define STREAM_MSG_CURSOR_SET_MAX_HEIGHT 1024
+
+/* Guest cursor.
+ * This message is sent by the guest to the host.
+ *
+ * States allowed: Streaming
+ */
+typedef struct StreamMsgCursorSet {
+ /* basic cursor information */
+ /* for security reasons width and height should
+ * be limited to STREAM_MSG_CURSOR_SET_MAX_WIDTH and
+ * STREAM_MSG_CURSOR_SET_MAX_HEIGHT */
+ uint16_t width;
+ uint16_t height;
+ uint16_t hot_spot_x;
+ uint16_t hot_spot_y;
+ /* Cursor type, as defined by SpiceCursorType.
+ * Only ALPHA, COLOR24 and COLOR32 are allowed by this protocol
+ */
+ uint8_t type;
+
+ uint8_t padding1[3];
+
+ /* cursor data.
+ * Format and size depends on cursor_header type and size
+ */
+ uint8_t data[0];
+} StreamMsgCursorSet;
+
+/* Guest cursor position
+ * This message is sent by the guest to the host.
+ *
+ * States allowed: Streaming
+ */
+typedef struct StreamMsgCursorMove {
+ int32_t x;
+ int32_t y;
+} StreamMsgCursorMove;
+
+#endif /* SPICE_STREAM_DEVICE_H_ */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spice-protocol-0.12.13/spice/vd_agent.h new/spice-protocol-0.12.14/spice/vd_agent.h
--- old/spice-protocol-0.12.13/spice/vd_agent.h 2017-06-23 11:09:54.000000000 +0200
+++ new/spice-protocol-0.12.14/spice/vd_agent.h 2018-06-01 10:07:49.000000000 +0200
@@ -234,6 +234,7 @@
uint8_t selection;
uint8_t __reserved[sizeof(uint32_t) - 1 * sizeof(uint8_t)];
#endif
+ uint8_t dummy_empty_field[0]; /* C/C++ compatibility */
} VDAgentClipboardRelease;
typedef struct SPICE_ATTR_PACKED VDAgentMaxClipboard {