Skip to content

Commit

Permalink
criu: 2.12.1 -> 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bendlas committed Jan 29, 2018
1 parent 34c36ab commit 499b3ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
13 changes: 0 additions & 13 deletions pkgs/os-specific/linux/criu/criu-2.12.1-glibc-2.26.patch

This file was deleted.

11 changes: 2 additions & 9 deletions pkgs/os-specific/linux/criu/default.nix
Expand Up @@ -4,30 +4,23 @@

stdenv.mkDerivation rec {
name = "criu-${version}";
version = "2.12.1";
version = "3.7";

src = fetchurl {
url = "http://download.openvz.org/criu/${name}.tar.bz2";
sha256 = "18m0sjgcfvzc86w49fd3kxw145nmrsvc5w7zf42nxdiklmszbr1k";
sha256 = "0qrpz7pvnks34v7d8lb73flz3mb7qwnib94pdwaxh0mskn8470fq";
};

patches = [ ./criu-2.12.1-glibc-2.26.patch ];

enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig docbook_xsl ];
buildInputs = [ protobuf protobufc asciidoc xmlto libpaper libnl libcap libnet python ];

postPatch = ''
chmod +w ./scripts/gen-offsets.sh
substituteInPlace ./scripts/gen-offsets.sh --replace hexdump ${utillinux}/bin/hexdump
substituteInPlace ./Documentation/Makefile --replace "2>/dev/null" ""
substituteInPlace ./Documentation/Makefile --replace "-m custom.xsl" "-m custom.xsl --skip-validation -x ${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
substituteInPlace ./criu/Makefile --replace "-I/usr/include/libnl3" "-I${libnl.dev}/include/libnl3"
substituteInPlace ./Makefile --replace "head-name := \$(shell git tag -l v\$(CRIU_VERSION))" "head-name = ${version}.0"
ln -sf ${protobuf}/include/google/protobuf/descriptor.proto ./images/google/protobuf/descriptor.proto
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
sed 1i'#include <sys/sysmacros.h>' -i criu/include/util.h
'';

buildPhase = "make PREFIX=$out";
Expand Down

0 comments on commit 499b3ed

Please sign in to comment.