[libsigrok] - udev rules should react also on the usbmisc subsystem

Dan Horák sharkcz at fedoraproject.org
Mon Nov 4 11:18:20 UTC 2013


commit bdaf06dbca17b2f46d318476428fbc3e7034dfee
Author: Dan Horák <dan at danny.cz>
Date:   Mon Nov 4 12:18:29 2013 +0100

    - udev rules should react also on the usbmisc subsystem

 libsigrok-0.2.1-udev.patch |   22 ++++++++++++++++++++++
 libsigrok.spec             |    8 +++++++-
 2 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/libsigrok-0.2.1-udev.patch b/libsigrok-0.2.1-udev.patch
new file mode 100644
index 0000000..d9703ef
--- /dev/null
+++ b/libsigrok-0.2.1-udev.patch
@@ -0,0 +1,22 @@
+commit 8dce54f7aa9eed362f2c9e41412c6b71ba1a32b6
+Author: Dan Horák <dan at danny.cz>
+Date:   Mon Nov 4 10:53:36 2013 +0100
+
+    update udev rules
+    
+    With usbtmc driver being classified under usbmisc in newer kernels the udev rules
+    need an update.
+
+diff --git a/contrib/z60_libsigrok.rules b/contrib/z60_libsigrok.rules
+index 4632827..ad74bf7 100644
+--- a/contrib/z60_libsigrok.rules
++++ b/contrib/z60_libsigrok.rules
+@@ -23,7 +23,7 @@
+ ##
+ 
+ ACTION!="add|change", GOTO="libsigrok_rules_end"
+-SUBSYSTEM!="usb|usb_device", GOTO="libsigrok_rules_end"
++SUBSYSTEM!="usb|usbmisc|usb_device", GOTO="libsigrok_rules_end"
+ 
+ # ASIX SIGMA
+ # ASIX SIGMA2
diff --git a/libsigrok.spec b/libsigrok.spec
index cd373c0..ddeaa8a 100644
--- a/libsigrok.spec
+++ b/libsigrok.spec
@@ -1,6 +1,6 @@
 Name:           libsigrok
 Version:        0.2.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Basic hardware access drivers for logic analyzers
 # Combined GPLv3+ and GPLv2+ and BSD
 License:        GPLv3+
@@ -10,6 +10,8 @@ Source0:        http://sigrok.org/download/source/libsigrok/%{name}-%{version}.t
 Patch0:		%{name}-0.2.1-rigol.patch
 # http://sigrok.org/gitweb/?p=libsigrok.git;a=commit;h=da970d24ecfcf67f89a9532f3a53ade8cb1131ed
 Patch1:		%{name}-0.2.1-usb.patch
+# http://sigrok.org/gitweb/?p=libsigrok.git;a=commit;h=8dce54f7aa9eed362f2c9e41412c6b71ba1a32b6
+Patch2:		%{name}-0.2.1-udev.patch
 
 BuildRequires:  glib2-devel
 BuildRequires:  libzip-devel
@@ -50,6 +52,7 @@ with %{name}.
 %setup -q
 %patch0 -p1 -b .rigol
 %patch1 -p1 -b .usb
+%patch2 -p1 -b .udev
 
 
 %build
@@ -90,6 +93,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
 %doc doxy/html-api/
 
 %changelog
+* Mon Nov 04 2013 Dan Horák <dan[at]danny.cz> - 0.2.1-4
+- udev rules should react also on the usbmisc subsystem
+
 * Sun Nov 03 2013 Dan Horák <dan[at]danny.cz> - 0.2.1-3
 - scan /sys/class/usbmisc
 - add support for Rigol DS1152 scopes with upgraded bandwidth


More information about the scm-commits mailing list