diff mbox series

[meta-xfce,v2,12/15] xfce4-datetime-plugin: fix build with xfce4-panel 4.21.x

Message ID 20260324125927.1070644-13-peng.zhang1.cn@windriver.com
State New
Headers show
Series meta-xfce: upgrade core components to 4.21.x and fix cascading build issues | expand

Commit Message

Zhang Peng March 24, 2026, 12:59 p.m. UTC
From: Zhang Peng <peng.zhang1.cn@windriver.com>

xfce4-panel 4.21.x added include guards to libxfce4panel sub-headers,
requiring consumers to include <libxfce4panel/libxfce4panel.h> instead
of individual headers like <libxfce4panel/xfce-panel-plugin.h>.

Since there is no new upstream release with this fix, add
-DLIBXFCE4PANEL_COMPILATION to CFLAGS as a workaround to bypass the
include guard check.

Signed-off-by: Zhang Peng <peng.zhang1.cn@windriver.com>
---
 .../datetime/xfce4-datetime-plugin_0.8.3.bb                     | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-xfce/recipes-panel-plugins/datetime/xfce4-datetime-plugin_0.8.3.bb b/meta-xfce/recipes-panel-plugins/datetime/xfce4-datetime-plugin_0.8.3.bb
index f025edd4c5..b5837f9e51 100644
--- a/meta-xfce/recipes-panel-plugins/datetime/xfce4-datetime-plugin_0.8.3.bb
+++ b/meta-xfce/recipes-panel-plugins/datetime/xfce4-datetime-plugin_0.8.3.bb
@@ -5,4 +5,6 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 
 inherit xfce-panel-plugin
 
+CFLAGS += "-DLIBXFCE4PANEL_COMPILATION"
+
 SRC_URI[sha256sum] = "6b2eeb79fb586868737426cbd2a4cd43c7f8c58507d8a2f578e0150187cc00b0"