[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#931016: unblock: spacenavd/0.6-1.1



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package spacenavd

spacenavd was no longer working properly due to a subtle change in kernel
behaviour. This was reported in #916610 and fixed by applying the
corresponding upstream commit.

Debdiff below.

diff -Nru spacenavd-0.6/debian/changelog spacenavd-0.6/debian/changelog
--- spacenavd-0.6/debian/changelog	2015-05-18 10:04:05.000000000 +0000
+++ spacenavd-0.6/debian/changelog	2019-06-01 11:13:33.000000000 +0000
@@ -1,3 +1,11 @@
+spacenavd (0.6-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix "conflict with /dev/input/js0" (Closes: #916610)
+    - Fixed upstream in 34ddda1246ad07e8ff2e6606224e710852e3e3d8
+
+ -- Jakob Haufe <sur5r@sur5r.net>  Sat, 01 Jun 2019 11:13:33 +0000
+
 spacenavd (0.6-1) unstable; urgency=medium
 
   * Imported Upstream version 0.6
diff -Nru spacenavd-0.6/debian/patches/series spacenavd-0.6/debian/patches/series
--- spacenavd-0.6/debian/patches/series	2015-05-18 10:04:05.000000000 +0000
+++ spacenavd-0.6/debian/patches/series	2019-06-01 11:04:55.000000000 +0000
@@ -1,2 +1,3 @@
 add-buildflags-to-makefile.patch
 run.patch
+skip-joystick-devices.patch
diff -Nru spacenavd-0.6/debian/patches/skip-joystick-devices.patch spacenavd-0.6/debian/patches/skip-joystick-devices.patch
--- spacenavd-0.6/debian/patches/skip-joystick-devices.patch	1970-01-01 00:00:00.000000000 +0000
+++ spacenavd-0.6/debian/patches/skip-joystick-devices.patch	2019-06-01 11:13:33.000000000 +0000
@@ -0,0 +1,37 @@
+Description: Skip joystick device files
+Author: John Tsiombikas <nuclear@member.fsf.org>
+Origin: upstream, https://github.com/FreeSpacenav/spacenavd/commit/34ddda1246ad07e8ff2e6606224e710852e3e3d8
+Bug-Debian: https://bugs.debian.org/916610
+---
+commit 34ddda1246ad07e8ff2e6606224e710852e3e3d8
+Author: John Tsiombikas <nuclear@member.fsf.org>
+Date:   Sat Oct 11 05:07:58 2014 +0000
+
+    added code to skip joystick device files while parsing /proc/bus/input/devices
+    
+    
+    git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@183 ef983eb1-d774-4af8-acfd-baaf7b16a646
+
+diff --git a/src/dev_usb_linux.c b/src/dev_usb_linux.c
+index 30db579..5f4baad 100644
+--- a/src/dev_usb_linux.c
++++ b/src/dev_usb_linux.c
+@@ -342,11 +342,16 @@ struct usb_device_info *find_usb_devices(int (*match)(const struct usb_device_in
+ 				case 'H':
+ 					keyptr = strstr(cur_line, "Handlers=");
+ 					if(keyptr) {
+-						char *devfile, *valptr = keyptr + strlen("Handlers=");
++						char *devfile = 0, *valptr = keyptr + strlen("Handlers=");
+ 						static const char *prefix = "/dev/input/";
+ 
+ 						int idx = 0;
+-						while((devfile = strtok(idx ? 0 : valptr, " \t\v\n\r"))) {
++						while((devfile = strtok(devfile ? 0 : valptr, " \t\v\n\r"))) {
++							if(strstr(devfile, "js") == devfile) {
++								/* ignore joystick device files, can't use them */
++								continue;
++							}
++
+ 							if(!(devinfo.devfiles[idx] = malloc(strlen(devfile) + strlen(prefix) + 1))) {
+ 								perror("failed to allocate device filename buffer");
+ 								continue;


unblock spacenavd/0.6-1.1

-- System Information:
Debian Release: 10.0
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (400, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CRAP, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



-- 
ceterum censeo microsoftem esse delendam.

Attachment: pgpnN2Ja0siYH.pgp
Description: OpenPGP digital signature


Reply to: