kmscon: 8 -> unstable-2018-09-07
This commit is contained in:
parent
c94378d121
commit
7b6960156f
@ -1,5 +1,6 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
, libtsm
|
, libtsm
|
||||||
, systemd
|
, systemd
|
||||||
, libxkbcommon
|
, libxkbcommon
|
||||||
@ -13,32 +14,32 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "kmscon-8";
|
pname = "kmscon";
|
||||||
|
version = "unstable-2018-09-07";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://www.freedesktop.org/software/kmscon/releases/${name}.tar.xz";
|
owner = "Aetf";
|
||||||
sha256 = "0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a";
|
repo = "kmscon";
|
||||||
|
rev = "01dd0a231e2125a40ceba5f59fd945ff29bf2cdc";
|
||||||
|
sha256 = "0q62kjsvy2iwy8adfiygx2bfwlh83rphgxbis95ycspqidg9py87";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libtsm
|
|
||||||
systemd
|
|
||||||
libxkbcommon
|
|
||||||
libdrm
|
|
||||||
libGLU libGL
|
libGLU libGL
|
||||||
|
libdrm
|
||||||
|
libtsm
|
||||||
|
libxkbcommon
|
||||||
|
libxslt
|
||||||
pango
|
pango
|
||||||
pixman
|
pixman
|
||||||
pkgconfig
|
systemd
|
||||||
docbook_xsl
|
|
||||||
libxslt
|
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [ ./kmscon-8-glibc-2.26.patch ];
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook
|
||||||
# FIXME: Remove as soon as kmscon > 8 comes along.
|
docbook_xsl
|
||||||
postPatch = ''
|
pkgconfig
|
||||||
sed -i -e 's/libsystemd-daemon libsystemd-login/libsystemd/g' configure
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-multi-seat"
|
"--enable-multi-seat"
|
||||||
@ -49,10 +50,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "KMS/DRM based System Console";
|
description = "KMS/DRM based System Console";
|
||||||
homepage = "http://www.freedesktop.org/wiki/Software/kmscon/";
|
homepage = "http://www.freedesktop.org/wiki/Software/kmscon/";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
diff --git a/src/pty.c b/src/pty.c
|
|
||||||
index 3494104..1443f4a 100644
|
|
||||||
--- a/src/pty.c
|
|
||||||
+++ b/src/pty.c
|
|
||||||
@@ -299,7 +299,7 @@ static void setup_child(int master, struct winsize *ws)
|
|
||||||
if (ret)
|
|
||||||
log_warn("cannot reset blocked signals: %m");
|
|
||||||
|
|
||||||
- for (i = 1; i < SIGUNUSED; ++i)
|
|
||||||
+ for (i = 1; i < SIGSYS; ++i)
|
|
||||||
signal(i, SIG_DFL);
|
|
||||||
|
|
||||||
ret = grantpt(master);
|
|
||||||
diff --git a/src/uterm_vt.c b/src/uterm_vt.c
|
|
||||||
index af377f5..fbe9e76 100644
|
|
||||||
--- a/src/uterm_vt.c
|
|
||||||
+++ b/src/uterm_vt.c
|
|
||||||
@@ -40,6 +40,7 @@
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/signalfd.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
+#include <sys/sysmacros.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <unistd.h>
|
|
Loading…
x
Reference in New Issue
Block a user