git.iko.soy/typeable/nixpkgs
on master help sign in
criu: 2.12.1 -> 3.7

cc @thoughtpolice

commit499b3edb306988d9ec91db50174aa85a896e585b authorHerwig Hochleitner <herwig@bendlas.net> dateSun 28 Jan 2018, 20:36 (9 years ago) parent34c36ab
2 files changed+2−22
pkgs/os-specific/linux/criu/criu-2.12.1-glibc-2.26.patch−13 pkgs/os-specific/linux/criu/default.nix+2−9
pkgs/os-specific/linux/criu/criu-2.12.1-glibc-2.26.patchdeleted−13
@@ -1,13 +0,0 @@
1−--- a/criu/cr-restore.c
2−+++ b/criu/cr-restore.c
3−@@ -650,3 +650,2 @@ static void zombie_prepare_signals(void)
4− (1 << SIGSYS) |\
5−- (1 << SIGUNUSED)|\
6− (1 << SIGSTKFLT)|\
7−--- a/test/zdtm/static/pthread01.c
8−+++ b/test/zdtm/static/pthread01.c
9−@@ -45,3 +45,3 @@ static char *decode_signal(const sigset_t *s, char *buf)
10− COLLECT(SIGXFSZ); COLLECT(SIGVTALRM); COLLECT(SIGPROF); COLLECT(SIGWINCH); COLLECT(SIGIO);
11−- COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS); COLLECT(SIGUNUSED);
12−+ COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS);
13− #undef COLLECT
pkgs/os-specific/linux/criu/default.nix+2−9
@@ -4,30 +4,23 @@
44
55stdenv.mkDerivation rec {
66 name = "criu-${version}";
7− version = "2.12.1";
7+ version = "3.7";
88
99 src = fetchurl {
1010 url = "http://download.openvz.org/criu/${name}.tar.bz2";
11− sha256 = "18m0sjgcfvzc86w49fd3kxw145nmrsvc5w7zf42nxdiklmszbr1k";
11+ sha256 = "0qrpz7pvnks34v7d8lb73flz3mb7qwnib94pdwaxh0mskn8470fq";
1212 };
1313
14− patches = [ ./criu-2.12.1-glibc-2.26.patch ];
15−
1614 enableParallelBuilding = true;
1715 nativeBuildInputs = [ pkgconfig docbook_xsl ];
1816 buildInputs = [ protobuf protobufc asciidoc xmlto libpaper libnl libcap libnet python ];
1917
2018 postPatch = ''
21− chmod +w ./scripts/gen-offsets.sh
22− substituteInPlace ./scripts/gen-offsets.sh --replace hexdump ${utillinux}/bin/hexdump
2319 substituteInPlace ./Documentation/Makefile --replace "2>/dev/null" ""
2420 substituteInPlace ./Documentation/Makefile --replace "-m custom.xsl" "-m custom.xsl --skip-validation -x ${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
2521 substituteInPlace ./criu/Makefile --replace "-I/usr/include/libnl3" "-I${libnl.dev}/include/libnl3"
2622 substituteInPlace ./Makefile --replace "head-name := \$(shell git tag -l v\$(CRIU_VERSION))" "head-name = ${version}.0"
2723 ln -sf ${protobuf}/include/google/protobuf/descriptor.proto ./images/google/protobuf/descriptor.proto
28−
29− # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
30− sed 1i'#include <sys/sysmacros.h>' -i criu/include/util.h
3124 '';
3225
3326 buildPhase = "make PREFIX=$out";