[oe] [yocto][meta-openembedded][master][warrior][PATCH 2/2] python3-pywbem:solved the conflict with python-pywbem

Zang Ruochen zangrc.fnst at cn.fujitsu.com
Thu Jun 13 03:25:34 UTC 2019


-Use update-alternatives class to resolve conflicts with python-pywbem.

Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
 .../recipes-extended/pywbem/python3-pywbem_0.11.0.bb     | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta-python/recipes-extended/pywbem/python3-pywbem_0.11.0.bb b/meta-python/recipes-extended/pywbem/python3-pywbem_0.11.0.bb
index 6a35a8744..abfb8d920 100644
--- a/meta-python/recipes-extended/pywbem/python3-pywbem_0.11.0.bb
+++ b/meta-python/recipes-extended/pywbem/python3-pywbem_0.11.0.bb
@@ -1,2 +1,9 @@
 require python-pywbem.inc
-inherit setuptools3
+inherit setuptools3 update-alternatives
+
+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 = "60"
-- 
2.20.1





More information about the Openembedded-devel mailing list