summaryrefslogtreecommitdiffstats
path: root/recipes-containers/criu/criu_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/criu/criu_git.bb')
-rw-r--r--recipes-containers/criu/criu_git.bb25
1 files changed, 16 insertions, 9 deletions
diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb
index 6bbbed6c..704a0f9e 100644
--- a/recipes-containers/criu/criu_git.bb
+++ b/recipes-containers/criu/criu_git.bb
@@ -13,15 +13,14 @@ EXCLUDE_FROM_WORLD = "1"
13 13
14LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2" 14LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2"
15 15
16SRCREV = "437561d2bbc09d734ae276dbfca337569f454d54" 16SRCREV = "c703e3fd8404e506cc6156719b953ea0580d59a4"
17PV = "3.12+git${SRCPV}" 17PV = "3.13+git${SRCPV}"
18 18
19SRC_URI = "git://github.com/xemul/criu.git;protocol=git \ 19SRC_URI = "git://github.com/checkpoint-restore/criu.git \
20 file://0001-criu-Fix-toolchain-hardcode.patch \ 20 file://0001-criu-Fix-toolchain-hardcode.patch \
21 file://0002-criu-Skip-documentation-install.patch \ 21 file://0002-criu-Skip-documentation-install.patch \
22 file://0001-criu-Change-libraries-install-directory.patch \ 22 file://0001-criu-Change-libraries-install-directory.patch \
23 file://lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch \ 23 file://lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch \
24 file://0001-x86-crtools-do-not-error-when-YMM-is-missing.patch \
25 " 24 "
26 25
27COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux" 26COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
@@ -56,7 +55,9 @@ export BUILD_SYS
56export HOST_SYS 55export HOST_SYS
57export HOSTCFLAGS = "${BUILD_CFLAGS}" 56export HOSTCFLAGS = "${BUILD_CFLAGS}"
58 57
59inherit setuptools 58inherit setuptools3
59
60B = "${S}"
60 61
61PACKAGECONFIG ??= "" 62PACKAGECONFIG ??= ""
62PACKAGECONFIG[selinux] = ",,libselinux" 63PACKAGECONFIG[selinux] = ",,libselinux"
@@ -69,18 +70,24 @@ do_compile_prepend() {
69} 70}
70 71
71do_compile () { 72do_compile () {
72 oe_runmake FULL_PYTHON=${PYTHON} PYTHON=python2 73 oe_runmake FULL_PYTHON=${PYTHON} PYTHON=python3
73} 74}
74 75
75do_install () { 76do_install () {
76 export INSTALL_LIB="${libdir}/${PYTHON_DIR}/site-packages" 77 export INSTALL_LIB="${libdir}/${PYTHON_DIR}/site-packages"
77 oe_runmake PREFIX=${exec_prefix} LIBDIR=${libdir} DESTDIR="${D}" FULL_PYTHON=${PYTHON} PYTHON=python2 install 78 oe_runmake PREFIX=${exec_prefix} LIBDIR=${libdir} DESTDIR="${D}" FULL_PYTHON=${PYTHON} PYTHON=python3 install
79
80 # python3's distutils has a feature of rewriting the interpeter on setup installed
81 # scripts. 'crit' is one of those scripts. The "executable" or "e" option to the
82 # setup call should fix it, but it is being ignored. So to avoid getting our native
83 # intepreter replaced in the script, we'll do an explicit update ourselves.
84 sed -i 's%^\#\!.*%\#\!/usr/bin/env python3%g' ${D}/usr/bin/crit
78} 85}
79 86
80FILES_${PN} += "${systemd_unitdir}/ \ 87FILES_${PN} += "${systemd_unitdir}/ \
81 ${libdir}/python2.7/site-packages/ \ 88 ${libdir}/python3*/site-packages/ \
82 ${libdir}/pycriu/ \ 89 ${libdir}/pycriu/ \
83 ${libdir}/crit-0.0.1-py2.7.egg-info \ 90 ${libdir}/crit-0.0.1-py3*.egg-info \
84 " 91 "
85 92
86FILES_${PN}-staticdev += " \ 93FILES_${PN}-staticdev += " \