@@ -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";