mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
criu: patch cleanups
Adding Upstream-Status and reformatting some of the long logs. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
a7bba8abf1
commit
769cf8be74
|
@ -7,6 +7,8 @@ Rather than using heavy handed pip (which requires network access to
|
||||||
fetch the index), mimic what we do in python_pep517.bbclass do_compile
|
fetch the index), mimic what we do in python_pep517.bbclass do_compile
|
||||||
and do_install for both crit/ and lib/pycriu
|
and do_install for both crit/ and lib/pycriu
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe specific]
|
||||||
|
|
||||||
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
|
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
|
||||||
---
|
---
|
||||||
crit/Makefile | 8 ++++++--
|
crit/Makefile | 8 ++++++--
|
||||||
|
|
|
@ -3,6 +3,8 @@ From: Tim Orling <tim.orling@konsulko.com>
|
||||||
Date: Sat, 2 Mar 2024 13:47:46 -0800
|
Date: Sat, 2 Mar 2024 13:47:46 -0800
|
||||||
Subject: [PATCH] pycriu: attr pycriu.version.__version__
|
Subject: [PATCH] pycriu: attr pycriu.version.__version__
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe specific]
|
||||||
|
|
||||||
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
|
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
|
||||||
---
|
---
|
||||||
lib/pyproject.toml | 2 +-
|
lib/pyproject.toml | 2 +-
|
||||||
|
|
|
@ -1,78 +1,82 @@
|
||||||
|
build: integrate build fix
|
||||||
|
|
||||||
|
[
|
||||||
|
From 517c0947050e63aac72f63a3bf373d76264723b9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Radostin Stoyanov <rstoyanov@fedoraproject.org>
|
||||||
|
Date: Wed, 24 Aug 2022 21:20:30 +0200
|
||||||
|
Subject: [PATCH 2/2] mount: add definition for FSOPEN_CLOEXEC
|
||||||
|
|
||||||
|
A recent change in glibc introduced `enum fsconfig_command` [1] and as a
|
||||||
|
result the compilation of criu fails with the following errors
|
||||||
|
|
||||||
|
In file included from criu/pie/util.c:3:
|
||||||
|
/usr/include/sys/mount.h:240:6: error: redeclaration of 'enum fsconfig_command'
|
||||||
|
240 | enum fsconfig_command
|
||||||
|
| ^~~~~~~~~~~~~~~~
|
||||||
|
In file included from /usr/include/sys/mount.h:32:
|
||||||
|
criu/include/linux/mount.h:11:6: note: originally defined here
|
||||||
|
11 | enum fsconfig_command {
|
||||||
|
| ^~~~~~~~~~~~~~~~
|
||||||
|
/usr/include/sys/mount.h:242:3: error: redeclaration of enumerator 'FSCONFIG_SET_FLAG'
|
||||||
|
242 | FSCONFIG_SET_FLAG = 0, /* Set parameter, supplying no value */
|
||||||
|
| ^~~~~~~~~~~~~~~~~
|
||||||
|
criu/include/linux/mount.h:12:9: note: previous definition of 'FSCONFIG_SET_FLAG' with type 'enum fsconfig_command'
|
||||||
|
12 | FSCONFIG_SET_FLAG = 0, /* Set parameter, supplying no value */
|
||||||
|
| ^~~~~~~~~~~~~~~~~
|
||||||
|
/usr/include/sys/mount.h:244:3: error: redeclaration of enumerator 'FSCONFIG_SET_STRING'
|
||||||
|
244 | FSCONFIG_SET_STRING = 1, /* Set parameter, supplying a string value */
|
||||||
|
| ^~~~~~~~~~~~~~~~~~~
|
||||||
|
criu/include/linux/mount.h:14:9: note: previous definition of 'FSCONFIG_SET_STRING' with type 'enum fsconfig_command'
|
||||||
|
14 | FSCONFIG_SET_STRING = 1, /* Set parameter, supplying a string value */
|
||||||
|
| ^~~~~~~~~~~~~~~~~~~
|
||||||
|
/usr/include/sys/mount.h:246:3: error: redeclaration of enumerator 'FSCONFIG_SET_BINARY'
|
||||||
|
246 | FSCONFIG_SET_BINARY = 2, /* Set parameter, supplying a binary blob value */
|
||||||
|
| ^~~~~~~~~~~~~~~~~~~
|
||||||
|
criu/include/linux/mount.h:16:9: note: previous definition of 'FSCONFIG_SET_BINARY' with type 'enum fsconfig_command'
|
||||||
|
16 | FSCONFIG_SET_BINARY = 2, /* Set parameter, supplying a binary blob value */
|
||||||
|
| ^~~~~~~~~~~~~~~~~~~
|
||||||
|
/usr/include/sys/mount.h:248:3: error: redeclaration of enumerator 'FSCONFIG_SET_PATH'
|
||||||
|
248 | FSCONFIG_SET_PATH = 3, /* Set parameter, supplying an object by path */
|
||||||
|
| ^~~~~~~~~~~~~~~~~
|
||||||
|
criu/include/linux/mount.h:18:9: note: previous definition of 'FSCONFIG_SET_PATH' with type 'enum fsconfig_command'
|
||||||
|
18 | FSCONFIG_SET_PATH = 3, /* Set parameter, supplying an object by path */
|
||||||
|
| ^~~~~~~~~~~~~~~~~
|
||||||
|
/usr/include/sys/mount.h:250:3: error: redeclaration of enumerator 'FSCONFIG_SET_PATH_EMPTY'
|
||||||
|
250 | FSCONFIG_SET_PATH_EMPTY = 4, /* Set parameter, supplying an object by (empty) path */
|
||||||
|
| ^~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
criu/include/linux/mount.h:20:9: note: previous definition of 'FSCONFIG_SET_PATH_EMPTY' with type 'enum fsconfig_command'
|
||||||
|
20 | FSCONFIG_SET_PATH_EMPTY = 4, /* Set parameter, supplying an object by (empty) path */
|
||||||
|
| ^~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
/usr/include/sys/mount.h:252:3: error: redeclaration of enumerator 'FSCONFIG_SET_FD'
|
||||||
|
252 | FSCONFIG_SET_FD = 5, /* Set parameter, supplying an object by fd */
|
||||||
|
| ^~~~~~~~~~~~~~~
|
||||||
|
criu/include/linux/mount.h:22:9: note: previous definition of 'FSCONFIG_SET_FD' with type 'enum fsconfig_command'
|
||||||
|
22 | FSCONFIG_SET_FD = 5, /* Set parameter, supplying an object by fd */
|
||||||
|
| ^~~~~~~~~~~~~~~
|
||||||
|
/usr/include/sys/mount.h:254:3: error: redeclaration of enumerator 'FSCONFIG_CMD_CREATE'
|
||||||
|
254 | FSCONFIG_CMD_CREATE = 6, /* Invoke superblock creation */
|
||||||
|
| ^~~~~~~~~~~~~~~~~~~
|
||||||
|
criu/include/linux/mount.h:24:9: note: previous definition of 'FSCONFIG_CMD_CREATE' with type 'enum fsconfig_command'
|
||||||
|
24 | FSCONFIG_CMD_CREATE = 6, /* Invoke superblock creation */
|
||||||
|
| ^~~~~~~~~~~~~~~~~~~
|
||||||
|
/usr/include/sys/mount.h:256:3: error: redeclaration of enumerator 'FSCONFIG_CMD_RECONFIGURE'
|
||||||
|
256 | FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
|
||||||
|
| ^~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
criu/include/linux/mount.h:26:9: note: previous definition of 'FSCONFIG_CMD_RECONFIGURE' with type 'enum fsconfig_command'
|
||||||
|
26 | FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
|
||||||
|
|
||||||
|
This patch adds definition for FSOPEN_CLOEXEC to solve this problem. In particular,
|
||||||
|
sys/mount.h includes ifndef check for FSOPEN_CLOEXEC surrounding `enum fsconfig_command`.
|
||||||
|
|
||||||
|
[1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=7eae6a91e9b1670330c9f15730082c91c0b1d570
|
||||||
|
|
||||||
|
Reported-by: Younes Manton (@ymanton)
|
||||||
|
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
|
||||||
|
]
|
||||||
|
|
||||||
Upstream-Status: Backport [https://github.com/checkpoint-restore/criu/commit/517c0947]
|
Upstream-Status: Backport [https://github.com/checkpoint-restore/criu/commit/517c0947]
|
||||||
|
|
||||||
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||||||
|
|
||||||
From 517c0947050e63aac72f63a3bf373d76264723b9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Radostin Stoyanov <rstoyanov@fedoraproject.org>
|
|
||||||
Date: Wed, 24 Aug 2022 21:20:30 +0200
|
|
||||||
Subject: [PATCH 2/2] mount: add definition for FSOPEN_CLOEXEC
|
|
||||||
|
|
||||||
A recent change in glibc introduced `enum fsconfig_command` [1] and as a
|
|
||||||
result the compilation of criu fails with the following errors
|
|
||||||
|
|
||||||
In file included from criu/pie/util.c:3:
|
|
||||||
/usr/include/sys/mount.h:240:6: error: redeclaration of 'enum fsconfig_command'
|
|
||||||
240 | enum fsconfig_command
|
|
||||||
| ^~~~~~~~~~~~~~~~
|
|
||||||
In file included from /usr/include/sys/mount.h:32:
|
|
||||||
criu/include/linux/mount.h:11:6: note: originally defined here
|
|
||||||
11 | enum fsconfig_command {
|
|
||||||
| ^~~~~~~~~~~~~~~~
|
|
||||||
/usr/include/sys/mount.h:242:3: error: redeclaration of enumerator 'FSCONFIG_SET_FLAG'
|
|
||||||
242 | FSCONFIG_SET_FLAG = 0, /* Set parameter, supplying no value */
|
|
||||||
| ^~~~~~~~~~~~~~~~~
|
|
||||||
criu/include/linux/mount.h:12:9: note: previous definition of 'FSCONFIG_SET_FLAG' with type 'enum fsconfig_command'
|
|
||||||
12 | FSCONFIG_SET_FLAG = 0, /* Set parameter, supplying no value */
|
|
||||||
| ^~~~~~~~~~~~~~~~~
|
|
||||||
/usr/include/sys/mount.h:244:3: error: redeclaration of enumerator 'FSCONFIG_SET_STRING'
|
|
||||||
244 | FSCONFIG_SET_STRING = 1, /* Set parameter, supplying a string value */
|
|
||||||
| ^~~~~~~~~~~~~~~~~~~
|
|
||||||
criu/include/linux/mount.h:14:9: note: previous definition of 'FSCONFIG_SET_STRING' with type 'enum fsconfig_command'
|
|
||||||
14 | FSCONFIG_SET_STRING = 1, /* Set parameter, supplying a string value */
|
|
||||||
| ^~~~~~~~~~~~~~~~~~~
|
|
||||||
/usr/include/sys/mount.h:246:3: error: redeclaration of enumerator 'FSCONFIG_SET_BINARY'
|
|
||||||
246 | FSCONFIG_SET_BINARY = 2, /* Set parameter, supplying a binary blob value */
|
|
||||||
| ^~~~~~~~~~~~~~~~~~~
|
|
||||||
criu/include/linux/mount.h:16:9: note: previous definition of 'FSCONFIG_SET_BINARY' with type 'enum fsconfig_command'
|
|
||||||
16 | FSCONFIG_SET_BINARY = 2, /* Set parameter, supplying a binary blob value */
|
|
||||||
| ^~~~~~~~~~~~~~~~~~~
|
|
||||||
/usr/include/sys/mount.h:248:3: error: redeclaration of enumerator 'FSCONFIG_SET_PATH'
|
|
||||||
248 | FSCONFIG_SET_PATH = 3, /* Set parameter, supplying an object by path */
|
|
||||||
| ^~~~~~~~~~~~~~~~~
|
|
||||||
criu/include/linux/mount.h:18:9: note: previous definition of 'FSCONFIG_SET_PATH' with type 'enum fsconfig_command'
|
|
||||||
18 | FSCONFIG_SET_PATH = 3, /* Set parameter, supplying an object by path */
|
|
||||||
| ^~~~~~~~~~~~~~~~~
|
|
||||||
/usr/include/sys/mount.h:250:3: error: redeclaration of enumerator 'FSCONFIG_SET_PATH_EMPTY'
|
|
||||||
250 | FSCONFIG_SET_PATH_EMPTY = 4, /* Set parameter, supplying an object by (empty) path */
|
|
||||||
| ^~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
criu/include/linux/mount.h:20:9: note: previous definition of 'FSCONFIG_SET_PATH_EMPTY' with type 'enum fsconfig_command'
|
|
||||||
20 | FSCONFIG_SET_PATH_EMPTY = 4, /* Set parameter, supplying an object by (empty) path */
|
|
||||||
| ^~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
/usr/include/sys/mount.h:252:3: error: redeclaration of enumerator 'FSCONFIG_SET_FD'
|
|
||||||
252 | FSCONFIG_SET_FD = 5, /* Set parameter, supplying an object by fd */
|
|
||||||
| ^~~~~~~~~~~~~~~
|
|
||||||
criu/include/linux/mount.h:22:9: note: previous definition of 'FSCONFIG_SET_FD' with type 'enum fsconfig_command'
|
|
||||||
22 | FSCONFIG_SET_FD = 5, /* Set parameter, supplying an object by fd */
|
|
||||||
| ^~~~~~~~~~~~~~~
|
|
||||||
/usr/include/sys/mount.h:254:3: error: redeclaration of enumerator 'FSCONFIG_CMD_CREATE'
|
|
||||||
254 | FSCONFIG_CMD_CREATE = 6, /* Invoke superblock creation */
|
|
||||||
| ^~~~~~~~~~~~~~~~~~~
|
|
||||||
criu/include/linux/mount.h:24:9: note: previous definition of 'FSCONFIG_CMD_CREATE' with type 'enum fsconfig_command'
|
|
||||||
24 | FSCONFIG_CMD_CREATE = 6, /* Invoke superblock creation */
|
|
||||||
| ^~~~~~~~~~~~~~~~~~~
|
|
||||||
/usr/include/sys/mount.h:256:3: error: redeclaration of enumerator 'FSCONFIG_CMD_RECONFIGURE'
|
|
||||||
256 | FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
|
|
||||||
| ^~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
criu/include/linux/mount.h:26:9: note: previous definition of 'FSCONFIG_CMD_RECONFIGURE' with type 'enum fsconfig_command'
|
|
||||||
26 | FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
|
|
||||||
|
|
||||||
This patch adds definition for FSOPEN_CLOEXEC to solve this problem. In particular,
|
|
||||||
sys/mount.h includes ifndef check for FSOPEN_CLOEXEC surrounding `enum fsconfig_command`.
|
|
||||||
|
|
||||||
[1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=7eae6a91e9b1670330c9f15730082c91c0b1d570
|
|
||||||
|
|
||||||
Reported-by: Younes Manton (@ymanton)
|
|
||||||
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
|
|
||||||
---
|
---
|
||||||
criu/include/linux/mount.h | 10 ++++++++--
|
criu/include/linux/mount.h | 10 ++++++++--
|
||||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
||||||
|
|
|
@ -5,6 +5,8 @@ Subject: [PATCH] pycriu: --skip-dependency-check during build
|
||||||
|
|
||||||
It complains about needing protobuf<4, python3-protobuf is 4.25 in meta-python
|
It complains about needing protobuf<4, python3-protobuf is 4.25 in meta-python
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [oe specific]
|
||||||
|
|
||||||
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
|
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
|
||||||
---
|
---
|
||||||
lib/Makefile | 4 ++--
|
lib/Makefile | 4 ++--
|
||||||
|
|
Loading…
Reference in New Issue
Block a user