Commit Graph

25 Commits

Author SHA1 Message Date
Frediano Ziglio
fa9922f39a Update spice-common submodule
This brings in the following changes:

Vivek Kasireddy (1):
      common: Add a udev helper to identify GPU Vendor

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-11-03 08:31:06 +00:00
Marc-André Lureau
795318c8fa meson: fix keymap-gen exec on msys
meson wraps python scripts already on win32:

"C:/msys64/mingw64/bin/meson" "--internal" "exe" "--capture" "src/vncdisplaykeymap_xorgevdev2xtkbd.h" "--" "C:/msys64/mingw64/bin/python.exe" "python" "C:/msys64/home/marca/src/spice-gtk/subprojects/keycodemapdb/tools/keymap-gen" "code-m
ap" "--lang" "glib2" "--varname" "keymap_xorgevdev2xtkbd" "../subprojects/keycodemapdb/data/keymaps.csv" "xorgevdev" "xtkbd"
--- stderr ---
C:/msys64/mingw64/bin/python.exe: can't open file 'C:\\msys64\\home\\marca\\src\\spice-gtk\\build\\python': [Errno 2] No such file or directory

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2023-01-23 11:55:06 +04:00
Marc-André Lureau
b296ddbf4b spice-common: update to current git
Frediano Ziglio (1):
      Replace EVP_PKEY_cmp with EVP_PKEY_eq

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2022-07-01 16:59:24 +04:00
Eli Schwartz
b3eb04485c fix invalid use of subprojects
The keycodemapdb Meson subproject provides a program and a source input.
Since it is a subproject, Meson wants to sandbox that and requires it to
be explicitly exported. But this never happened -- instead, we manually
poked at files using the actual string path "subprojects/......"

This was always a Meson sandbox violation, but Meson 0.63.0 started
noticing it and erroring out.

Instead, do the right thing. Update the subproject to a version that has
a meson.build with actually meaningful contents -- namely, a files
variable and a found program. Then use these in order to run the needed
custom_target.

In the process, it is also necessary to correct the argument ordering
when running keymap-gen.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2022-06-27 10:56:45 +04:00
Frediano Ziglio
3d56b0276d Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (2):
      build: Correctly check for Python modules
      ci: Set WINEPATH during Windows build

This fixes https://gitlab.freedesktop.org/spice/spice-gtk/-/issues/152.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2022-01-28 09:56:01 +00:00
Frediano Ziglio
151d920418 Support USB emulation for MacOS
Use proper ioctls for MacOS.
Import new spice-common to solve an issue detecting Python3.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2021-08-20 08:15:04 +01:00
Frediano Ziglio
df0d3f9d95 Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (10):
      proto: Add support for side mouse buttons
      quic: Constify a parameter
      quic: Fix typo in comment
      agent: Extend agent_check_message to support VDAgentMonitorsConfig extension
      quic: Check we have some data to start decoding quic image
      quic: Check image size in quic_decode_begin
      quic: Check RLE lengths
      quic: Avoid possible buffer overflow in find_bucket
      test-quic: Add fuzzer capabilities to the test
      test-quic: Add test cases for quic fuzzer

Marc-André Lureau (1):
      agent: fix vdagent monitor flag filtering

In particular some security related changes are imported.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <uril@redhat.com>
2020-10-22 13:31:12 +01:00
Frediano Ziglio
f524f87552 Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (19):
      canvas_base: Format canvas_draw_blend similarly to canvas_draw_copy
      canvas_base: Rename blend to copy for canvas_draw_blend argument
      canvas_base: Remove canvas_draw_blend/canvas_draw_copy duplication
      build: Remove dependency to gio2 from common and server libraries
      build: Remove dependencies to libgthread
      test-utils: Add missing include file
      test-quic: Test fixed images
      test-quic: Different "more_space" function for decode and encode
      Reuse macros from spice-protocol
      rect: Avoid usage of "small"
      build: Remove -Werror from Meson build
      snd_codec: Use better types for snd_codec_is_capable
      snd_codec: Use better type for function result
      snd_codec: Use better type for snd_codec_create mode
      backtrace: Do not attempt to compile if spice_backtrace is empty
      Avoid usage of GCC extension for __VA_ARGS__ where possible
      helper-fuzzer-demarshallers: Provide replacement for ftello for MSVC
      quic_tmpl: Remove unused bpc parameter
      ssl_verify: Do not check IP if we fail to resolve it

Haochen Tong (2):
      pixman_utils: fix clang "unused functions" warning
      marshal: fix clang "missing field initializer" warning on generated files

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-08-28 09:51:36 +01:00
Frediano Ziglio
b80e23d00a Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (3):
      helper-fuzzer-demarshallers: Add an helper for fuzzy testing demarshallers code
      Add helper code for agent messages
      agent: Fix incompatibility with Visual Studio compiler

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-04-24 09:58:00 +01:00
Frediano Ziglio
ab229f77f6 Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (1):
      build: Allows to request a greater SPICE protocol version

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-04-24 09:39:45 +01:00
Frediano Ziglio
d071e48bfb channel-smartcard: Update due to spice-common cleanup
After commit 47e149705a5bb1d4a615facfd9bd0190d9b0647c
(cfr "proto: Generate correct constants for smartcard support")
msgc_smartcard_header was renamed to a more proper
msgc_smartcard_data.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-04-07 14:56:20 +01:00
Frediano Ziglio
b8a9fb71cb Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (7):
      ci: Fix build of spice-protocol
      lz_common: Remove unused commented out define
      test-logging: Do not use G_PASTE to join level
      ci: Use spice-protocol master for make-win job
      build: Allow to build disabling code generation
      proto: Allows to specify @deprecated option for flags and enums
      messages: Remove obsolete structure definition

Kevin Pouget (1):
      spice.proto: add quality_indicator messages

Victor Toso (1):
      sound: remove celt support

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-04-07 14:56:06 +01:00
Victor Toso
c7ae04cb49 Update spice-common
So we can have the v0.38 release with a few more tests plus the
removal of warning in meson build.

Frediano Ziglio (8):
      test-quic: Avoid namespace conflict with Gdk API
      test-quic: Cache gdk_pixbuf_get_byte_length value
      test-quic: Reduce height of test image
      test-quic: Run 1 random quic test per color mode
      m4: Make easier to integrate in other projects
      Add missing dependency in Autoconf integration
      test-utils: Add a test for some utils.h functions
      build: Use warning_level option for Meson

Kevin Pouget (1):
      utils: add set_bitmap/test_bitmap functions

Signed-off-by: Victor Toso <victortoso@redhat.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2020-03-16 13:33:42 +01:00
Frediano Ziglio
6a25846577 Update spice-common submodule
This brings in the following changes:

Eduardo Lima (Etrunko) (1):
      build: Unconditionally link with libm if found

Fabrice Fontaine (2):
      configure.ac: add --enable-tests
      meson: add tests option

Frediano Ziglio (24):
      proto: Demarshal Smartcard data field
      codegen: Add 'chunk' to the output attributes
      codegen: Check validity of array members
      codegen: Document "chunk" attribute
      codegen: Ignore path generating include guards
      quic: Remove unused include header
      quic: Use G_UNLIKELY in some hot paths
      quic: Do not include quic_config.h in quic.h
      snd_codec: Avoid some useless casts declaring struct type
      snd_codec: Do not include not needed headers
      build: Clean up some configure checks
      test-quic: Convert image to get more testing (gray, rgb16)
      log: Add spice_extra_assert
      Reuse new spice_extra_assert macro
      marshallers: Avoid some useless pointers in SpiceMarshallerData
      lz_decompress: Constify some variable
      lz_decompress: Do not execute nested checks
      lz_decompress: Simplify loop
      lz_decompress: Reindented comment
      lz_decompress: Move variable declaration in nested scope
      lz_decompress: Read "ctrl" inside loop
      lz_compress: Cleanup unused macros
      codegen: Check unsafe values alone
      snd_codec: Update field names in function documentation

Kevin Pouget (4):
      common/recorder.h: do not complain on unused (dummy) recorders
      agent-interface: introduce the core of the Agent Interface
      agent-interface: add configuration functions
      build: Introduce the agent-interface as an alternative instrumentation library

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2020-02-27 15:12:40 +00:00
Frediano Ziglio
aed7c51a23 build: Fix compatibility with Meson 0.49
The "install" argument for configure_file is available since 0.50.
However this is already "false" if "install_dir" is not provided.

Update also spice-common submodule to import a similar fix for
spice-common module. This brings in the following changes:

Frediano Ziglio (10):
      gitignore: Ignore auto generated generated_messages.h file
      Do not check for HAVE_CONFIG_H
      build: Remove unused git-version-gen file
      recorder: Update
      build: Disable Celt support by default
      codegen: Use has_end_attr instead of has_attr("end")
      codegen: Exit with error on error generating C structures
      protocol: Removed unneeded type specifications
      codegen: Add a check for C structure fields
      meson: Remove "install" argument from configure_file

Uri Lublin (2):
      ptypes.py: remove useless condition member != None
      test-marshallers.proto: ArrayMessage: make space for name

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2019-08-29 16:58:18 +01:00
Uri Lublin
8df8452a43 spice-common: update submodule
Fix out-of-tree builds.

Uri Lublin (1):
      codegen Makefile: add common/ to --include client_marshallers.h
2019-04-24 08:14:21 +01:00
Frediano Ziglio
8941784dc6 spice-common: update submodule
This brings in the following changes:

Christophe Fergeau (8):
      canvas_base: Fix variable shadowing warning
      backtrace: Add missing include
      lz: Don't try to print uninitialized variable
      build: Add missing G_GNUC_PRINTF annotations
      build: Update verify.h to latest version
      test-marshallers: Fix header guard
      quic: Fix QUIC_VERSION definition
      log: Let gcc know about the logging macros which abort

Eduardo Lima (Etrunko) (5):
      meson: Use underscorify() instead of split()
      meson: Bump libcacard requirement to 2.5.1
      meson: switch smartcard option to auto feature
      meson: Bump requirement to 0.48
      meson: Make targets list store dictionaries instead of lists

Frediano Ziglio (31):
      Remove obsolete Autoconf macros
      log: remove deprecated SPICE_ABORT_LEVEL support
      log: remove deprecated SPICE_DEBUG_LEVEL support
      Obsolete Glib cleanup
      codegen: Document ptr_array attribute
      codegen: Use a better type for pointer converted to integer
      codegen: Reduce indentation
      codegen: Fix c_type result for TypeAlias
      codegen: Check wrong attribute
      codegen: Add a test for attribute combination
      mem: Fix compile error if alignment-checks option is used
      log: Remove useless includes
      proto: Remove obsolete TunnelChannel
      protocol: Add a dummy TunnelChannel
      messages: Remove fields not used by the protocol
      codegen: Remove support for --ptrsize
      codegen: Rename --prefix parameter to --suffix
      ci: Remove dependencies from copr build
      build: Remove snd_codec.h from EXTRA_DIST
      test-ssl-verify: Improve subject_to_x509_name coverage
      meson: Remove some useless checks
      codegen: Factor out a function to write output file
      codegen: Generate headers while generating code
      codegen: Allows to generate C declarations automatically
      Allow to generate C declarations for spice.proto
      Generate automatically most C message declarations
      recorder: Update
      build: Add new check for recorder library
      proto: Fix typo in message name
      meson: Fix dependency of generated files
      meson: Do not build generated files twice

Marc-André Lureau (1):
      docs: add spice URI scheme

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2019-04-04 18:34:31 +01:00
Frediano Ziglio
11e24061ea Allows to enable recorder integration
recorder library will be used to collect some statistics during
development.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-02-19 15:52:28 +00:00
Marc-André Lureau
184e72167c Move src/keycodemapdb -> subprojects/keycodemapdb
Follow meson build system conventions.

This will allow meson to handle it as a subproject.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-02-18 18:31:35 +00:00
Marc-André Lureau
620d4f90bd spice-common: update submodule
Get the fix for meson build and big endian machines, like s390x.

Frediano Ziglio (4):
      marshaller: Provide spice_marshaller_fill_iovec for Windows
      test: Add a test for subject_to_x509_name function
      lz: Avoid buffer reading overflow checking for image type
      lz: More checks on image sizes

Marc-André Lureau (4):
      Add a .gitpublish
      build-sys: improve asciidoc rules to allow multiple targets
      quic: fix sign-compare warning
      meson: fix building for big-endian host

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-01-17 13:29:28 +04:00
Marc-André Lureau
c01599b5d2 build-sys: drop support for libcacard < 2.5.1
v2.5.1 was released the 2015-11-24.

According to repology, from the distro we care about, CentOS 6,
openSUSE Leap 42.3 have too old version (0.1.2).

SPICE_CHECK_SMARTCARD is updated with spice-common.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2019-01-08 15:43:21 +04:00
Frediano Ziglio
bde8548e11 Use new common demarshallers.h
Avoids mismatching duplicate declarations causing potentially
ABI incompatibilities.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2018-10-15 14:46:10 +01:00
Frediano Ziglio
f77a1d50aa proto: Remove support for SPICE version 1
SPICE version 2 was introduced more than 8 years ago.
RHEL 6 already removed support for version 1 in the server.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2018-09-28 11:13:45 +01:00
Frediano Ziglio
44f84a7fba Update spice-common submodule
This brings in the following changes:

Eduardo Lima (Etrunko) (5):
      ci: Fix typo: celt501 -> celt051
      meson: Make options accessible through parent project
      meson: Fix checking for python
      Meson: Make use of dictionary type introduced in version 0.47
      Meson: Make use of 'feature' option type introduced in version 0.47

Frediano Ziglio (2):
      ci: Fix Meson feature option
      Fix flexible array buffer overflow

Lukáš Hrázký (1):
      spice*.proto: Replace tabs with the appropriate number of spaces

Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2018-08-16 21:33:28 +01:00
Eduardo Lima (Etrunko)
58884a4572 build: Move spice-common to subprojects/ directory
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.

The same has been done for spice-server in commit b0e141b3

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2018-08-01 14:38:15 -03:00