summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2020-02-01 21:51:49 +0100
committerSebastian Pipping <sping@gentoo.org>2020-02-01 21:51:49 +0100
commitd9784cad7cb1f6d63e15238c371b5aac9317a008 (patch)
treefd90d0d2b2ebd497e55197040399a206187aea93 /app-misc/spacenavd
parentwww-apache/mod_wsgi: remove old versions (diff)
downloadgentoo-d9784cad7cb1f6d63e15238c371b5aac9317a008.tar.gz
gentoo-d9784cad7cb1f6d63e15238c371b5aac9317a008.tar.bz2
gentoo-d9784cad7cb1f6d63e15238c371b5aac9317a008.zip
app-misc/spacenavd: Fix USE=-X for 0.7
Closes: https://bugs.gentoo.org/707732 Signed-off-by: Sebastian Pipping <sping@gentoo.org> Package-Manager: Portage-2.3.84, Repoman-2.3.20
Diffstat (limited to 'app-misc/spacenavd')
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.7-no-x11.patch24
-rw-r--r--app-misc/spacenavd/spacenavd-0.7.ebuild1
2 files changed, 25 insertions, 0 deletions
diff --git a/app-misc/spacenavd/files/spacenavd-0.7-no-x11.patch b/app-misc/spacenavd/files/spacenavd-0.7-no-x11.patch
new file mode 100644
index 000000000000..8dbdb7df3151
--- /dev/null
+++ b/app-misc/spacenavd/files/spacenavd-0.7-no-x11.patch
@@ -0,0 +1,24 @@
+From 3168b1dedf88c9026683ed43ea337814003d6802 Mon Sep 17 00:00:00 2001
+From: John Tsiombikas <nuclear@member.fsf.org>
+Date: Sat, 1 Feb 2020 22:08:43 +0200
+Subject: [PATCH] add a USE_X11 ifdef around the call to drop_xinput in
+ src/dev.c to fix non-X11 build. This should fix github issue #19.
+
+---
+ src/dev.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/dev.c b/src/dev.c
+index 8b72932..2074895 100644
+--- a/src/dev.c
++++ b/src/dev.c
+@@ -88,7 +88,9 @@ int init_devices(void)
+ return -1;
+ }
+
++#ifdef USE_X11
+ drop_xinput();
++#endif
+ return 0;
+ }
+
diff --git a/app-misc/spacenavd/spacenavd-0.7.ebuild b/app-misc/spacenavd/spacenavd-0.7.ebuild
index 6a4e1d73addc..4c5a57fdbfa3 100644
--- a/app-misc/spacenavd/spacenavd-0.7.ebuild
+++ b/app-misc/spacenavd/spacenavd-0.7.ebuild
@@ -19,6 +19,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-gcc10.patch
+ "${FILESDIR}"/${P}-no-x11.patch
)
pkg_setup() {