From da826a9eba6bba6996908beef8fd648b896ee1b7 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Thu, 13 Jun 2019 11:25:33 +0800 Subject: python-pywbem: solved the conflict with python3-pywbem -Use update-alternatives class to resolve conflicts with python3-pywbem. (From meta-openembedded commit: cdc746763189818b16c6eec35375a162359d4d27) Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj Signed-off-by: Tim Orling --- recipes-extended/pywbem/python-pywbem_0.11.0.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'recipes-extended') diff --git a/recipes-extended/pywbem/python-pywbem_0.11.0.bb b/recipes-extended/pywbem/python-pywbem_0.11.0.bb index 7410749..a699f1c 100644 --- a/recipes-extended/pywbem/python-pywbem_0.11.0.bb +++ b/recipes-extended/pywbem/python-pywbem_0.11.0.bb @@ -1,5 +1,5 @@ require python-pywbem.inc -inherit setuptools +inherit setuptools update-alternatives DEPENDS += " \ ${PYTHON_PN}-m2crypto-native \ @@ -11,3 +11,10 @@ RDEPENDS_${PN}_class-target += "\ ${PYTHON_PN}-m2crypto \ ${PYTHON_PN}-subprocess \ " + +ALTERNATIVE_${PN} = "mof_compiler pywbemcli wbemcli" +ALTERNATIVE_TARGET[mof_compiler] = "${bindir}/mof_compiler" +ALTERNATIVE_TARGET[pywbemcli] = "${bindir}/pywbemcli" +ALTERNATIVE_TARGET[wbemcli] = "${bindir}/wbemcli" + +ALTERNATIVE_PRIORITY = "30" -- cgit 1.2.3-korg