Skip to contentSkip to conversation

Update criu to 3.17.1

PATCH In review [email protected] 2 participants 4 messages Sep 29, 2022 – Oct 4, 2022

lore
Share & tools
lore
#0 lore raw

cover Update criu to 3.17.1

From: Kai Kang <[email protected]>

Hi Bruce,

The latest release is 3.17.1 but not include commits to fix for glibc 2.36. So backport them at same time.

Kai Kang (1):
criu: 3.17 -> 3.17.1

 recipes-containers/criu/criu_git.bb           |  12 +-
 ...u-Change-libraries-install-directory.patch |   6 +-
 .../0004-criu-fix-conflicting-headers.patch   | 288 ++++++++++++++++++
 ...nt-add-definition-for-FSOPEN_CLOEXEC.patch | 110 +++++++
 4 files changed, 411 insertions(+), 5 deletions(-)
 create mode 100644 recipes-containers/criu/files/0004-criu-fix-conflicting-headers.patch
 create mode 100644 recipes-containers/criu/files/0005-mount-add-definition-for-FSOPEN_CLOEXEC.patch
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 criu: 3.17 -> 3.17.1

From: Kai Kang <[email protected]>

Update criu from 3.17 to 3.17.1:

* update file path and remove __pycache__ directory in do_install
* rebase 0002-criu-Change-libraries-install-directory.patch
* backport patches to fix build errors with glibc 2.36.

---
 recipes-containers/criu/criu_git.bb           |  12 +-
 ...u-Change-libraries-install-directory.patch |   6 +-
 .../0004-criu-fix-conflicting-headers.patch   | 288 ++++++++++++++++++
 ...nt-add-definition-for-FSOPEN_CLOEXEC.patch | 110 +++++++
 4 files changed, 411 insertions(+), 5 deletions(-)
 create mode 100644 recipes-containers/criu/files/0004-criu-fix-conflicting-headers.patch
 create mode 100644 recipes-containers/criu/files/0005-mount-add-definition-for-FSOPEN_CLOEXEC.patch
recipes-containers/criu/criu_git.bb +8 -4
index 46401f9..733e911 100644
@@ -13,14 +13,16 @@ EXCLUDE_FROM_WORLD = "1"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=412de458544c1cb6a2b512cd399286e2"
 
-SRCREV = "4f8f295e57e68740699479d12c1ad251e6dd859f"
-PV = "3.17+git${SRCPV}"
+SRCREV = "d46f40f4ff0c724e0b9f0f8a2e8c043806897e94"
+PV = "3.17.1+git${SRCPV}"
 
 SRC_URI = "git://github.com/checkpoint-restore/criu.git;branch=master;protocol=https \
            file://0001-criu-Skip-documentation-install.patch \
            file://0002-criu-Change-libraries-install-directory.patch \
            file://0003-lib-Makefile-overwrite-install-lib-to-allow-multiarc.patch \
-          "
+           file://0004-criu-fix-conflicting-headers.patch \
+           file://0005-mount-add-definition-for-FSOPEN_CLOEXEC.patch \
+           "
 
 COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
 
@@ -81,7 +83,9 @@ do_install () {
     # scripts. 'crit' is one of those scripts. The "executable" or "e" option to the
     # setup call should fix it, but it is being ignored. So to avoid getting our native
     # intepreter replaced in the script, we'll do an explicit update ourselves.
-    sed -i 's%^\#\!.*%\#\!/usr/bin/env python3%' ${D}/usr/bin/crit ${D}${libdir}/python3*/site-packages/crit-0.0.1-py3*.egg/EGG-INFO/scripts/crit
+    sed -i 's%^\#\!.*%\#\!/usr/bin/env python3%' ${D}/usr/bin/crit ${D}${libdir}/python3*/site-packages/crit-*-py3*.egg/EGG-INFO/scripts/crit
+
+    rm -rf ${D}/__pycache__
 }
 
 FILES:${PN} += "${systemd_unitdir}/ \
recipes-containers/criu/files/0002-criu-Change-libraries-install-directory.patch +5 -1
index 453be13..ad8c9f1 100644
@@ -7,6 +7,10 @@ Install the libraries into /usr/lib(or /usr/lib64)
 
 Signed-off-by: Jianchuan Wang <[email protected]>
 Signed-off-by: Mark Asselstine <[email protected]>
+
+Rebase for criu 3.17.1.
+
+Signed-off-by: Kai Kang <[email protected]>
 ---
  Makefile.install | 13 -------------
  1 file changed, 13 deletions(-)
@@ -17,7 +21,7 @@ index 1b02b70af..2839ef5fe 100644
 +++ b/Makefile.install
 @@ -9,19 +9,6 @@ LIBEXECDIR	?= $(PREFIX)/libexec
  RUNDIR		?= /run
- PLUGINDIR	?= /var/lib/criu
+ PLUGINDIR	?= $(PREFIX)/lib/criu
  
 -#
 -# For recent Debian/Ubuntu with multiarch support.
recipes-containers/criu/files/0004-criu-fix-conflicting-headers.patch new file +288 -0

288 lines not on this page · raw message

recipes-containers/criu/files/0005-mount-add-definition-for-FSOPEN_CLOEXEC.patch new file +110 -0

110 lines not on this page · raw message

Signature · 1 line
2.17.1
#2 lore raw
In reply to [email protected]
Quoted 8 lines · On Thu, Sep 29, 2022 at 4:51 AM <[email protected]> wrote:

From: Kai Kang <[email protected]>

Hi Bruce,

The latest release is 3.17.1 but not include commits to fix for glibc 2.36. So backport them at same time.

I would have preferred not to have the patch, so I spent some time digging around the criu repository this morning.

And yes indeed, it is on criu-dev, but not on master. And while criu-dev has the 3.17 "release" commit, it doesn't have the 3.17.1 commit .. while we could switch to criu-dev for the branch, and pickup this fix and a few others, that's more churn than just taking the patch. I'm not concerned about staying on the release commits, since they don't really do anything, so not having the 3.17.1 commit on criu-dev isn't a concern to me.

Summary: we'll keep the branch the same, and take this commit as-is, since it will be easy to fixup in the future.

Bruce

Quoted 19 lines

Kai Kang (1):
criu: 3.17 -> 3.17.1

 recipes-containers/criu/criu_git.bb           |  12 +-
 ...u-Change-libraries-install-directory.patch |   6 +-
 .../0004-criu-fix-conflicting-headers.patch   | 288 ++++++++++++++++++
 ...nt-add-definition-for-FSOPEN_CLOEXEC.patch | 110 +++++++
 4 files changed, 411 insertions(+), 5 deletions(-)
 create mode 100644
recipes-containers/criu/files/0004-criu-fix-conflicting-headers.patch
 create mode 100644

recipes-containers/criu/files/0005-mount-add-definition-for-FSOPEN_CLOEXEC.patch

--
2.17.1

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
#3 lore raw
In reply to [email protected]

In message: [PATCH 0/1] Update criu to 3.17.1

Quoted 7 lines · on 29/09/2022 [email protected] wrote:

From: Kai Kang <[email protected]>

Hi Bruce,

The latest release is 3.17.1 but not include commits to fix for glibc 2.36. So backport them at same time.

merged.

Bruce

Quoted 16 lines

Kai Kang (1):
criu: 3.17 -> 3.17.1

 recipes-containers/criu/criu_git.bb           |  12 +-
 ...u-Change-libraries-install-directory.patch |   6 +-
 .../0004-criu-fix-conflicting-headers.patch   | 288 ++++++++++++++++++
 ...nt-add-definition-for-FSOPEN_CLOEXEC.patch | 110 +++++++
 4 files changed, 411 insertions(+), 5 deletions(-)
 create mode 100644 recipes-containers/criu/files/0004-criu-fix-conflicting-headers.patch
 create mode 100644 recipes-containers/criu/files/0005-mount-add-definition-for-FSOPEN_CLOEXEC.patch
Signature · 1 line
2.17.1