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-python2.bb | |
| 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-python2.bb')
| -rw-r--r-- | recipes-extended/xen/xen-python2.bb | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/recipes-extended/xen/xen-python2.bb b/recipes-extended/xen/xen-python2.bb new file mode 100644 index 00000000..08d8e92a --- /dev/null +++ b/recipes-extended/xen/xen-python2.bb | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | SUMMARY = "Xen hypervisor tools written in python 2" | ||
| 2 | DESCRIPTION = "Unported utility scripts for the Xen hypervisor" | ||
| 3 | HOMEPAGE = "http://xen.org" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | SECTION = "console/tools" | ||
| 6 | |||
| 7 | SRCREV ?= "a5fcafbfbee55261853fba07149c1c795f2baf58" | ||
| 8 | |||
| 9 | XEN_REL ?= "4.12" | ||
| 10 | XEN_BRANCH ?= "stable-4.12" | ||
| 11 | |||
| 12 | SRC_URI = "git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH}" | ||
| 13 | |||
| 14 | LIC_FILES_CHKSUM ?= "file://COPYING;md5=bbb4b1bdc2c3b6743da3c39d03249095" | ||
| 15 | |||
| 16 | PV = "${XEN_REL}+git${SRCPV}" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | # Packages in this recipe do not use ${PN} to allow for simpler | ||
| 21 | # movement of the package back into the xen-tools recipe if/when | ||
| 22 | # the scripts are ported to python 3. | ||
| 23 | |||
| 24 | RDEPENDS_xen-tools-xencov-split ="python" | ||
| 25 | RDEPENDS_xen-tools-xencons = "python" | ||
| 26 | RDEPENDS_xen-tools-xenpvnetboot = "python" | ||
| 27 | RDEPENDS_xen-tools-xentrace-format = "python" | ||
| 28 | |||
| 29 | RRECOMMENDS_xen-tools-xencov-trace = "xen-tools-xencov" | ||
| 30 | RRECOMMENDS_xen-tools-xentrace-format = "xen-tools-xentrace" | ||
| 31 | |||
| 32 | PACKAGES = " \ | ||
| 33 | xen-tools-xencons \ | ||
| 34 | xen-tools-xencov-split \ | ||
| 35 | xen-tools-xenpvnetboot \ | ||
| 36 | xen-tools-xentrace-format \ | ||
| 37 | " | ||
| 38 | |||
| 39 | FILES_xen-tools-xencons = " \ | ||
| 40 | ${bindir}/xencons \ | ||
| 41 | " | ||
| 42 | |||
| 43 | FILES_xen-tools-xencov-split = " \ | ||
| 44 | ${bindir}/xencov_split \ | ||
| 45 | " | ||
| 46 | |||
| 47 | FILES_xen-tools-xenpvnetboot = " \ | ||
| 48 | ${libdir}/xen/bin/xenpvnetboot \ | ||
| 49 | " | ||
| 50 | |||
| 51 | FILES_xen-tools-xentrace-format = " \ | ||
| 52 | ${bindir}/xentrace_format \ | ||
| 53 | " | ||
| 54 | |||
| 55 | do_configure[noexec] = "1" | ||
| 56 | do_compile[noexec] = "1" | ||
| 57 | |||
| 58 | do_install() { | ||
| 59 | install -d ${D}${bindir} | ||
| 60 | install -m 0755 ${S}/tools/xentrace/xentrace_format \ | ||
| 61 | ${D}${bindir}/xentrace_format | ||
| 62 | install -m 0755 ${S}/tools/misc/xencons ${D}${bindir}/xencons | ||
| 63 | install -m 0755 ${S}/tools/misc/xencov_split ${D}${bindir}/xencov_split | ||
| 64 | |||
| 65 | install -d ${D}${libdir}/xen/bin | ||
| 66 | install -m 0755 ${S}/tools/misc/xenpvnetboot \ | ||
| 67 | ${D}${libdir}/xen/bin/xenpvnetboot | ||
| 68 | } | ||
