Skip to content

Commit 5018c27

Browse files
committedNov 16, 2017
kmscon: fix build with glibc 2.26
Tracking issue: #31696
1 parent 30fa830 commit 5018c27

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
 

‎pkgs/os-specific/linux/kmscon/default.nix

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ stdenv.mkDerivation rec {
3333
libxslt
3434
];
3535

36+
patches = [ ./kmscon-8-glibc-2.26.patch ];
37+
3638
# FIXME: Remove as soon as kmscon > 8 comes along.
3739
postPatch = ''
3840
sed -i -e 's/libsystemd-daemon libsystemd-login/libsystemd/g' configure
@@ -45,6 +47,8 @@ stdenv.mkDerivation rec {
4547
"--with-renderers=bbulk,gltex,pixman"
4648
];
4749

50+
enableParallelBuilding = true;
51+
4852
meta = {
4953
description = "KMS/DRM based System Console";
5054
homepage = http://www.freedesktop.org/wiki/Software/kmscon/;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/src/pty.c b/src/pty.c
2+
index 3494104..1443f4a 100644
3+
--- a/src/pty.c
4+
+++ b/src/pty.c
5+
@@ -299,7 +299,7 @@ static void setup_child(int master, struct winsize *ws)
6+
if (ret)
7+
log_warn("cannot reset blocked signals: %m");
8+
9+
- for (i = 1; i < SIGUNUSED; ++i)
10+
+ for (i = 1; i < SIGSYS; ++i)
11+
signal(i, SIG_DFL);
12+
13+
ret = grantpt(master);
14+
diff --git a/src/uterm_vt.c b/src/uterm_vt.c
15+
index af377f5..fbe9e76 100644
16+
--- a/src/uterm_vt.c
17+
+++ b/src/uterm_vt.c
18+
@@ -40,6 +40,7 @@
19+
#include <sys/ioctl.h>
20+
#include <sys/signalfd.h>
21+
#include <sys/stat.h>
22+
+#include <sys/sysmacros.h>
23+
#include <termios.h>
24+
#include <time.h>
25+
#include <unistd.h>

0 commit comments

Comments
 (0)
Please sign in to comment.