Debian Patches

Status for spice/0.16.0-3

Patch Description Author Forwarded Bugs Origin Last update
test-gst-Fix-compilation-error.patch test-gst: Fix compilation error
Specifically:

../server/tests/test-gst.cpp: In function ‘TestPipeline* create_pipeline(const char*, SampleProc, void*)’:
../server/tests/test-gst.cpp:566:41: error: either all initializer clauses should be designated or none of them should be
566 | { NULL, NULL, new_sample, NULL, ._gst_reserved={NULL} };
| ^

This fixes https://gitlab.freedesktop.org/spice/spice/-/issues/96.
Frediano Ziglio <freddy77@gmail.com> not-needed upstream, https://gitlab.freedesktop.org/spice/spice/-/commit/a904cd86430aa555a50730e9389e210637a546c1 2026-01-29
test-display-base-Fix-C-designated-initializer-for-a.patch test-display-base: Fix C++ designated initializer for anonymous union

C++ does not allow designated initializers to refer to members of
anonymous unions. The QXLInterface struct contains an anonymous union
with attached_worker/attache_worker, and the original code used
`{ .attached_worker = attached_worker }` which mixed a non-designated
clause (the outer braces without a field name) with designated clauses
for the other struct members, producing:

error: either all initializer clauses should be designated or none
of them should be

Simply removing the braces (`.attached_worker = attached_worker`) does
not help either, because C++ compilers do not recognize anonymous union
members as valid designators at the enclosing struct level.

Work around this by using an immediately-invoked lambda: the designated
initializer list skips the anonymous union (which gets zero-initialized),
and the lambda assigns `attached_worker` explicitly before returning
the fully initialized struct.
Marc-André Lureau <marcandre.lureau@redhat.com> not-needed upstream, https://gitlab.freedesktop.org/spice/spice/-/commit/59bc22a40611121b2ea7888bf3c1a501c4fc0b91 2026-02-09

All known versions for source package 'spice'

Links