git.iko.soy/typeable/nixpkgs
on master help sign in
kmscon: fix build with glibc 2.26

Tracking issue: #31696

commit5018c27a3d3dd049b6b0adbb416e29bbdb835905 authorOrivej Desh <orivej@gmx.fr> dateThu 16 Nov 2017, 01:47 (9 years ago) parent30fa830
2 files changed+29
pkgs/os-specific/linux/kmscon/default.nix+4 pkgs/os-specific/linux/kmscon/kmscon-8-glibc-2.26.patch+25
pkgs/os-specific/linux/kmscon/default.nix+4
@@ -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/;
pkgs/os-specific/linux/kmscon/kmscon-8-glibc-2.26.patchnew file+25
@@ -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>