criu: fixup build with glibc-2.25
This commit is contained in:
parent
723f23d291
commit
cbc343e5e7
@ -22,6 +22,9 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace ./criu/Makefile --replace "-I/usr/include/libnl3" "-I${libnl.dev}/include/libnl3"
|
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" ""
|
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
|
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";
|
buildPhase = "make PREFIX=$out";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user