criu: fixup build with glibc-2.25

wip/yesman
Vladimír Čunát 7 years ago
parent 723f23d291
commit cbc343e5e7
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 3
      pkgs/os-specific/linux/criu/default.nix

@ -22,6 +22,9 @@ stdenv.mkDerivation rec {
substituteInPlace ./criu/Makefile --replace "-I/usr/include/libnl3" "-I${libnl.dev}/include/libnl3"
substituteInPlace ./Makefile --replace "tar-name := $(shell git tag -l v$(CRIU_VERSION))" "tar-name = 2.0" # --replace "-Werror" ""
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";

Loading…
Cancel
Save