polkit: add REQUIRED_DISTRO_FEATURES for polkit

After below commits to add polkit as a required
distro feature:
97a1a55 polkit: add polkit as a required distro feature
c049e02 polkit: inherit distro_features_check

All recipes that includes polkit-group-rule.inc will fail to parse
when polkit is not in DISTRO_FEATURE, especially 'world'. e.g.

ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'udisks', 'polkit']

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Nicolas Dechesne
2019-02-22 18:29:47 +01:00
committed by Khem Raj
parent 987d28c27e
commit 62a8c64a02
@@ -1,6 +1,9 @@
# polkit must prepare polkitd group
DEPENDS += "polkit"
inherit distro_features_check
REQUIRED_DISTRO_FEATURES = "polkit"
inherit useradd
do_install_prepend() {