On 29.12.2016 02:54, Martin Ling wrote: > On Wed, Dec 28, 2016 at 11:49:50AM +0300, Paul Fertser wrote: >> >> So what libsigrok usecase on what particular OS won't be covered by >> doing all three of these: >> >> 1. plugdev group assignment >> 2. uaccess tag >> 3. ModemManager antidote? > > Apparently this wouldn't be acceptable on Fedora - they wanted uaccess > only. That was what led to the discussion in our bug #665.
As mentioned in that bugreport, upstream udev files can only serve as an example and it is the job of the distributions to come up with the actual rules, the right groups, tags, etc. (And boy, don't get me started on that modem-manager stuff.) In that manner, udev files are a lot like SysV init scripts... The problem will probably consist in the future: users who find the udev rules will take them for granted, and if they don't work, either rant about it, or report bugs. Both is bad for us, since we cannot patch distribution-specific things. We could prefix the rules file with a big comment that it is only meant as a template, but that doesn't help the users at all, since the actual rule implementation (groups, tags, ...) is distribution-specific and we cannot link to documentation for all distributions. Even if we provided a script to read VIDs/PIDs from a file to generate udev rules, that script needed to have specific parts for every distribution. So I think the best way is to replace contrib/z60_libsigrok.rules with a plain (machine-readable) list of VIDs/PIDs for known hardware, and a notice for the users saying they need to figure out the udev rules themselves. ... After coming up with a possible patch myself, I noticed that I got to the same solution like Martin did in [0] :-) So I vote for that branch to be cherry-picked from, though I would probably spare the last commit (4d90d66, Add script to generate udev rules) for the reasons mentioned above. [0]: https://github.com/s09bQ5/libsigrok/commits/remove-udev-rules - Roland ------------------------------------------------------------------------------ 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 sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel