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.bb20
1 files changed, 11 insertions, 9 deletions
diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb
index bcb0ddb6..54383144 100644
--- a/recipes-containers/criu/criu_git.bb
+++ b/recipes-containers/criu/criu_git.bb
@@ -13,10 +13,10 @@ EXCLUDE_FROM_WORLD = "1"
13 13
14LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2" 14LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2"
15 15
16SRCREV = "a44aa6d985472d995d04fef7eae22d63c7500f8c" 16SRCREV = "4d76d1acdcd69afcedf1335c810bef5f8e18d95e"
17PV = "4.1.1+git" 17PV = "4.2+git"
18 18
19SRC_URI = "git://github.com/checkpoint-restore/criu.git;branch=master;protocol=https \ 19SRC_URI = "git://github.com/checkpoint-restore/criu.git;branch=criu-dev;protocol=https \
20 file://0001-criu-Skip-documentation-install.patch \ 20 file://0001-criu-Skip-documentation-install.patch \
21 file://0002-criu-Change-libraries-install-directory.patch \ 21 file://0002-criu-Change-libraries-install-directory.patch \
22 file://0003-crit-pycriu-build-and-install-wheels.patch \ 22 file://0003-crit-pycriu-build-and-install-wheels.patch \
@@ -24,6 +24,7 @@ SRC_URI = "git://github.com/checkpoint-restore/criu.git;branch=master;protocol=h
24 file://0005-pycriu-skip-dependency-check-during-build.patch \ 24 file://0005-pycriu-skip-dependency-check-during-build.patch \
25 file://0001-crit-explicity-set-PEP517_SOURCE_PATH.patch \ 25 file://0001-crit-explicity-set-PEP517_SOURCE_PATH.patch \
26 file://0001-plugins-cuda-pass-DEBUG_PREFIX_MAP.patch \ 26 file://0001-plugins-cuda-pass-DEBUG_PREFIX_MAP.patch \
27 file://0006-images-Makefile-fix-cross-compilation-protobuf-paths.patch \
27 " 28 "
28 29
29COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux" 30COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
@@ -40,7 +41,7 @@ EXTRA_OEMAKE:arm += "ARCH=arm UNAME-M=${CRIU_BUILD_ARCH} WERROR=0"
40EXTRA_OEMAKE:x86-64 += "ARCH=x86 WERROR=0" 41EXTRA_OEMAKE:x86-64 += "ARCH=x86 WERROR=0"
41EXTRA_OEMAKE:aarch64 += "ARCH=aarch64 WERROR=0" 42EXTRA_OEMAKE:aarch64 += "ARCH=aarch64 WERROR=0"
42 43
43EXTRA_OEMAKE:append = " SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir} PIEGEN=no" 44EXTRA_OEMAKE:append = " SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir} PIEGEN=no PROTOBUF_INCLUDEDIR=${PKG_CONFIG_SYSROOT_DIR}/usr/include"
44EXTRA_OEMAKE:append = " LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}" 45EXTRA_OEMAKE:append = " LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}"
45 46
46CFLAGS += "-D__USE_GNU -D_GNU_SOURCE " 47CFLAGS += "-D__USE_GNU -D_GNU_SOURCE "
@@ -54,6 +55,10 @@ export C_INCLUDE_PATH = "${STAGING_INCDIR}/libnl3"
54 55
55export BUILD_SYS 56export BUILD_SYS
56export HOST_SYS 57export HOST_SYS
58# Upstream's scripts/nmk/scripts/tools.mk defaults HOSTCC to 'cc' (changed
59# from 'gcc' in criu commit 36c63ecb5). The native sysroot doesn't provide
60# an unprefixed 'cc', so set HOSTCC explicitly to bitbake's BUILD_CC.
61export HOSTCC = "${BUILD_CC}"
57export HOSTCFLAGS = "${BUILD_CFLAGS}" 62export HOSTCFLAGS = "${BUILD_CFLAGS}"
58 63
59inherit python_setuptools_build_meta 64inherit python_setuptools_build_meta
@@ -69,11 +74,6 @@ CLEANBROKEN = "1"
69# WARNING: criu-3.17.1 do_package_qa: QA Issue: criu: ELF binary /usr/sbin/criu has relocations in .text [textrel] 74# WARNING: criu-3.17.1 do_package_qa: QA Issue: criu: ELF binary /usr/sbin/criu has relocations in .text [textrel]
70INSANE_SKIP:${PN} += "textrel" 75INSANE_SKIP:${PN} += "textrel"
71 76
72do_compile:prepend() {
73 rm -rf ${S}/images/google/protobuf/descriptor.proto
74 ln -s ${PKG_CONFIG_SYSROOT_DIR}/usr/include/google/protobuf/descriptor.proto ${S}/images/google/protobuf/descriptor.proto
75}
76
77do_compile () { 77do_compile () {
78 export DEBUG_PREFIX_MAP="${DEBUG_PREFIX_MAP}" 78 export DEBUG_PREFIX_MAP="${DEBUG_PREFIX_MAP}"
79 oe_runmake FULL_PYTHON=${PYTHON} PYTHON=nativepython3 79 oe_runmake FULL_PYTHON=${PYTHON} PYTHON=nativepython3
@@ -112,3 +112,5 @@ FILES:${PN}-staticdev += " \
112 ${libexecdir}/compel/std.lib.a \ 112 ${libexecdir}/compel/std.lib.a \
113 ${libexecdir}/compel/fds.lib.a \ 113 ${libexecdir}/compel/fds.lib.a \
114 " 114 "
115
116CVE_PRODUCT = "criu:checkpoint\/restore_in_userspace"