diff options
Diffstat (limited to 'recipes-containers/criu/criu_git.bb')
-rw-r--r-- | recipes-containers/criu/criu_git.bb | 25 |
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 | ||
14 | LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2" | 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2" |
15 | 15 | ||
16 | SRCREV = "437561d2bbc09d734ae276dbfca337569f454d54" | 16 | SRCREV = "c703e3fd8404e506cc6156719b953ea0580d59a4" |
17 | PV = "3.12+git${SRCPV}" | 17 | PV = "3.13+git${SRCPV}" |
18 | 18 | ||
19 | SRC_URI = "git://github.com/xemul/criu.git;protocol=git \ | 19 | SRC_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 | ||
27 | COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux" | 26 | COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux" |
@@ -56,7 +55,9 @@ export BUILD_SYS | |||
56 | export HOST_SYS | 55 | export HOST_SYS |
57 | export HOSTCFLAGS = "${BUILD_CFLAGS}" | 56 | export HOSTCFLAGS = "${BUILD_CFLAGS}" |
58 | 57 | ||
59 | inherit setuptools | 58 | inherit setuptools3 |
59 | |||
60 | B = "${S}" | ||
60 | 61 | ||
61 | PACKAGECONFIG ??= "" | 62 | PACKAGECONFIG ??= "" |
62 | PACKAGECONFIG[selinux] = ",,libselinux" | 63 | PACKAGECONFIG[selinux] = ",,libselinux" |
@@ -69,18 +70,24 @@ do_compile_prepend() { | |||
69 | } | 70 | } |
70 | 71 | ||
71 | do_compile () { | 72 | do_compile () { |
72 | oe_runmake FULL_PYTHON=${PYTHON} PYTHON=python2 | 73 | oe_runmake FULL_PYTHON=${PYTHON} PYTHON=python3 |
73 | } | 74 | } |
74 | 75 | ||
75 | do_install () { | 76 | do_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 | ||
80 | FILES_${PN} += "${systemd_unitdir}/ \ | 87 | FILES_${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 | ||
86 | FILES_${PN}-staticdev += " \ | 93 | FILES_${PN}-staticdev += " \ |