On 18/07/2013 01:27, Tom Gundersen wrote: > udev now comes with a hardware database (hwdb) which is meant to replace large > rule files as the one typically shipped with sane. This should significantly > speed up the processing of usb add events. > > Add the required output format and add a special udev output mode which is > produces the udev file to be used with hwdb. > > Sample hwdb file: <https://dev.archlinux.org/~tomegun/20-sane.hwdb>. > Sample udev+hwdb rules file: > <https://dev.archlinux.org/~tomegun/53-sane.rules>. > > Similar support was recently added to gphoto2: > <http://sourceforge.net/p/gphoto/code/14490/>. > > The new udev rules file does not support old udev/kernels as these anyway > don't support hwdb. > > Moreover, it does not come with GROUP=/MODE= or ACL support as this can easily > be done externally by hooking into the libsane_matched envvar. In particular > systemd-logind uses this to do its own ACL handling. > --- >
Hello, before applying this patch I'm considering adding a testsuite for sane-desc first. Since it is too big to be in-lined, I have posted the corresponding patch athttp://dl.free.fr/vzjrF6ete . It adds a tools subdirectory to the testsuite directory. In this directory, a test .desc file is parsed with sane-desc for all known modes and the resulting files are compared to the expected files. I am waiting for your comments and suggestions. Regards, Stef