Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264941 - [gnome-overlay] gnome-base/gvfs-1.2.1 does not fail when gphoto2 in use but cannot be enabled.
Summary: [gnome-overlay] gnome-base/gvfs-1.2.1 does not fail when gphoto2 in use but c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on: 259196
Blocks: gnome2.26
  Show dependency tree
 
Reported: 2009-04-05 06:43 UTC by Priit Laes (IRC: plaes)
Modified: 2009-05-14 10:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2009-04-05 06:43:34 UTC
Moving from 2.24 -> 2.26 has broken gphoto2 backend, at least it does not mount my camera anymore, giving following error message: "Error initializing camera: -1: Unspecified error"

plaes@chi ~ $ gvfs-mount -o
Monitoring events. Press Ctrl+C to quit.
Volume added:       'Canon, Inc. Canon Digital Camera'

plaes@chi ~ $ gvfs-mount mount gphoto2://[usb:001,009]/
Error mounting location: volume doesn't implement mount
Error mounting location: Error initializing camera: -1: Unspecified error

plaes@chi ~ $ gvfs-mount -i -l
Volume(0): Canon, Inc. Canon Digital Camera
  Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
  ids:
   hal-udi: '/org/freedesktop/Hal/devices/usb_device_4a9_3110_noserial_if0'
   unix-device: '/dev/bus/usb/001/009'
  activation_root=gphoto2://[usb:001,009]/
  themed icons:  [camera-photo]
  can_mount=1
  can_eject=0




[ebuild   R   ] media-libs/libgphoto2-2.4.4  USE="exif hal nls -bonjour -doc" CAMERAS="-adc65 -agfa_cl20 -aox -barbie -canon -casio_qv -clicksmart310 -digigr8 -digita -dimagev -dimera3500 -directory -enigma13 -fuji -gsmart300 -hp215 -iclick -jamcam -jd11 -jl2005a -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 -topfield -toshiba_pdrm11" 0 kB
[ebuild   R   ] gnome-base/gvfs-1.2.1  USE="avahi bluetooth fuse gnome gnome-keyring gphoto2 hal samba -archive -bash-completion -cdda -debug -doc" 0 kB [1]
Comment 1 Priit Laes (IRC: plaes) 2009-04-05 06:51:24 UTC
Adding as GNOME 2.26 blocker
Comment 2 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-05 07:06:40 UTC
(In reply to comment #0)
> [ebuild   R   ] media-libs/libgphoto2-2.4.4  USE="exif hal nls -bonjour -doc"
> CAMERAS="-adc65 -agfa_cl20 -aox -barbie -canon -casio_qv -clicksmart310
> -digigr8 -digita -dimagev -dimera3500 -directory -enigma13 -fuji -gsmart300
> -hp215 -iclick -jamcam -jd11 -jl2005a -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 -topfield -toshiba_pdrm11" 0 kB

None of the CAMERAS are enabled, even though it works quite often with this, sometimes it doesn't. Enable *all* of them and try again.
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-05 07:10:51 UTC
btw, I cannot reproduce this with a Canon EOS 400D:

$ gvfs-mount -i -l
<snip>
Volume(0): Canon, Inc. Canon Digital Camera
  Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
  ids:
   hal-udi: '/org/freedesktop/Hal/devices/usb_device_4a9_3110_noserial_if0'
   unix-device: '/dev/bus/usb/001/003'
  activation_root=gphoto2://[usb:001,003]/
  themed icons:  [camera-photo]
  can_mount=1
  can_eject=0
  Mount(0): Canon, Inc. Canon Digital Camera -> gphoto2://[usb:001,003]/
    Type: GProxyShadowMount (GProxyVolumeMonitorGPhoto2)
    themed icons:  [camera-photo]
    x_content_types: x-content/image-dcf
    can_unmount=1
    can_eject=0
    is_shadowed=0
Mount(0): Canon, Inc. Canon Digital Camera -> gphoto2://[usb:001,003]/
  Type: GDaemonMount
  themed icons:  [camera-photo]  [camera]
  x_content_types: x-content/image-dcf
  can_unmount=1
  can_eject=0
  is_shadowed=1
Comment 4 Priit Laes (IRC: plaes) 2009-04-05 11:21:39 UTC
For some weird reason gvfs doesn't build with gphoto2 support enabled :(

This is the use:
USE="avahi bluetooth fuse gnome gnome-keyring gphoto2 hal samba -archive -bash-completion -cdda -debug -doc"

But this is the configure output:

        FTP/HTTP/WebDAV support       yes
        ObexFTP support               yes
	Samba support:	              yes
	FUSE support:                 yes
        CDDA support:                 no
        Gphoto2 support:              no      <<< WHY ???
	archive support:	      no
        GConf support:                yes
        DNS-SD support:               yes
	Use HAL for volume monitor:   yes (with fast init path: yes)
	GNOME Keyring support:        yes
	Bash-completion support:      no
Comment 5 Priit Laes (IRC: plaes) 2009-04-05 11:27:41 UTC
Aha.. this is actually libgphoto2 problem.

But gvfs SHOULD have failed in this case anyway...
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-05 12:56:51 UTC
looks like gvfs[gphoto2] required libgphoto2[exif]. Added and pushed to overlay.
Comment 7 Priit Laes (IRC: plaes) 2009-04-05 13:21:54 UTC
(In reply to comment #6)
> looks like gvfs[gphoto2] required libgphoto2[exif]. Added and pushed to
> overlay.
> 

No it wasn't the case. gvfs works fine when libgphoto2 is built without exif.

The real problem was that when you had USE="gphoto2" it didn't fail properly when it couldn't enable gphoto2.


Comment 8 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-05 13:26:44 UTC
(In reply to comment #7)
> The real problem was that when you had USE="gphoto2" it didn't fail properly
> when it couldn't enable gphoto2.
> 

That's "not-found" automagic -- not failing when deps aren't satisfied. A *lot* of packages have this problem.
Comment 9 Priit Laes (IRC: plaes) 2009-04-05 14:25:01 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > The real problem was that when you had USE="gphoto2" it didn't fail properly
> > when it couldn't enable gphoto2.
> > 
> 
> That's "not-found" automagic -- not failing when deps aren't satisfied. A *lot*
> of packages have this problem.
> 

Filed upstream: http://bugzilla.gnome.org/show_bug.cgi?id=578027 
Comment 10 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-05-14 10:44:52 UTC
Patch from upstream bug added to tree, closing...