commit: 2e31ab0287e9a4c8908dd6aef01f230f613304f7 Author: Nicholas Vinson <nvinson234 <AT> gmail <DOT> com> AuthorDate: Wed Dec 3 03:49:59 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Dec 4 02:43:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e31ab02
app-emulation/spice: adjust designated init. Adjust designated initializer to be C++20 compliant. Starting with g++-16, GCC will default to the C++20 standard. [sam: Note that it was sent upstream to the spice-devel ML but is not yet in the archives.] Signed-off-by: Nicholas Vinson <nvinson234 <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44870 Closes: https://github.com/gentoo/gentoo/pull/44870 Signed-off-by: Sam James <sam <AT> gentoo.org> ...spice-0.16.0-c++20-adjust-designated-init.patch | 24 ++++++++++++++++++++++ app-emulation/spice/spice-0.16.0.ebuild | 4 ++++ 2 files changed, 28 insertions(+) diff --git a/app-emulation/spice/files/spice-0.16.0-c++20-adjust-designated-init.patch b/app-emulation/spice/files/spice-0.16.0-c++20-adjust-designated-init.patch new file mode 100644 index 000000000000..dfc6a697f048 --- /dev/null +++ b/app-emulation/spice/files/spice-0.16.0-c++20-adjust-designated-init.patch @@ -0,0 +1,24 @@ +Adjust designated initializer to be C++20 compliant. Starting with +g++-16, GCC will default to the C++20 standard. + +Signed-off-by: Nicholas Vinson <[email protected]> +--- + server/tests/test-display-base.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/server/tests/test-display-base.cpp b/server/tests/test-display-base.cpp +index b220b7fe..5d0404c9 100644 +--- a/server/tests/test-display-base.cpp ++++ b/server/tests/test-display-base.cpp +@@ -806,7 +806,7 @@ static QXLInterface display_sif = { + .major_version = SPICE_INTERFACE_QXL_MAJOR, + .minor_version = SPICE_INTERFACE_QXL_MINOR + }, +- { .attached_worker = attached_worker }, ++ .attached_worker = attached_worker, + .set_compression_level = set_compression_level, + .set_mm_time = nullptr, + .get_init_info = get_init_info, +-- +2.52.0 + diff --git a/app-emulation/spice/spice-0.16.0.ebuild b/app-emulation/spice/spice-0.16.0.ebuild index 6c3162c734fc..ad8f263e5b21 100644 --- a/app-emulation/spice/spice-0.16.0.ebuild +++ b/app-emulation/spice/spice-0.16.0.ebuild @@ -65,6 +65,10 @@ pkg_setup() { [[ ${MERGE_TYPE} != binary ]] && python-any-r1_pkg_setup } +PATCHES=( + "${FILESDIR}/${P}-c++20-adjust-designated-init.patch" +) + src_configure() { # Prevent sandbox violations, bug #586560 # https://bugzilla.gnome.org/show_bug.cgi?id=744134
