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

Bug 212574

Summary: media-libs/libgphoto2-2.4.0-r1 - wrong rule in 70-libgphoto2.rules every USB device is in plugdev group
Product: Gentoo Linux Reporter: Gaspar <blakeyed>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: minor CC: graphics+disabled
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 70-libgphoto2.rules
print-camera-list udev-rules version 0.98 group plugdev > 70-libgphoto2.rules

Description Gaspar 2008-03-07 11:24:05 UTC
I just plugged in a new printer and I couldn't work with it in lp group even writing a rule for that printer.

I found this in 70-libgphoto2.rules in a single line:

GROUP="plugdev"

I just commented it and now it is ok.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-07 11:30:40 UTC
Attach the file here and post emerge -pv libgphoto2 output as well.
Comment 2 Gaspar 2008-03-07 11:38:16 UTC
Created attachment 145477 [details]
70-libgphoto2.rules

I commented line 34:

GROUP="plugdev"

to make it work fine
Comment 3 Gaspar 2008-03-07 11:38:51 UTC
BixarracO gaspy # emerge -pv libgphoto2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/libgphoto2-2.4.0-r1  USE="exif hal nls -doc" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-03-07 11:44:02 UTC
Don't have any such line here. Re-emerge media-libs/libgphoto2 and check again. If you don't want to recompile it, then running

`/usr/lib/libgphoto2/print-camera-list udev-rules version 0.98 group plugdev > /etc/udev/rules.d/70-libgphoto2.rules` 

does the same thing like the ebuild.
Comment 5 Gaspar 2008-03-07 12:42:54 UTC
It outputs the same wrong file. I emerged the last version, and I have downloaded the tar.bz2, configured and maked by myself, then generated the rules file, and that wrong line is still appearing.

Configured with this line (c&p from emerge stdout):
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-drivers=adc65,agfa_cl20,aox,barbie,canon,casio_qv,clicksmart310,digigr8,digita,dimera3500,directory,enigma13,fuji,gsmart300,hp215,iclick,jamcam,jd11,kodak_dc120,kodak_dc210,kodak_dc240,kodak_dc3200,kodak_ez200,konica,konica_qm150,largan,lg_gsm,mars,dimagev,mustek,panasonic_coolshot,panasonic_l859,panasonic_dc1000,panasonic_dc1580,pccam300,pccam600,polaroid_pdc320,polaroid_pdc640,polaroid_pdc700,ptp2,ricoh,ricoh_g3,samsung,sierra,sipix_blink,sipix_blink2,sipix_web2,smal,sonix,sony_dscf1,sony_dscf55,soundvision,spca50x,sq905,stv0674,stv0680,sx330z,template,toshiba_pdrm11 --with-doc-dir=/usr/share/doc/libgphoto2-2.4.0-r1 --with-html-dir=/usr/share/doc/libgphoto2-2.4.0-r1/html --with-hotplug-doc-dir=/usr/share/doc/libgphoto2-2.4.0-r1/hotplug --enable-nls --with-rpmbuild=/bin/true --disable-docs udevscriptdir=/lib/udev GTKDOC=/bin/true --with-exif-prefix=/usr --build=i686-pc-linux-gnu



Here is the stdout/stderr:

..... A lot of idVendors...
ATTRS{idVendor}=="0919", ATTRS{idProduct}=="0100", GROUP="plugdev"
ATTRS{idVendor}=="093a", ATTRS{idProduct}=="010f", GROUP="plugdev"
ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="3003", GROUP="plugdev"
Error: Trying to output device 0/0 with incorrect match flags.
GROUP="plugdev"
ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="3047", GROUP="plugdev"
ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="30c0", GROUP="plugdev"
ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="30c0", GROUP="plugdev"
..... A lot of idVendors...
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-03-07 12:59:47 UTC
Cannot reproduce it at all; you should recompile this thing with CAMERAS variable unset as that's the only thing that upstream supports anyway.

ebuild   R   ] media-libs/libgphoto2-2.4.0-r1  USE="-doc exif hal nls" CAMERAS="-adc65 -agfa_cl20 -aox -barbie -canon -casio_qv -clicksmart310 -digigr8 -digita -dimagev -dimera3500 -directory -enigma13 -fuji -gsmart300 -hp215 -iclick -jamcam -jd11 -kodak_dc120 -kodak_dc210 -kodak_dc240 -kodak_dc3200 -kodak_ez200 -konica -konica_qm150 -largan -lg_gsm -mars -mustek -panasonic_coolshot -panasonic_dc1000 -panasonic_dc1580 -panasonic_l859 -pccam300 -pccam600 -polaroid_pdc320 -polaroid_pdc640 -polaroid_pdc700 -ptp2 -ricoh -ricoh_g3 -samsung -sierra -sipix_blink -sipix_blink2 -sipix_web2 -smal -sonix -sony_dscf1 -sony_dscf55 -soundvision -spca50x -sq905 -stv0674 -stv0680 -sx330z -template -toshiba_pdrm11" 3,106 kB 
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-03-07 13:00:35 UTC
Created attachment 145480 [details]
print-camera-list udev-rules version 0.98 group plugdev > 70-libgphoto2.rules
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-03-07 17:21:10 UTC
I don't have this as well, I use CAMERAS="canon ptp2", maybe one of the drivers in your list generates a wrong rule. Would you be kind enough to find which one does this and report upstream ?
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-03-07 17:25:01 UTC

*** This bug has been marked as a duplicate of bug 201028 ***