Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Advice needed regarding udisks
Date: Sat, 17 Aug 2013 19:21:02
Message-Id: CADPrc80yu5G=v_PuKWvDdeXAW_KRPxMxe4jMo1QX9+vwp3JBNg@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: Advice needed regarding udisks by Grant
1 On Sat, Aug 17, 2013 at 2:00 PM, Grant <emailgrant@×××××.com> wrote:
2 >>>>> This is actually a portage question. How can I install udisks-2 in a
3 >>>>> way that will fix this problem? I'm confused by how to handle the
4 >>>>> slotting behavior.
5 >>
6 >> I think the issue here is that we are not understanding what the
7 >> problem is. It happens with an application in particular, or with a
8 >> desktop environment? It happens when you try to umount the device, or
9 >> when you disconnect it from the computer? Do you loose data in the
10 >> camera, or when transferring photos to your computer? Or is only that
11 >> you don't like the error reported?
12 >
13 > When trying to eject a USB camera in thunar in xfce4, the error
14 > appears and the device does not umount. Here is a command that also
15 > produces the error:
16 >
17 > # udisks --detach /dev/sdb
18 > Detach failed: Error detaching: helper exited with exit code 1:
19 > Detaching device /dev/sdb
20 > USB device: /sys/devices/pci0000:00/0000:00:02.0/usb2/2-6)
21 > SYNCHRONIZE CACHE: FAILED: No such file or directory
22 > (Continuing despite SYNCHRONIZE CACHE failure.)
23 > STOP UNIT: FAILED: No such file or directory
24 >
25 >> udisks is deprecated and (AFAIK) unmaintained. Do you *really* need
26 >> it? Or perhaps is being pulled by a package that actually supports
27 >> udisks2, but you have a USE flag that pulls udisks1?
28 >>
29 >> In GNOME, if you have gvfs with the gdu USE flag, it pulls libgdu,
30 >> which pulls udisks1. But you don't actually need it; everything is
31 >> covered by the udisks USE flag (which pulls udisks2).
32 >>
33 >> Do a "equery depends udisks" and see what is pulling udisks1.
34 >
35 > I get the following:
36 >
37 > # equery depends udisks
38 > * These packages depend on udisks:
39 > gnome-base/gvfs-1.12.3-r1 (udisks ? >=sys-fs/udisks-1.90:2)
40 > gnome-base/libgdu-3.0.2 (=sys-fs/udisks-1.0*:0)
41 >
42 > # emerge -pv gvfs libgdu
43 > [ebuild R ] gnome-base/libgdu-3.0.2 USE="-avahi -doc -gnome-keyring" 0 kB
44 > [ebuild R ] gnome-base/gvfs-1.12.3-r1 USE="cdda gdu http udev
45 > -afp -archive -avahi -bluetooth -bluray -doc -fuse -gnome-keyring
46 > -gphoto2 -ios -samba (-udisks)" 0 kB
47
48 Why is the udisks USE flag masked for gvfs? Try to emerge -C
49 sys-fs/udisks:0, and reemerge gvfs with USE="-gdu udisks". If you get
50 to emerge gvfs with the udisks USE flag and without the gdu one, I
51 believe your problem will go away.
52
53 Regards.
54 --
55 Canek Peláez Valdés
56 Posgrado en Ciencia e Ingeniería de la Computación
57 Universidad Nacional Autónoma de México