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

Bug 462346

Summary: =sys-fs/udev-198: 50-udev-default.rules changes broke cups (and "lp" in general)
Product: Gentoo Linux Reporter: Samuli Suominen (RETIRED) <ssuominen>
Component: Current packagesAssignee: udev maintainers <udev-bugs>
Status: RESOLVED FIXED    
Severity: major CC: marcelocoelho, netz
Priority: Normal Keywords: REGRESSION
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Possible fix (thanks to heftig)
Correct patch. Still untested.

Description Samuli Suominen (RETIRED) gentoo-dev 2013-03-19 18:12:23 UTC
This problem was introduced by the 198 bump, and 197 is OK:

<heftig> kay: systemd commit 22582bb broke cups usb printing for me
<heftig> because the "lp" group isn't applied anymore
<heftig> SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
<heftig> moving this line to the end of 50-udev-default.rules restores correct behavior, as it's after usb_id
<zbyszek> heftig: please post a patch
<heftig> i guess one could move all the stuff after the default_permissions section to before that section

This results in these:

http://bugs.gentoo.org/show_bug.cgi?id=461456
http://www.chakra-project.org/bbs/viewtopic.php?id=9883&p=2
http://forums.gentoo.org/viewtopic-t-953970-start-0-postdays-0-postorder-asc-highlight-.html

Proposed fix is:

 heftig> that said, try editing 50-udev-default.rules and move the stuff after 
         LABEL="default_permissions_end" to the beginning of the file
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-03-19 18:22:56 UTC
Created attachment 342660 [details, diff]
Possible fix (thanks to heftig)

Possible fix, untested
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-03-19 19:09:54 UTC
Created attachment 342662 [details, diff]
Correct patch. Still untested.
Comment 4 barrie backhurst 2013-03-19 22:46:19 UTC
Works for me printing a test page
I restarted udev and cupsd after patching

Thanks for tracking it down Samuli
Comment 5 jospezial 2013-03-20 01:11:48 UTC
After editing the file I simple switched my printer off and on.
Now I could readd the printer in cups.
It is printing again.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2013-03-20 05:43:07 UTC
Committed to Portage now because upstream got it now too:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=bbb7f2ae5035105575365750592caa87213d7072

+*udev-198-r2 (20 Mar 2013)
+
+  20 Mar 2013; Samuli Suominen <ssuominen@gentoo.org> +udev-198-r2.ebuild:
+  Move builtins section before permissions section in
+  /lib/udev/rules.d/50-udev-default.rules to fix eg. USB printing wrt #462346

The patch in portage is slightly adjusted, since in git the firmware line is in it's own file, which isn't the case yet for 198
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-03-24 13:53:30 UTC
*** Bug 461456 has been marked as a duplicate of this bug. ***
Comment 8 marcc 2013-03-24 16:56:04 UTC
*** Bug 462988 has been marked as a duplicate of this bug. ***