diff mbox series

[meta-oe] rrdtool: takes graph only with x11 or wayland

Message ID 20260227-rrdtool-graph-v1-1-d51410628ba4@non.se.com
State New
Headers show
Series [meta-oe] rrdtool: takes graph only with x11 or wayland | expand

Commit Message

Louis Rannou March 2, 2026, 4:37 p.m. UTC
From: Louis Rannou <louis.rannou@non.se.com>

rrdtool package configuration 'graph' relies on graphical support. Ignore
it if none of x11 org wayland is in the distro features.

Signed-off-by: Louis Rannou <louis.rannou@non.se.com>
---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


---
base-commit: 3c5711e73245e913cfec9444e626dda9ad89fd76
change-id: 20260227-rrdtool-graph-2cf28a25fd23

Best regards,
--  
Louis Rannou <louis.rannou@non.se.com>
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb b/meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb
index 69c281bd92..752ecc6c48 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.9.0.bb
@@ -25,7 +25,11 @@  AUTOTOOLS_AUXDIR = "${S}/conftools"
 
 EXTRA_AUTORECONF = "-I m4 --exclude=autopoint"
 
-PACKAGECONFIG ??= "perl graph ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+PACKAGECONFIG ??= " \
+    perl \
+    ${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'graph', '', d)} \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+"
 
 PACKAGECONFIG[python] = "--enable-python=yes \
 am_cv_python_pythondir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages \