[Pkg-phototools-devel] Bug#509293: Bug#509293: libgphoto2-2: udev rules broken - use "usb_device" rather than "usb|usb_device"

Cyril Brulebois kibi at debian.org
Wed Dec 24 22:54:06 UTC 2008


Sarah Sharp <saharabeara at gmail.com> (20/12/2008):
> /etc/udev/rules.d/025_libgphoto2.rules includes this skip rule:
> 
> 	SUBSYSTEM!="usb|usb_device", GOTO="libgphoto2_rules_end"
> 
> The pipe is not documented to work in the udev manpage, and I think
> this is the problem.  When I change the line to:
> 
> 	SUBSYSTEM!="usb_device", GOTO="libgphoto2_rules_end"
> 
> I can access the camera as a normal user.

Hello again, Sarah.

I've checked again what I wrote for the versioned recommendation on
udev, and the upstream commit is as attached. As you can see, there's no
documentation update for that. I've also found other packages using that
syntax, while learning a bit more about udev:
,--
| $ egrep '!=.*\|' /etc/udev/rules.d/*
| /etc/udev/rules.d/025_libgphoto2.rules:SUBSYSTEM!="usb|usb_device", GOTO="libgphoto2_rules_end"
| /etc/udev/rules.d/60-persistent-input.rules:ACTION!="add|change",                       GOTO="persistent_input_end"
| /etc/udev/rules.d/60-persistent-storage.rules:ACTION!="add|change",                     GOTO="persistent_storage_end"
| /etc/udev/rules.d/60-persistent-storage.rules:ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1", \
| /etc/udev/rules.d/60-persistent-storage-tape.rules:ACTION!="add|change",                        GOTO="persistent_storage_tape_end"
| /etc/udev/rules.d/60-persistent-v4l.rules:ACTION!="add|change",                 GOTO="persistent_v4l_end"
| /etc/udev/rules.d/65_dmsetup.rules:ACTION!="add|change",                                GOTO="device_mapper_end"
| /etc/udev/rules.d/75-cd-aliases-generator.rules:        SUBSYSTEMS!="usb|ieee1394", \
| /etc/udev/rules.d/75-persistent-net-generator.rules:KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
| /etc/udev/rules.d/91-permissions.rules:ACTION!="add|change", GOTO="permissions_end"
`--

So, it looks like more than just ACTION!='foo|bar' is supported, as
expected by the libgphoto2 upstream developers. Maybe some bugs were
then introduced in udev, which might explain why it is no longer
working? Could you please send to the bugreport the output of “udevinfo
-a” on the appropriate device so that we have an idea of what's missing?

Happy celebrations, if any. ;)

Mraw,
KiBi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-phototools-devel/attachments/20081224/f03f2dc0/attachment.pgp 


More information about the Pkg-phototools-devel mailing list