[meta-virtualization] [daisy][PATCH] libvirt: set path to pkcheck

Shrikant Bobade bobadeshrikant at gmail.com
Tue Aug 12 00:09:05 PDT 2014


From: Shrikant Bobade <Shrikant_Bobade at mentor.com>

The libvirt build would fail whenever x11 was in DISTRO_FEATURES and the host
didn't have polkit installed (either no polkit/policykit at all, or just old
policykit).

Ensure that libvirt uses polkit rather than policykit, whether the host has
pkcheck installed or not, and ensure the path is correct per our config.

Signed-off-by: Christopher Larson <kergoth at gmail.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade at mentor.com>
---
 recipes-extended/libvirt/libvirt_1.2.2.bb |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/recipes-extended/libvirt/libvirt_1.2.2.bb b/recipes-extended/libvirt/libvirt_1.2.2.bb
index 0cd6b99..a14d465 100644
--- a/recipes-extended/libvirt/libvirt_1.2.2.bb
+++ b/recipes-extended/libvirt/libvirt_1.2.2.bb
@@ -67,6 +67,10 @@ ac_cv_path_LVS=/usr/sbin/lvs \
 ac_cv_path_PARTED=/usr/sbin/parted \
 ac_cv_path_DMSETUP=/usr/sbin/dmsetup"
 
+# Ensure that libvirt uses polkit rather than policykit, whether the host has
+# pkcheck installed or not, and ensure the path is correct per our config.
+CACHED_CONFIGUREVARS += "ac_cv_path_PKCHECK_PATH=${bindir}/pkcheck"
+
 # Some other possible paths we are not yet setting
 #ac_cv_path_RPCGEN=
 #ac_cv_path_XSLTPROC=
@@ -75,7 +79,6 @@ ac_cv_path_DMSETUP=/usr/sbin/dmsetup"
 #ac_cv_path_EBTABLES_PATH=
 #ac_cv_path_PKG_CONFIG=
 #ac_cv_path_ac_pt_PKG_CONFIG
-#ac_cv_path_PKCHECK_PATH=
 #ac_cv_path_POLKIT_AUTH=
 #ac_cv_path_DTRACE=
 #ac_cv_path_ISCSIADM=
-- 
1.7.9.5



More information about the meta-virtualization mailing list