From ef7e88659f6223009fc21177f34afa4609a040ec Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Mon, 8 Jun 2026 23:57:10 -0700 Subject: [PATCH] xfce4-sensors-plugin: Fix aggregate init failure with gcc16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: ../../../sources/xfce4-sensors-plugin-1.5.0/xfce4++/util/gtk.cc:25:37: error: no matching function for call to 'xfce4::PluginSize::PluginSize()' 25 | const PluginSize RECTANGLE{true}, SQUARE{false}; | ^ • there are 2 candidates In file included from ../../../sources/xfce4-sensors-plugin-1.5.0/xfce4++/util/gtk.cc:21: • candidate 1: 'constexpr xfce4::PluginSize::PluginSize(const xfce4::PluginSize&)' ../../../sources/xfce4-sensors-plugin-1.5.0/xfce4++/util/gtk.h:64:8: 64 | struct PluginSize { | ^~~~~~~~~~ • no known conversion for argument 1 from 'bool' to 'const xfce4::PluginSize&' • candidate 2: 'constexpr xfce4::PluginSize::PluginSize(xfce4::PluginSize&&)' • no known conversion for argument 1 from 'bool' to 'xfce4::PluginSize&&' Signed-off-by: Mingli Yu Signed-off-by: Khem Raj --- ...ix-aggregate-init-failure-with-gcc16.patch | 49 +++++++++++++++++++ .../sensors/xfce4-sensors-plugin_1.5.0.bb | 4 +- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 meta-xfce/recipes-panel-plugins/sensors/xfce4-sensors-plugin/0001-Fix-aggregate-init-failure-with-gcc16.patch diff --git a/meta-xfce/recipes-panel-plugins/sensors/xfce4-sensors-plugin/0001-Fix-aggregate-init-failure-with-gcc16.patch b/meta-xfce/recipes-panel-plugins/sensors/xfce4-sensors-plugin/0001-Fix-aggregate-init-failure-with-gcc16.patch new file mode 100644 index 0000000000..6cace545c5 --- /dev/null +++ b/meta-xfce/recipes-panel-plugins/sensors/xfce4-sensors-plugin/0001-Fix-aggregate-init-failure-with-gcc16.patch @@ -0,0 +1,49 @@ +From 72f7f681c11d3f8a8ba0f4fb83d397108e16309a Mon Sep 17 00:00:00 2001 +From: Mingli Yu +Date: Wed, 3 Jun 2026 00:00:00 -0700 +Subject: [PATCH] Fix aggregate init failure with gcc16 + +Replace deleted default constructors with explicit bool constructors +to fix aggregate init failure with gcc16. + +Upstream-Status: Submitted [https://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/-/merge_requests/78] + +Signed-off-by: Mingli Yu +--- + xfce4++/util/gtk.h | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/xfce4++/util/gtk.h b/xfce4++/util/gtk.h +index 1443cb2..ef03dd1 100644 +--- a/xfce4++/util/gtk.h ++++ b/xfce4++/util/gtk.h +@@ -63,22 +63,22 @@ void connect(GtkToggleButton *widget, const char *signal, const std::function