From e20ebcf10af5e532a1ddae0c72ae9484503257a4 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Tue, 16 Jan 2018 04:43:44 -0200 Subject: [PATCH] kmscon: fix build with glibc>=2.26. Closes #10868. Signed-off-by: Enno Boland --- .../patches/define-SIGUNUSED-for-GLIBC.patch | 17 +++++++++++++++++ srcpkgs/kmscon/template | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/kmscon/patches/define-SIGUNUSED-for-GLIBC.patch diff --git a/srcpkgs/kmscon/patches/define-SIGUNUSED-for-GLIBC.patch b/srcpkgs/kmscon/patches/define-SIGUNUSED-for-GLIBC.patch new file mode 100644 index 00000000000..d53d71f9090 --- /dev/null +++ b/srcpkgs/kmscon/patches/define-SIGUNUSED-for-GLIBC.patch @@ -0,0 +1,17 @@ +--- src/pty.c ++++ src/pty.c +@@ -46,6 +46,14 @@ + + #define KMSCON_NREAD 16384 + ++/* ever since glibc 2.26 SIGUNUSED is no longer defined on any architerture ++ * http://man7.org/linux/man-pages/man7/signal.7.html ++ * according to signal(7) SIGUNUSED is synonymous with SIGSYS, musl defines it as such ++ */ ++#ifdef __GLIBC__ ++#define SIGUNUSED SIGSYS ++#endif ++ + struct kmscon_pty { + unsigned long ref; + struct ev_eloop *eloop; diff --git a/srcpkgs/kmscon/template b/srcpkgs/kmscon/template index dc298d07b10..d00dc21c50e 100644 --- a/srcpkgs/kmscon/template +++ b/srcpkgs/kmscon/template @@ -1,7 +1,7 @@ # Template file for 'kmscon' pkgname=kmscon version=8 -revision=5 +revision=6 lib32disabled=yes build_style=gnu-configure configure_args="--disable-static --disable-multi-seat"