criu: update to 3.11.

This commit is contained in:
maxice8 2018-11-06 21:37:47 -02:00 committed by maxice8
parent 3f57829ced
commit 853a8c739e
2 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,7 @@
--- criu/namespaces.c.orig 2016-06-15 14:28:33.646020571 +0200
+++ criu/namespaces.c 2016-06-15 14:28:43.407021019 +0200
diff --git a/criu/namespaces.c b/criu/namespaces.c
index 05d75d5..9d9bf5a 100644
--- criu/namespaces.c
+++ criu/namespaces.c
@@ -9,7 +9,7 @@
#include <stdarg.h>
#include <signal.h>
@ -9,19 +11,20 @@
#include <sys/stat.h>
#include <limits.h>
#include <errno.h>
@@ -701,13 +701,13 @@ static int check_user_ns(int pid)
@@ -888,13 +888,13 @@ static int check_user_ns(int pid)
hdr.version = _LINUX_CAPABILITY_VERSION_3;
hdr.pid = 0;
- if (capget(&hdr, data) < 0) {
+ if (syscall(SYS_capget, &hdr, data) < 0) {
pr_perror("capget");
return -1;
exit(1);
}
data[0].effective = data[0].permitted;
data[1].effective = data[1].permitted;
- if (capset(&hdr, data) < 0) {
+ if (syscall(SYS_capset, &hdr, data) < 0) {
pr_perror("capset");
return -1;
exit(1);
}

View File

@ -1,9 +1,9 @@
# Template file for 'criu'
pkgname=criu
version=3.10
version=3.11
revision=1
make_use_env=compliant
build_style=gnu-makefile
make_use_env=compliant
hostmakedepends="asciidoc pkg-config xmlto"
makedepends="libcap-devel libnet-devel libnl3-devel protobuf-c-devel
protobuf-devel"
@ -12,7 +12,7 @@ maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2.0-or-later, LGPL-2.1-only"
homepage="http://criu.org/"
distfiles="https://download.openvz.org/criu/criu-${version}.tar.bz2"
checksum=9b6fca443c10c45512cf532b43b2d52712a48b3ba653589fbc3c25b0ec126abe
checksum=886b5851a3f46755a4074414e1d09638dfbd3fddebe00706a7b5783eacafd10e
nocross="fails to run protobuf internals"
case "$XBPS_TARGET_MACHINE" in