diff mbox series

[meta-oe,3/3] upower: add polkit PACKAGECONFIG option

Message ID 20241212194046.874645-3-marc.ferland@sonatest.com
State Accepted
Headers show
Series [meta-oe,1/3] upower: use archive file in SRC_URI and fix UPSTREAM_CHECK_URI | expand

Commit Message

Marc Ferland Dec. 12, 2024, 7:40 p.m. UTC
From: Marc Ferland <marc.ferland@sonatest.com>

Add a PACKAGECONFIG option for polkit. Activate it when
DISTRO_FEATURES contains 'polkit'.

Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
---
 meta-oe/recipes-support/upower/upower_1.90.6.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/upower/upower_1.90.6.bb b/meta-oe/recipes-support/upower/upower_1.90.6.bb
index 2cffdc14f..6d5fa7016 100644
--- a/meta-oe/recipes-support/upower/upower_1.90.6.bb
+++ b/meta-oe/recipes-support/upower/upower_1.90.6.bb
@@ -24,9 +24,10 @@  GTKDOC_MESON_OPTION = "gtk-doc"
 
 inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)}"
 PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist"
 PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd"
+PACKAGECONFIG[polkit] = "-Dpolkit=enabled,-Dpolkit=disabled,polkit"
 
 EXTRA_OEMESON = " \
     -Dos_backend=linux \
@@ -41,6 +42,7 @@  RDEPENDS:${PN} += "dbus"
 RRECOMMENDS:${PN} += "pm-utils"
 FILES:${PN} += " \
     ${datadir}/dbus-1/ \
+    ${datadir}/polkit-1/ \
     ${base_libdir}/udev/* \
 "