git.iko.soy/typeable/nixpkgs
on master help sign in
criu: fix build with glibc 2.26
commitf8077b7ef114955ade79bd71ec1c0b2dfc8d98df authorOrivej Desh <orivej@gmx.fr> dateTue 28 Nov 2017, 08:11 (9 years ago) parentc8a60e3
2 files changed+16−1
pkgs/os-specific/linux/criu/criu-2.12.1-glibc-2.26.patch+13 pkgs/os-specific/linux/criu/default.nix+3−1
pkgs/os-specific/linux/criu/criu-2.12.1-glibc-2.26.patchnew file+13
@@ -0,0 +1,13 @@
1+--- a/criu/cr-restore.c
2++++ b/criu/cr-restore.c
3+@@ -650,3 +650,2 @@ static void zombie_prepare_signals(void)
4+ (1 << SIGSYS) |\
5+- (1 << SIGUNUSED)|\
6+ (1 << SIGSTKFLT)|\
7+--- a/test/zdtm/static/pthread01.c
8++++ b/test/zdtm/static/pthread01.c
9+@@ -45,3 +45,3 @@ static char *decode_signal(const sigset_t *s, char *buf)
10+ COLLECT(SIGXFSZ); COLLECT(SIGVTALRM); COLLECT(SIGPROF); COLLECT(SIGWINCH); COLLECT(SIGIO);
11+- COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS); COLLECT(SIGUNUSED);
12++ COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS);
13+ #undef COLLECT
pkgs/os-specific/linux/criu/default.nix+3−1
@@ -11,11 +11,13 @@ stdenv.mkDerivation rec {
1111 sha256 = "18m0sjgcfvzc86w49fd3kxw145nmrsvc5w7zf42nxdiklmszbr1k";
1212 };
1313
14+ patches = [ ./criu-2.12.1-glibc-2.26.patch ];
15+
1416 enableParallelBuilding = true;
1517 nativeBuildInputs = [ pkgconfig docbook_xsl ];
1618 buildInputs = [ protobuf protobufc asciidoc xmlto libpaper libnl libcap libnet python ];
1719
18− patchPhase = ''
20+ postPatch = ''
1921 chmod +w ./scripts/gen-offsets.sh
2022 substituteInPlace ./scripts/gen-offsets.sh --replace hexdump ${utillinux}/bin/hexdump
2123 substituteInPlace ./Documentation/Makefile --replace "2>/dev/null" ""