On Dienstag, 27. Dezember 2016 15:38:30 CET Martin Ling wrote:
> Hi,
>
> Please see the previous discussion about this issue on bug 665:
>
> http://sigrok.org/bugzilla/show_bug.cgi?id=665
>
> In short, there is no rules file we can supply that will work for all
> users on all distributions. My proposal was that we remove the rules
> file entirely, and replace it with a machine readable list of VID/PID
> pairs that libsigrok is interested in, along with a script to generate
> udev rules files from this as well as similar things for other systems,
> e.g. I think there is some list that has to be provided to Android for
> it to allow PulseView to use USB devices on that platform.
>
> I did some work on this about a year ago:
> https://github.com/martinling/libsigrok/commits/remove-udev-rules
>
> I believe someone else implemented a script to generate things from this
> too, but I forget who it was or where they published it.
openSUSE uses the following snippet (RPM syntax) to generate its udev rules
file:
%define action TAG+="uaccess"
%define mm_ignore ENV{ID_MM_DEVICE_IGNORE}="1"
install -d -m 755 %{buildroot}%{_udevrulesdir}
sed 's/MODE="664".*/%{action}, %{mm_ignore}/' contrib/z60_libsigrok.rules \
> %{buildroot}%{_udevrulesdir}/50-libsigrok.rules
I thinks thats simple enough ...
Kind regards,
Stefan
--
Stefan Brüns / Bergstraße 21 / 52062 Aachen
home: +49 241 53809034 mobile: +49 151 50412019
work: +49 2405 49936-424
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel