summaryrefslogtreecommitdiffstats
path: root/recipes-containers/criu
Commit message (Collapse)AuthorAgeFilesLines
* criu: uprev to version 3.10Mark Asselstine2018-08-023-13/+14
| | | | | | | | | | | | | | | | | | | | | | A fairly straightforward uprev requiring minimal patch refreshing since a few hunks were failing due to conflicts with upstream updates. Unfortunately upstream starting using the now overloaded "PYTHON" variable in their Makefiles, this is not the path to the python executable but rather the name 'python2' or 'python3' which is used to determine which local directories to include. Due to this we must explicitly assign values to 'PYTHON_FULL' and 'PYTHON'. We use 'python2' since we are using 'setuptools' and therefore are explicitly using python v2, at some point we might want to make this recipe work with either python v2 or v3 but for now we continue to explicitly use v2. Instead of using version specific filename we switch to using _git.bb which is inline with similar 'git' recipes found in oe-core and other repos. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: upgrade to 3.9Zheng Ruoqin2018-07-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | 1) Upgrade criu from 3.4 to 3.9. 2) Delete fix-building-on-newest-glibc-and-kernel.patch for it has been merged in upstream. 3) Add CFLAGS_arm += "-D__WORDSIZE" add this CFLAGS to solve the compile problem for arm. The log is as following: | ....../tmp/work/armv5e-poky-linux-gnueabi/criu/3.9+gitAUTOINC+202b7745bd-r0/recipe-sysroot/usr/include/bits/wordsize.h:36:2: error: #error "__WORDSIZE is not defined" | #error "__WORDSIZE is not defined" | ^ | ....../tmp/work/armv5e-poky-linux-gnueabi/criu/3.9+gitAUTOINC+202b7745bd-r0/recipe-sysroot/usr/include/bits/wordsize.h:59:2: error: # 4) Add export C_INCLUDE_PATH="${STAGING_INCDIR}/libnl3" add C_INCLUDE_PATH to solve the compile problem for arm. which is libnetlink.c can't find head file. | In file included from criu/libnetlink.c:5: | ....../tmp/work/armv5e-p | oky-linux-gnueabi/criu/3.9+gitAUTOINC+202b7745bd-r0/recipe-sysroot/usr/include/libnl3/netlink/attr.h:15:10: fatal error: netlink/netlink.h: No such file or directory #include <netlink/netlink.h> Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: refresh patches to fix QA warningYi Zhao2018-04-135-26/+16
| | | | | | | Refresh patches with devtool command to fix do_patch warning. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: fix build failure with newer glibc and kernelYi Zhao2018-04-132-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | With newer glibc(>= 2.26) and kernel(>=4.14), criu would fail to build: In file included from /buildarea/build/tmp/work/core2-64-poky-linux/criu/3.4+gitAUTOINC+a31c1854e1-r0/recipe-sysroot/usr/include/linux/aio_abi.h:31:0, from criu/cr-check.c:24: /buildarea/build/tmp/work/core2-64-poky-linux/criu/3.4+gitAUTOINC+a31c1854e1-r0/recipe-sysroot/usr/include/sys/mount.h:35:3: error: expected identifier before numeric constant MS_RDONLY = 1, /* Mount read-only. */ ^ CC criu/parasite-syscall.o CC criu/pipes.o CC criu/pie-util.o CC criu/pie-util-vdso.o CC criu/plugin.o /buildarea/build/tmp/work/core2-64-poky-linux/criu/3.4+gitAUTOINC+a31c1854e1-r0/git/scripts/nmk/scripts/build.mk:110: recipe for target 'criu/cr-check.o' failed make[2]: *** [criu/cr-check.o] Error 1 Backport a patch to fix it. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: set CLEANBROKEN to 1Chen Qi2017-12-281-0/+2
| | | | | | | | | | | | Rebuilding criu would cause the following error. | make: .gitid: Command not found | make: *** [Makefile:260: clean-top] Error 127 Fix this problem by setting CLEANBROKEN to "1". Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: uprev to version 3.4Mark Asselstine2017-09-105-98/+52
| | | | | | | | | | | | | | | | | | | | Our current version of criu is about a year old and has some compilation issues with the latest gcc (currently it is unbuildable). Since the version of criu and the kernel version are fairly tightly coupled it wouldn't be surprising of this old criu would also be exhibiting some runtime issues with our fairly new kernel version. With the above in mind we uprev to criu v3.4 which was recently released. This requires several of the patches to be updated (mostly context). We are able to drop the selinux related change as RSS prevents the situation this was working around from happenning. This was validated using https://criu.org/Simple_loop (and a few variants). Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* Revert "criu: Correct the installation directory for python modules"Bruce Ashfield2017-09-102-31/+0
| | | | This reverts commit 90c1046b58c50f127ea711d83874a1dc4b68f7ed.
* criu: Correct the installation directory for python modulesJianchuan Wang2017-08-312-0/+31
| | | | | Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: add bash rdependsHe Zhe2017-06-271-0/+1
| | | | | | | | | | Fix the following QA warning: QA Issue: /usr/libexec/criu/scripts/systemd-autofs-restart.sh contained in package criu requires /bin/bash, but no providers found in RDEPENDS_criu? [file-rdeps] Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: add libbsd rdependsHe Zhe2017-06-271-1/+1
| | | | | | | | | | | Fix the following QA warning: QA Issue: criu rdepends on libbsd, but it isn't a build dependency? [build-deps] This had been fixed by 1fd94d853545b55173b1f0e2cf683a5d21f8cd7b, but then was overwritten by b9b7ece0cd52966467035fb71ad9ba472bf24b88 Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: force python to install in ${libdir}Mark Asselstine2017-04-242-0/+32
| | | | | | | | | | | Historically Yocto installs python modules in ${libdir} and not the no-arch variant. The criu install was following every other distros use of the non-arch variant, /usr/lib, which was being picked up by the QA check. Modify the criu Makefile to enable us to overwrite this location by using setup.py's install-lib directive. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: depend on util-linux-nativeMark Asselstine2017-04-241-1/+1
| | | | | | | | | | To provide hexdump which is used as part of the build process. Resolves | criu/pie/../../scripts/gen-offsets.sh: line 37: hexdump: command not found | criu/pie/Makefile:96: recipe for target 'criu/pie/parasite-blob.h' failed Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* crui: update selinux patch to apply to v2.5Mark Asselstine2017-04-241-11/+24
| | | | | | | | | | I am not sure how the uprev to v2.5 was completed without seeing this patch failure but regardless the file being patched was moved to the 'criu' directory as part of the v2.5 release. Update the path found in the patch and update the context in the patch such that it applies. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: uprev to 2.5Jianchuan Wang2016-09-124-82/+140
| | | | | Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: fix build-deps qa warningKai Kang2016-06-062-4/+34
| | | | | | | | | | | | | It shows warning when build crius if libselinux has been built already: WARNING: QA Issue: criu rdepends on libselinux, but it isn't a build dependency? [build-deps] Add a patch to disable selinux support when 'selinux' is not in PACKAGECONF. And update indentation at same time. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: remove protobuf-2.6.1 and the relatedZumeng Chen2016-05-208-306/+0
| | | | | | | | | | Since CRIU does not explicitly nominate the version of protobuf as 2.6.1, which should not be included just here. And it seems protobuf-2.5.0 is doable or this CRIU version based on a basic testing according to criu.org/Simple_loop as well, so remove it from criu. Signed-off-by: Zumeng Chen <zumeng.chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: Fix QA warningYunguo Wei2016-05-031-1/+1
| | | | | | | | | This is fixing: QA Issue: criu rdepends on libbsd, but it isn't a build dependency? [build-deps] Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf-c: Inherit pkgconfigJianchuan Wang2015-12-021-1/+1
| | | | | | | Finding the libprotobuf.* incorrectly if the host have pkgconfig Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf-c: Add protobuf's pkgconfig path into PKG_CONFIG_PATHJianchuan Wang2015-10-021-0/+4
| | | | | | | | | Add the protobuf's pkgconfig path into PKG_CONFIG_PATH so that pkg-config can find the protoc from sysroot in the configure process. And don't conflict even if installing the protobuf in the localhost. Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: upgrade 2.5.0 -> 2.6.1Jianchuan Wang2015-09-083-9/+35
| | | | | Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf-c: upgrade 0.15 -> 1.1.1Jianchuan Wang2015-09-083-22/+70
| | | | | Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: upgrade 1.4 -> 1.6Jianchuan Wang2015-09-082-7/+71
| | | | | Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: upgrade from version from 1.2 to 1.4Nam Ninh2015-03-307-104/+82
| | | | | | | | | Upgrade criu from version from 1.2 to 1.4. criu is the only user of protobuf and only supported on x86 and arm, so limit protobuf support on x86 and arm too. Signed-off-by: Nam Ninh <nam.ninh@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: add recipe for v1.2 releaseAlexey Firago2014-09-192-0/+81
| | | | | | | | Building and basic functionality verified on Wandboard-dual with linux-wandboard_3.10.17. Signed-off-by: Alexey Firago <alexey_firago@mentor.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: fix build/source split for libdir fixBruce Ashfield2014-08-271-1/+1
| | | | | | | Ensure that we modify the libdir in the build directory, not the source directory, to respect the splitting of source and build. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: fix ptest compile errorsZibo Zhao2014-08-271-0/+1
| | | | | | | | | | | | | | While buiding protobuf ptest on Centos 6.4, the build failed with errors: ...libprotobuf.so: undefined reference to `memcpy@GLIBC_2.14' This is due to protobuf.pc still contains /usr/lib64 as libdir which are not good for cross compiling. Replace it with proper sysroot path. Signed-off-by: Zibo Zhao <Zibo.Zhao@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: respect autotools build/source splitBruce Ashfield2014-08-221-4/+6
| | | | | | | Tweak the ptest build rule to look for artifacts in the build directory instead of source, since build and source are split on the latest oe-core. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: add native package to solve self-dependencyKeith Holman2014-08-222-3/+26
| | | | | | | | | | | | The installation of Google Protocol Buffers python header files requires the ability to run the "protoc" compiler on the host to generate the Python header files. This fix adds a native package that builds Google Protocol Buffers for the host machine to provide the compiler that is used to cross-compile the package for the target machine. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: add examples when test feature enabledKeith Holman2014-08-223-4/+128
| | | | | | | | | Google Protocol Buffers includes some basic example applications to show its functionality. This fix installs these examples to the target system when the "test" feature is enabled in the configuration. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: replace spaces with tabs in recipeKeith Holman2014-08-221-7/+7
| | | | | | | | | | The recipe uses 4 spaces instead of tabs when indenting. The recipe style guidelines indicate that tabs should be used instead. This simple fix replaces the spaces with tabs where appropriate in the recipe file. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: add python supportKeith Holman2014-08-221-1/+15
| | | | | | | | | | | The compiler generated by Google Protocol Buffers currently includes support for Python bindings. However, currently the python files required to use the generated files are not included on the system. This fix installs the python header files using python setup-tools after the compiler is built. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: update google protocol buffers to 2.5.0Keith Holman2014-08-221-4/+6
| | | | | | | | | | | Upgrade Google Protocol Buffers to version 2.5.0. The previous version 2.4.1 is getting quite old (released April 2011). The newer version provides bug fixes and more functionality. This version adds some speed optimization and the ability to allow multiple enum symbols to have the same value. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* Added CRIU recipeDavid Nyström2012-12-072-0/+76
| | | | | Signed-off-by: David Nyström <david.nystrom@enea.com> Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* Added protobuf criu dependencyDavid Nyström2012-12-071-0/+18
| | | | | Signed-off-by: David Nyström <david.nystrom@enea.com> Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* Added protobuf-c criu dependencyDavid Nyström2012-12-072-0/+39
Signed-off-by: David Nyström <david.nystrom@enea.com> Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>