Skip to contentSkip to conversation

sysprof: Enable sysprofd/libsysprof only when polkit in DISTRO_FEATURES

PATCH New Khem Raj 1 participant 1 message Apr 23, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 sysprof: Enable sysprofd/libsysprof only when polkit in DISTRO_FEATURES

Cc Andreas Müller <[email protected]>
---
 meta-gnome/recipes-gnome/sysprof/sysprof_3.36.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-gnome/recipes-gnome/sysprof/sysprof_3.36.0.bb +3 -1
index 275fbaa699..e9fa25c63b 100644
@@ -21,7 +21,9 @@ SRC_URI += " \
     file://0002-tests-use-G_GSIZE_FORMAT-instead-of-G_GUINT64_FORMAT.patch \
 "
 
-PACKAGECONFIG ?= "sysprofd libsysprof ${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk', '', d)}"
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'sysprofd', '', d)} \
+                  ${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'libsysprof', '', d)} \
+                  ${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk', '', d)}"
 PACKAGECONFIG[gtk] = "-Denable_gtk=true,-Denable_gtk=false,gtk+3 libdazzle"
 PACKAGECONFIG[sysprofd] = "-Dwith_sysprofd=bundled,-Dwith_sysprofd=none,polkit"
 PACKAGECONFIG[libsysprof] = "-Dlibsysprof=true,-Dlibsysprof=false,polkit"
Signature · 1 line
2.31.1