Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 517378

Summary: media-gfx/sane-backends uses invalid keyword ATTRS in udev rules
Product: Gentoo Linux Reporter: Mark Wood <mhwood>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mark Wood 2014-07-18 00:14:11 UTC
media-gfx/sane-backends-1.0.24-r3 supplies /lib/udev/rules.d/41-libsane.rules which seems to be using ATTRS where it should use ATTR, at least for my HP 6300C scanner:

  ATTRS{idVendor}=="03f0",ATTRS{idProduct}=="0601", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

When I add /etc/udev/rules.d/70-usb.rules:

  ATTR{idVendor}=="03f0", ATTR{idProduct}=="0601", MODE:="0664", GROUP:="scanner", ENV{libsane_matched}:="yes"

and restart udev, my scanner gets the correct group "scanner" instead of the incorrect "lp".
Comment 1 Chris Brannon (RETIRED) gentoo-dev 2014-07-21 13:47:32 UTC
Ok, admittedly I don't know much about udev rules, but comparing
the two that you posted, I noticed that yours uses
GROUP:="scanner", whereas the one from upstream uses GROUP="scanner".
If you change := to =, the device will probably end up with the LP
group again.  I wonder why the group is lp in the first place?  Are
that product and vendor ID being uesd for one of those multipurpose
printer/scanner combos as well as the HP 6300C?
I don't think the attr versus attrs distinction is causing the issue,
though.  You might try asking about this on the sane-devel list.
Comment 2 Pacho Ramos gentoo-dev 2015-07-09 08:55:36 UTC
Please retry with sane-backends 1.0.25_pre* snapshot