meta-virtualization/recipes-extended
Mingli Yu 990d6d8d2b libvirt: Only add polkit to PACKAGECONFIG if polkit is in DISTRO_FEATURES
At first, the polkit support is always enabled in
PACKAGECONFIG and since Feb 27 2014, use x11
DISTRO_FEATURES to control the polkit support
with below commit.
=========================================================
commit ce991a62d5
Author: Jonas Eriksson <jonas.eriksson@enea.com>
Date:   Thu Feb 27 17:10:09 2014 +0100

    libvirt: Disable polkit driver when there is no x11

    To avoid having the default build of libvirt depend on virtual/x11
    through polkit and consolekit, check for x11 in DISTRO_FEATURES before
    enabling the polkit support in the default PKG_CONFIG.

    Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
    Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>

 diff --git a/recipes-extended/libvirt/libvirt_1.2.1.bb b/recipes-extended/libvirt/libvirt_1.2.1.bb
 index 5365b8d..4c9cf36 100644
 --- a/recipes-extended/libvirt/libvirt_1.2.1.bb
 +++ b/recipes-extended/libvirt/libvirt_1.2.1.bb
 @@ -109,10 +109,11 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72"
  #PACKAGECONFIG ??= "xen libxl xen-inotify test remote libvirtd"

  # full config
 -PACKAGECONFIG ??= "qemu yajl uml openvz vmware vbox esx iproute2 polkit lxc test \
 +PACKAGECONFIG ??= "qemu yajl uml openvz vmware vbox esx iproute2 lxc test \
                    remote macvtap libvirtd netcf udev python ebtables \
                    ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
                    ${@base_contains('DISTRO_FEATURES', 'xen', 'xen libxl xen-inotify', '', d)} \
 +                   ${@base_contains('DISTRO_FEATURES', 'x11', 'polkit', '', d)} \
                   "
=========================================================

After below commits to add polkit as a required distro feature
in meta-oe, we should unify altogether to enable polkit if
polkit distro feature is set.
97a1a55 polkit: add polkit as a required distro
feature c049e02 polkit: inherit distro_features_check

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-07-16 19:40:49 +00:00
..
ceph ceph: set CVE_PRODUCT 2019-05-06 15:47:02 -04:00
dev86 dev86: update to version 0.16.20 2016-04-18 14:16:52 -04:00
diod diod/ops.c: add header file for makedev 2018-09-05 16:32:02 -04:00
hyperstart Use SRCPV instead of SRCREV where possible 2019-01-16 10:28:26 -05:00
images container-base: Allow building with a specific kernel binding 2019-04-07 23:09:58 -04:00
iptables Refactor to conform to YP Compat requirements 2018-04-23 12:38:50 -04:00
ipxe ipxe: Uprev and fix host compiler and linker flags. 2019-02-21 03:15:23 +00:00
irqbalance irqbalance: use git repo for source 2019-06-27 23:31:23 -04:00
kvmtool kvmtool: Werror Disabled Patch 2019-06-25 00:11:58 -04:00
libvirt libvirt: Only add polkit to PACKAGECONFIG if polkit is in DISTRO_FEATURES 2019-07-16 19:40:49 +00:00
libvmi libvmi: add byacc-native to the DEPENDS 2018-11-16 13:51:35 -05:00
nagios nagios-nrpe: fix systemd service start failed 2019-06-10 09:55:27 -04:00
oath ceph: add support for ceph 2018-09-30 21:31:21 -04:00
seabios iasl: remove iasl in favor of acpica in openembedded-core 2018-10-11 14:17:39 -04:00
vgabios vgabios: replace PN with BPN, to solve fetch failure while building for multilib 2018-03-08 16:20:01 -05:00
xen xen: update packaging for pkgconfig files in libdir 2019-05-21 10:42:14 -04:00