From 862925e6289eaa555c5a98dc74472c110b24cc39 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Mon, 8 Jun 2026 23:57:09 -0700 Subject: [PATCH] xfce4-cpufreq-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-cpufreq-plugin-1.3.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-cpufreq-plugin-1.3.0/xfce4++/util/gtk.cc:21: • candidate 1: 'constexpr xfce4::PluginSize::PluginSize(const xfce4::PluginSize&)' ../../../sources/xfce4-cpufreq-plugin-1.3.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 +++++++++++++++++++ .../cpufreq/xfce4-cpufreq-plugin_1.3.0.bb | 4 ++ 2 files changed, 53 insertions(+) create mode 100644 meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin/0001-Fix-aggregate-init-failure-with-gcc16.patch diff --git a/meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin/0001-Fix-aggregate-init-failure-with-gcc16.patch b/meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin/0001-Fix-aggregate-init-failure-with-gcc16.patch new file mode 100644 index 0000000000..b786d0d153 --- /dev/null +++ b/meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin/0001-Fix-aggregate-init-failure-with-gcc16.patch @@ -0,0 +1,49 @@ +From b9dc593f2843bd0f18309bde4d79b88d9f37e32f Mon Sep 17 00:00:00 2001 +From: Mingli Yu +Date: Tue, 2 Jun 2026 23:07:08 -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-cpufreq-plugin/-/merge_requests/68] + +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