criu: fixup build with glibc-2.25

This commit is contained in:
Vladimír Čunát 2017-02-21 18:20:28 +01:00
parent 723f23d291
commit cbc343e5e7
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

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