Skip to content

Commit

Permalink
criu: fix build with glibc 2.26
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Nov 28, 2017
1 parent c8a60e3 commit f8077b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions pkgs/os-specific/linux/criu/criu-2.12.1-glibc-2.26.patch
@@ -0,0 +1,13 @@
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -650,3 +650,2 @@ static void zombie_prepare_signals(void)
(1 << SIGSYS) |\
- (1 << SIGUNUSED)|\
(1 << SIGSTKFLT)|\
--- a/test/zdtm/static/pthread01.c
+++ b/test/zdtm/static/pthread01.c
@@ -45,3 +45,3 @@ static char *decode_signal(const sigset_t *s, char *buf)
COLLECT(SIGXFSZ); COLLECT(SIGVTALRM); COLLECT(SIGPROF); COLLECT(SIGWINCH); COLLECT(SIGIO);
- COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS); COLLECT(SIGUNUSED);
+ COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS);
#undef COLLECT
4 changes: 3 additions & 1 deletion pkgs/os-specific/linux/criu/default.nix
Expand Up @@ -11,11 +11,13 @@ stdenv.mkDerivation rec {
sha256 = "18m0sjgcfvzc86w49fd3kxw145nmrsvc5w7zf42nxdiklmszbr1k";
};

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 ];

patchPhase = ''
postPatch = ''
chmod +w ./scripts/gen-offsets.sh
substituteInPlace ./scripts/gen-offsets.sh --replace hexdump ${utillinux}/bin/hexdump
substituteInPlace ./Documentation/Makefile --replace "2>/dev/null" ""
Expand Down

0 comments on commit f8077b7

Please sign in to comment.