diff options
author | Christopher Clark <christopher.w.clark@gmail.com> | 2020-02-25 16:15:59 -0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-02-27 16:59:23 -0500 |
commit | f4eec68635bc516ce99c804bdc876f74dd4523fc (patch) | |
tree | 149b04d3a85851703a72346b9b9247e5ce025b3c /recipes-extended/xen/xen-hypervisor.inc | |
parent | 593df044c6a18ac3594215f5b93ecbc3ceab9f44 (diff) | |
download | meta-virtualization-f4eec68635bc516ce99c804bdc876f74dd4523fc.tar.gz |
xen, xen-tools: update recipes for python3
Adds patches for packaged scripts to enable deployment with python3
where they have been ported to python 3 upstream.
setuptools3 inherits distutils3 which modifies ${B}, so cd ${S} is
needed in the do_configure, do_compile and do_install steps.
Remove python 2 dependency from the Xen recipes by adding a new
separate recipe, xen-python2, for packaging the remaining optional
scripts which are yet to be ported to python 3. Package naming in
the separate recipe is chosen to support transition back into the
xen-tools recipe if the scripts are ported later.
Use RSUGGESTS to support inclusion of the xen-python2 scripts in
images that include python 2.
Drop the remus package python dependency since the script was removed
in 2014: commit 5b66f84e37a45038f9e5dae7a5768a5525d1e6ba
Add python3 RDEPENDS needed to run xenmon.
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-extended/xen/xen-hypervisor.inc')
-rw-r--r-- | recipes-extended/xen/xen-hypervisor.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-extended/xen/xen-hypervisor.inc b/recipes-extended/xen/xen-hypervisor.inc index c0df1580..79fafd27 100644 --- a/recipes-extended/xen/xen-hypervisor.inc +++ b/recipes-extended/xen/xen-hypervisor.inc | |||
@@ -6,7 +6,7 @@ DESCRIPTION = "The Xen hypervisor" | |||
6 | # this allows for varying the target architecture or toolchain used | 6 | # this allows for varying the target architecture or toolchain used |
7 | # to build the different components. eg. 32-bit tools and a 64-bit hypervisor. | 7 | # to build the different components. eg. 32-bit tools and a 64-bit hypervisor. |
8 | 8 | ||
9 | inherit deploy | 9 | inherit deploy python3native |
10 | 10 | ||
11 | PACKAGES = " \ | 11 | PACKAGES = " \ |
12 | ${PN} \ | 12 | ${PN} \ |
@@ -34,7 +34,7 @@ do_configure() { | |||
34 | } | 34 | } |
35 | 35 | ||
36 | do_compile() { | 36 | do_compile() { |
37 | oe_runmake xen | 37 | oe_runmake xen PYTHON="${PYTHON}" |
38 | } | 38 | } |
39 | 39 | ||
40 | do_install() { | 40 | do_install() { |