Skip to content

Commit f8077b7

Browse files
committedNov 28, 2017
criu: fix build with glibc 2.26
1 parent c8a60e3 commit f8077b7

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -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" ""

0 commit comments

Comments
 (0)
Please sign in to comment.