summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2026-06-08 23:57:09 -0700
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-06-09 07:26:32 -0700
commit862925e6289eaa555c5a98dc74472c110b24cc39 (patch)
tree03c924e50ef165e6d8b21c0bfa5852be02689f08
parentc0e52930a90255fb4b277230fc0be3d777f3a67b (diff)
downloadmeta-openembedded-862925e6289eaa555c5a98dc74472c110b24cc39.tar.gz
xfce4-cpufreq-plugin: Fix aggregate init failure with gcc16
Fixes: ../../../sources/xfce4-cpufreq-plugin-1.3.0/xfce4++/util/gtk.cc:25:37: error: no matching function for call to 'xfce4::PluginSize::PluginSize(<brace-enclosed initializer list>)' 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 <mingli.yu@windriver.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin/0001-Fix-aggregate-init-failure-with-gcc16.patch49
-rw-r--r--meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin_1.3.0.bb4
2 files changed, 53 insertions, 0 deletions
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 @@
1From b9dc593f2843bd0f18309bde4d79b88d9f37e32f Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Tue, 2 Jun 2026 23:07:08 -0700
4Subject: [PATCH] Fix aggregate init failure with gcc16
5
6Replace deleted default constructors with explicit bool constructors
7to fix aggregate init failure with gcc16.
8
9Upstream-Status: Submitted [https://gitlab.xfce.org/panel-plugins/xfce4-cpufreq-plugin/-/merge_requests/68]
10
11Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
12---
13 xfce4++/util/gtk.h | 8 ++++----
14 1 file changed, 4 insertions(+), 4 deletions(-)
15
16diff --git a/xfce4++/util/gtk.h b/xfce4++/util/gtk.h
17index 1443cb2..ef03dd1 100644
18--- a/xfce4++/util/gtk.h
19+++ b/xfce4++/util/gtk.h
20@@ -63,22 +63,22 @@ void connect(GtkToggleButton *widget, const char *signal, const std::function<vo
21
22 struct PluginSize {
23 bool rectangle; /* Whether the panel plugin size is forced to be a square. Otherwise, the plugin can be a rectangle. */
24- PluginSize() = delete;
25+ constexpr explicit PluginSize(bool r) : rectangle(r) {}
26 };
27
28 struct Propagation {
29 bool stop; /* Whether to prevent the event from propagating to other handlers */
30- Propagation() = delete;
31+ constexpr explicit Propagation(bool s) : stop(s) {}
32 };
33
34 struct TimeoutResponse {
35 bool again; /* Invoke the timeout handler again, otherwise stop the timer */
36- TimeoutResponse() = delete;
37+ constexpr explicit TimeoutResponse(bool a) : again(a) {}
38 };
39
40 struct TooltipTime {
41 bool now; /* Whether to show the tooltip now or later */
42- TooltipTime() = delete;
43+ constexpr explicit TooltipTime(bool n) : now(n) {}
44 };
45
46 extern const PluginSize RECTANGLE, SQUARE;
47--
482.49.0
49
diff --git a/meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin_1.3.0.bb b/meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin_1.3.0.bb
index a0b48b8671..093b43c88f 100644
--- a/meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin_1.3.0.bb
+++ b/meta-xfce/recipes-panel-plugins/cpufreq/xfce4-cpufreq-plugin_1.3.0.bb
@@ -7,4 +7,8 @@ XFCE_COMPRESS_TYPE = "xz"
7 7
8inherit xfce-panel-plugin perlnative 8inherit xfce-panel-plugin perlnative
9 9
10SRC_URI += "\
11 file://0001-Fix-aggregate-init-failure-with-gcc16.patch \
12"
13
10SRC_URI[sha256sum] = "baa5b90f72e8c262777f1e246acae125af489e2c168a5f7f890d9d2b5567ec20" 14SRC_URI[sha256sum] = "baa5b90f72e8c262777f1e246acae125af489e2c168a5f7f890d9d2b5567ec20"