diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2017-09-08 17:02:31 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-09-10 22:36:02 -0400 |
commit | ba35378ce5e24f2bfcb85caa806774b873983d9f (patch) | |
tree | c57c52175acf67f02ffac62234a9c1b3c7927551 /recipes-containers/criu/files | |
parent | 8d40af1278ead368afe14bce8713145730b453a2 (diff) | |
download | meta-virtualization-ba35378ce5e24f2bfcb85caa806774b873983d9f.tar.gz |
criu: uprev to version 3.4
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>
Diffstat (limited to 'recipes-containers/criu/files')
4 files changed, 44 insertions, 93 deletions
diff --git a/recipes-containers/criu/files/0001-criu-Change-libraries-install-directory.patch b/recipes-containers/criu/files/0001-criu-Change-libraries-install-directory.patch index a7214050..4908e474 100644 --- a/recipes-containers/criu/files/0001-criu-Change-libraries-install-directory.patch +++ b/recipes-containers/criu/files/0001-criu-Change-libraries-install-directory.patch | |||
@@ -1,26 +1,26 @@ | |||
1 | From 7ebde06e00b591a88397dad74a1aa47fd562eb50 Mon Sep 17 00:00:00 2001 | 1 | From 78390305829316633acee2ca5607331b0e37a104 Mon Sep 17 00:00:00 2001 |
2 | From: Jianchuan Wang <jianchuan.wang@windriver.com> | 2 | From: Mark Asselstine <mark.asselstine@windriver.com> |
3 | Date: Tue, 16 Aug 2016 09:48:08 +0800 | 3 | Date: Fri, 8 Sep 2017 15:11:31 -0400 |
4 | Subject: [PATCH 1/2] criu: Change libraries install directory | 4 | Subject: [PATCH] criu: Change libraries install directory |
5 | 5 | ||
6 | Install the libraries into /usr/lib(or /usr/lib64) | 6 | Install the libraries into /usr/lib(or /usr/lib64) |
7 | 7 | ||
8 | Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> | 8 | Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> |
9 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
9 | --- | 10 | --- |
10 | Makefile.install | 13 ------------- | 11 | Makefile.install | 13 ------------- |
11 | 1 file changed, 13 deletions(-) | 12 | 1 file changed, 13 deletions(-) |
12 | 13 | ||
13 | diff --git a/Makefile.install b/Makefile.install | 14 | diff --git a/Makefile.install b/Makefile.install |
14 | index dbc22e1..a30dc96 100644 | 15 | index 3987bcc..73d98a4 100644 |
15 | --- a/Makefile.install | 16 | --- a/Makefile.install |
16 | +++ b/Makefile.install | 17 | +++ b/Makefile.install |
17 | @@ -11,19 +11,6 @@ LIBDIR ?= $(PREFIX)/lib | 18 | @@ -9,19 +9,6 @@ LIBEXECDIR ?= $(PREFIX)/libexec |
18 | INCLUDEDIR ?= $(PREFIX)/include/criu | 19 | RUNDIR ?= /run |
19 | LIBEXECDIR ?= $(PREFIX)/libexec | ||
20 | 20 | ||
21 | -# | 21 | # |
22 | -# For recent Debian/Ubuntu with multiarch support. | 22 | -# For recent Debian/Ubuntu with multiarch support. |
23 | -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null) | 23 | -DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null) |
24 | -ifneq "$(DEB_HOST_MULTIARCH)" "" | 24 | -ifneq "$(DEB_HOST_MULTIARCH)" "" |
25 | - LIBDIR ?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH) | 25 | - LIBDIR ?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH) |
26 | -else | 26 | -else |
@@ -31,8 +31,9 @@ index dbc22e1..a30dc96 100644 | |||
31 | - endif | 31 | - endif |
32 | -endif | 32 | -endif |
33 | - | 33 | - |
34 | export BINDIR SBINDIR MANDIR SYSTEMDUNITDIR LOGROTATEDIR | 34 | -# |
35 | export INCLUDEDIR LIBDIR DESTDIR PREFIX LIBEXECDIR | 35 | # LIBDIR falls back to the standard path. |
36 | LIBDIR ?= $(PREFIX)/lib | ||
36 | 37 | ||
37 | -- | 38 | -- |
38 | 2.7.4 | 39 | 2.7.4 |
diff --git a/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch b/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch index d30f2ac2..dc5b8977 100644 --- a/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch +++ b/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From 057d30f15e81dcc4162d6fbee06f126564596397 Mon Sep 17 00:00:00 2001 | 1 | From af679853a45fe63f680c99e70416c8ac620d23b8 Mon Sep 17 00:00:00 2001 |
2 | From: Jianchuan Wang <jianchuan.wang@windriver.com> | 2 | From: Mark Asselstine <mark.asselstine@windriver.com> |
3 | Date: Wed, 7 Sep 2016 23:55:15 -0400 | 3 | Date: Fri, 8 Sep 2017 15:02:14 -0400 |
4 | Subject: [PATCH] criu: Fix toolchain hardcode | 4 | Subject: [PATCH] criu: Fix toolchain hardcode |
5 | 5 | ||
6 | Replace ":=" to "?=" so that the toolchain used by bitbake build system will | 6 | Replace ":=" to "?=" so that the toolchain used by bitbake build system will |
@@ -8,45 +8,32 @@ be taken. | |||
8 | 8 | ||
9 | Signed-off-by: Yang Shi <yang.shi@windriver.com> | 9 | Signed-off-by: Yang Shi <yang.shi@windriver.com> |
10 | Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> | 10 | Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> |
11 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
11 | --- | 12 | --- |
12 | Makefile | 2 +- | 13 | Makefile | 2 +- |
13 | criu/pie/Makefile | 2 +- | ||
14 | scripts/nmk/scripts/include.mk | 2 +- | 14 | scripts/nmk/scripts/include.mk | 2 +- |
15 | scripts/nmk/scripts/tools.mk | 40 ++++++++++++++++++++-------------------- | 15 | scripts/nmk/scripts/tools.mk | 40 ++++++++++++++++++++-------------------- |
16 | 4 files changed, 23 insertions(+), 23 deletions(-) | 16 | 3 files changed, 22 insertions(+), 22 deletions(-) |
17 | 17 | ||
18 | diff --git a/Makefile b/Makefile | 18 | diff --git a/Makefile b/Makefile |
19 | index 52cbd6a..f66279b 100644 | 19 | index f2583a2..d7f51e5 100644 |
20 | --- a/Makefile | 20 | --- a/Makefile |
21 | +++ b/Makefile | 21 | +++ b/Makefile |
22 | @@ -60,7 +60,7 @@ LDARCH ?= $(SRCARCH) | 22 | @@ -17,7 +17,7 @@ ifeq ($(origin HOSTCFLAGS), undefined) |
23 | 23 | HOSTCFLAGS := $(CFLAGS) $(USERCFLAGS) | |
24 | export SRCARCH LDARCH VDSO | 24 | endif |
25 | 25 | ||
26 | -UNAME-M := $(shell uname -m) | 26 | -UNAME-M := $(shell uname -m) |
27 | +UNAME-M ?= $(shell uname -m) | 27 | +UNAME-M ?= $(shell uname -m) |
28 | export UNAME-M | ||
29 | 28 | ||
30 | ifeq ($(ARCH),arm) | ||
31 | diff --git a/criu/pie/Makefile b/criu/pie/Makefile | ||
32 | index 125b02f..9975871 100644 | ||
33 | --- a/criu/pie/Makefile | ||
34 | +++ b/criu/pie/Makefile | ||
35 | @@ -17,7 +17,7 @@ restorer-obj-e += ./$(ARCH_DIR)/syscalls.built-in.o | ||
36 | # | 29 | # |
37 | CFLAGS := $(filter-out -pg $(CFLAGS-GCOV),$(CFLAGS)) | 30 | # Supported Architectures |
38 | CFLAGS += -iquote $(SRC_DIR)/criu/pie/piegen | ||
39 | -CFLAGS += -iquote $(SRC_DIR)/criu/arch/$(ARCH)/include | ||
40 | +CFLAGS += -iquote $(SRC_DIR)/criu/arch/$(SRCARCH)/include | ||
41 | CFLAGS += -iquote $(SRC_DIR)/criu/include | ||
42 | CFLAGS += -iquote $(SRC_DIR) | ||
43 | |||
44 | diff --git a/scripts/nmk/scripts/include.mk b/scripts/nmk/scripts/include.mk | 31 | diff --git a/scripts/nmk/scripts/include.mk b/scripts/nmk/scripts/include.mk |
45 | index 4c496f7..a7250cd 100644 | 32 | index 04ccb3a..0d63bc7 100644 |
46 | --- a/scripts/nmk/scripts/include.mk | 33 | --- a/scripts/nmk/scripts/include.mk |
47 | +++ b/scripts/nmk/scripts/include.mk | 34 | +++ b/scripts/nmk/scripts/include.mk |
48 | @@ -20,7 +20,7 @@ SUBARCH := $(shell uname -m | sed \ | 35 | @@ -20,7 +20,7 @@ SUBARCH := $(shell uname -m | sed \ |
49 | -e s/aarch64.*/arm64/) | 36 | -e s/aarch64.*/aarch64/) |
50 | 37 | ||
51 | ARCH ?= $(SUBARCH) | 38 | ARCH ?= $(SUBARCH) |
52 | -SRCARCH := $(ARCH) | 39 | -SRCARCH := $(ARCH) |
@@ -55,16 +42,20 @@ index 4c496f7..a7250cd 100644 | |||
55 | export SUBARCH ARCH SRCARCH | 42 | export SUBARCH ARCH SRCARCH |
56 | 43 | ||
57 | diff --git a/scripts/nmk/scripts/tools.mk b/scripts/nmk/scripts/tools.mk | 44 | diff --git a/scripts/nmk/scripts/tools.mk b/scripts/nmk/scripts/tools.mk |
58 | index 0538dde..e4af068 100644 | 45 | index 56dba84..1698821 100644 |
59 | --- a/scripts/nmk/scripts/tools.mk | 46 | --- a/scripts/nmk/scripts/tools.mk |
60 | +++ b/scripts/nmk/scripts/tools.mk | 47 | +++ b/scripts/nmk/scripts/tools.mk |
61 | @@ -2,28 +2,28 @@ ifndef ____nmk_defined__tools | 48 | @@ -2,30 +2,30 @@ ifndef ____nmk_defined__tools |
62 | 49 | ||
63 | # | 50 | # |
64 | # System tools shorthands | 51 | # System tools shorthands |
65 | -RM := rm -f | 52 | -RM := rm -f |
66 | -LD := $(CROSS_COMPILE)ld | 53 | +RM ?= rm -f |
67 | -CC := $(CROSS_COMPILE)gcc | 54 | HOSTLD ?= ld |
55 | -LD := $(CROSS_COMPILE)$(HOSTLD) | ||
56 | +LD ?= $(CROSS_COMPILE)$(HOSTLD) | ||
57 | HOSTCC ?= gcc | ||
58 | -CC := $(CROSS_COMPILE)$(HOSTCC) | ||
68 | -CPP := $(CC) -E | 59 | -CPP := $(CC) -E |
69 | -AS := $(CROSS_COMPILE)as | 60 | -AS := $(CROSS_COMPILE)as |
70 | -AR := $(CROSS_COMPILE)ar | 61 | -AR := $(CROSS_COMPILE)ar |
@@ -79,9 +70,7 @@ index 0538dde..e4af068 100644 | |||
79 | -PYTHON := python | 70 | -PYTHON := python |
80 | -FIND := find | 71 | -FIND := find |
81 | -SH := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ | 72 | -SH := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ |
82 | +RM ?= rm -f | 73 | +CC ?= $(CROSS_COMPILE)$(HOSTCC) |
83 | +LD ?= $(CROSS_COMPILE)ld | ||
84 | +CC ?= $(CROSS_COMPILE)gcc | ||
85 | +CPP ?= $(CC) -E | 74 | +CPP ?= $(CC) -E |
86 | +AS ?= $(CROSS_COMPILE)as | 75 | +AS ?= $(CROSS_COMPILE)as |
87 | +AR ?= $(CROSS_COMPILE)ar | 76 | +AR ?= $(CROSS_COMPILE)ar |
@@ -105,8 +94,8 @@ index 0538dde..e4af068 100644 | |||
105 | +ETAGS ?= etags | 94 | +ETAGS ?= etags |
106 | +CTAGS ?= ctags | 95 | +CTAGS ?= ctags |
107 | 96 | ||
108 | export RM LD CC CPP AS AR STRIP OBJCOPY OBJDUMP | 97 | export RM HOSTLD LD HOSTCC CC CPP AS AR STRIP OBJCOPY OBJDUMP |
109 | export NM SH MAKE MKDIR AWK PERL PYTHON SH CSCOPE | 98 | export NM SH MAKE MKDIR AWK PERL PYTHON SH CSCOPE |
110 | -- | 99 | -- |
111 | 2.8.1 | 100 | 2.7.4 |
112 | 101 | ||
diff --git a/recipes-containers/criu/files/disable-selinux.patch b/recipes-containers/criu/files/disable-selinux.patch deleted file mode 100644 index 5d5d0352..00000000 --- a/recipes-containers/criu/files/disable-selinux.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From bd2eeaddfc1f12f87184d870cc9a1adde1cf0b10 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Asselstine <mark.asselstine@windriver.com> | ||
3 | Date: Mon, 24 Apr 2017 13:08:48 -0400 | ||
4 | Subject: [PATCH] criu/Makefile.config: explicitly remove selinux support | ||
5 | |||
6 | Upstream-Status: Inappropriate [disable feature] | ||
7 | |||
8 | It shows warning when build crius if libselinux has been built already: | ||
9 | |||
10 | WARNING: QA Issue: criu rdepends on libselinux, but it isn't a build dependency? [build-deps] | ||
11 | |||
12 | Apply this patch to disable selinux support when 'selinux' is not in PACKAGECONF. | ||
13 | |||
14 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
15 | [MA: Context updated to apply against criu v2.5] | ||
16 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
17 | --- | ||
18 | criu/Makefile.config | 5 ----- | ||
19 | 1 file changed, 5 deletions(-) | ||
20 | |||
21 | diff --git a/criu/Makefile.config b/criu/Makefile.config | ||
22 | index f531b3b..37216f8 100644 | ||
23 | --- a/criu/Makefile.config | ||
24 | +++ b/criu/Makefile.config | ||
25 | @@ -7,11 +7,6 @@ ifeq ($(call try-cc,$(FEATURE_TEST_LIBBSD_DEV),-lbsd),true) | ||
26 | FEATURE_DEFINES += -DCONFIG_HAS_LIBBSD | ||
27 | endif | ||
28 | |||
29 | -ifeq ($(call pkg-config-check,libselinux),y) | ||
30 | - LIBS += -lselinux | ||
31 | - FEATURE_DEFINES += -DCONFIG_HAS_SELINUX | ||
32 | -endif | ||
33 | - | ||
34 | export DEFINES += $(FEATURE_DEFINES) | ||
35 | export CFLAGS += $(FEATURE_DEFINES) | ||
36 | |||
37 | -- | ||
38 | 2.7.4 | ||
39 | |||
diff --git a/recipes-containers/criu/files/lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch b/recipes-containers/criu/files/lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch index 8bda8c42..c2512a0e 100644 --- a/recipes-containers/criu/files/lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch +++ b/recipes-containers/criu/files/lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From 2e0c5c66786016f6443da2c1ff15ad77f018ec9b Mon Sep 17 00:00:00 2001 | 1 | From 89f9b87904bd312b817ffaa7d83abfd5e84d723d Mon Sep 17 00:00:00 2001 |
2 | From: Mark Asselstine <mark.asselstine@windriver.com> | 2 | From: Mark Asselstine <mark.asselstine@windriver.com> |
3 | Date: Mon, 24 Apr 2017 16:12:05 -0400 | 3 | Date: Fri, 8 Sep 2017 15:40:49 -0400 |
4 | Subject: [PATCH] lib/Makefile: overwrite install-lib, to allow multiarch | 4 | Subject: [PATCH] lib/Makefile: overwrite install-lib, to allow multiarch |
5 | 5 | ||
6 | I am not sure why Yocto installs python modules in arch specific | 6 | I am not sure why Yocto installs python modules in arch specific |
@@ -13,15 +13,15 @@ Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | |||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
14 | 14 | ||
15 | diff --git a/lib/Makefile b/lib/Makefile | 15 | diff --git a/lib/Makefile b/lib/Makefile |
16 | index f1c0821..c714d12 100644 | 16 | index b1bb057..06f5c5d 100644 |
17 | --- a/lib/Makefile | 17 | --- a/lib/Makefile |
18 | +++ b/lib/Makefile | 18 | +++ b/lib/Makefile |
19 | @@ -56,7 +56,7 @@ install: lib-c lib-py ../crit/crit c/criu.pc.in | 19 | @@ -56,7 +56,7 @@ install: lib-c lib-py crit/crit lib/c/criu.pc.in |
20 | $(Q) sed -e 's,@version@,$(CRIU_VERSION),' -e 's,@libdir@,$(LIBDIR),' -e 's,@includedir@,$(dir $(INCLUDEDIR)),' c/criu.pc.in > c/criu.pc | 20 | $(Q) sed -e 's,@version@,$(CRIU_VERSION),' -e 's,@libdir@,$(LIBDIR),' -e 's,@includedir@,$(dir $(INCLUDEDIR)/criu/),' lib/c/criu.pc.in > lib/c/criu.pc |
21 | $(Q) install -m 644 c/criu.pc $(DESTDIR)$(LIBDIR)/pkgconfig | 21 | $(Q) install -m 644 lib/c/criu.pc $(DESTDIR)$(LIBDIR)/pkgconfig |
22 | $(E) " INSTALL " crit | 22 | $(E) " INSTALL " crit |
23 | - $(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) --record $(CRIT_SETUP_FILES) | 23 | - $(Q) $(PYTHON_BIN) scripts/crit-setup.py install --prefix=$(DESTDIR)$(PREFIX) --record $(CRIT_SETUP_FILES) |
24 | + $(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) --record $(CRIT_SETUP_FILES) --install-lib=$(INSTALL_LIB) | 24 | + $(Q) $(PYTHON_BIN) scripts/crit-setup.py install --prefix=$(DESTDIR)$(PREFIX) --record $(CRIT_SETUP_FILES) --install-lib=$(DESTDIR)$(INSTALL_LIB) |
25 | .PHONY: install | 25 | .PHONY: install |
26 | 26 | ||
27 | uninstall: | 27 | uninstall: |