Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276486 - media-gfx/sane-backends-1.0.20 requires root priviledge for scanner access
Summary: media-gfx/sane-backends-1.0.20 requires root priviledge for scanner access
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-04 17:27 UTC by manfred.saminger.REMOVE.SPAM
Modified: 2009-07-17 20:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for fixing udev rules (1.0.20-unbreak-udev.diff,688 bytes, patch)
2009-07-04 17:29 UTC, manfred.saminger.REMOVE.SPAM
Details | Diff
ebuild applying attached patch (sane-backends-1.0.20-r1.ebuild,5.73 KB, text/plain)
2009-07-04 17:29 UTC, manfred.saminger.REMOVE.SPAM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description manfred.saminger.REMOVE.SPAM 2009-07-04 17:27:06 UTC
When using sane-backends-1.0.20, the udev rules in 
  /etc/udev/rules.d/70-libsane.rules 
contain ATTR where ATTRS would belong. Hence, device files for scanners are no longer owned by group "scanner" but "root". Therefore, only "root" can use sane-backend supported scanners.
This bug is fixed upstream in commit
  79e6e5c4203bec6b98d1d6af4d3741fedc73dcd0
(Committed after the release of 1.0.20 and no fixed release was made). The patch for this commit corrects
  tools/sane-desc.c
of sane-backends to correctly produce udev rules using ATTRS.


Reproducible: Always

Steps to Reproduce:
1. Install media-gfx/sane-backends-1.0.20
2. Plug-in scanner


Actual Results:  
"scanimage -L" does not list scanner (it did list the scanner when using <=media-gfx/sane-backends-1.0.20)

Expected Results:  
"scanimage -L" should give a list of attached scanners.
Comment 1 manfred.saminger.REMOVE.SPAM 2009-07-04 17:29:01 UTC
Created attachment 196663 [details, diff]
Patch for fixing udev rules
Comment 2 manfred.saminger.REMOVE.SPAM 2009-07-04 17:29:41 UTC
Created attachment 196665 [details]
ebuild applying attached patch
Comment 3 Frank 2009-07-05 19:04:43 UTC
I had the same problem and the proposed patch solved it.
Comment 4 Wormo (RETIRED) gentoo-dev 2009-07-09 23:34:10 UTC
Thanks for the report, the patch, and the feedback on the patch! Assigning to maintainer.
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2009-07-17 20:20:25 UTC
Thank you very much! -r1 in CVS.