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

Bug 603120

Summary: >=dev-embedded/openocd-0.8.0 installing udev rules which changing devices group to plugdev.
Product: Gentoo Linux Reporter: Oleh <moonlapse81>
Component: Current packagesAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: normal CC: fercerpav, zerochaos
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Oleh 2016-12-19 17:45:45 UTC
with version starting with 0.8.0 (and newer), upstream udev rules installed for certain devices which then owned by plugdev group. For example, if no openocd installed certain usb devices such as UART are owned by uucp
crw-rw---- 1 root uucp    188, 2 dec 19 18:26 /dev/ttyUSB0

After installing openocd (and re-plugging) this now owned by plugdev group:

crw-rw-r-- 1 root plugdev 188, 0 dec 19 18:41 /dev/ttyUSB0

If user not in plugdev group, then this device is not accessible. Suggestion is:
ebuild should print message about users supposed to create and add themselves into plugdev group, somewhere in pkg_postinst.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2017-01-24 16:53:32 UTC
also of note, plugdev isn't a default group in gentoo.

fixed 0.8.0, 0.9.0, and 9999

added enewgroup and elog in pkg_postinst