Package: gvfs-backends
Version: 1.20.2-1nomtp2
Severity: normal
Tags: upstream patch

Dear Maintainer,

Copying data from two different USB MTP devices[*] didn't work,
receiving the corrupted files in the local computer.

Further investigation, rebuilding gvfs without libmtp (see patch) and
trying other MTP library (go-mtpfs) improved the situation but still
got some corruption in the local copy.

Just by chance I rebooted the computer and then devices were visible
and transfer worked smoothly.  I realised, to my surprise, that it
was the gphoto2 backend who was handling the transfers even though the
devices were clearly in MTP mode.

Looking at gphoto2 webpage shows that they have recently added MTP
support to their existing and well known PTP features.

So it may be time to drop out separate mtp handling altogether with
recent versions of gphoto2.

For info, my version of libgphoto2 is:

ii  libgphoto2-6:amd64                   2.5.4-1                 amd64

The patch
---------

The patch I provide disables gvfs-mtp from the configure and install
phases.  However an annoying window of "unable to handle device" is
still displayed whenever the MTP device is connected.  This warning
can be safely ignored.

This is a coarse but good-enough approach for me.  A better option
might be checking if gphoto2 is handling the mount before launching
the mtp backend, but this should be an upstream issue that goes beyond
my capabilities.

[*] Two Android4 phones: ZTE KisPro and Moto-G


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gvfs-backends depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.20.0-2
ii  gvfs                                         1.20.2-1nomtp2
ii  gvfs-common                                  1.20.2-1nomtp2
ii  gvfs-daemons                                 1.20.2-1nomtp2
ii  gvfs-libs                                    1.20.2-1nomtp2
ii  libarchive13                                 3.1.2-8
ii  libatk1.0-0                                  2.12.0-1
ii  libavahi-client3                             0.6.31-4
ii  libavahi-common3                             0.6.31-4
ii  libavahi-glib1                               0.6.31-4
ii  libbluetooth3                                4.101-4.1
ii  libbluray1                                   2:0.6.0-dmo2
ii  libc6                                        2.18-7
ii  libcairo-gobject2                            1.12.16-2
ii  libcairo2                                    1.12.16-2
ii  libcdio-cdda1                                0.83-4.1
ii  libcdio-paranoia1                            0.83-4.1
ii  libcdio13                                    0.83-4.1
ii  libdbus-1-3                                  1.8.2-1
ii  libdbus-glib-1-2                             0.102-1
ii  libexif12                                    0.6.21-1
ii  libexpat1                                    2.1.0-5
ii  libgcrypt11                                  1.5.3-4
ii  libgdk-pixbuf2.0-0                           2.30.7-1
ii  libglib2.0-0                                 2.40.0-3
ii  libgoa-1.0-0b                                3.12.2-1
ii  libgphoto2-6                                 2.5.4-1
ii  libgphoto2-port10                            2.5.4-1
ii  libgtk-3-0                                   3.12.2-1
ii  libgudev-1.0-0                               204-10
ii  libimobiledevice4                            1.1.6+dfsg-2
ii  libpango-1.0-0                               1.36.3-1
ii  libpangocairo-1.0-0                          1.36.3-1
ii  libplist2                                    1.11-3
ii  libsecret-1-0                                0.18-1
ii  libsmbclient                                 2:4.1.8+dfsg-1
ii  libsoup2.4-1                                 2.46.0-2
ii  libxml2                                      2.9.1+dfsg1-3
ii  psmisc                                       22.21-2

Versions of packages gvfs-backends recommends:
ii  gnome-keyring  3.12.0-2

Versions of packages gvfs-backends suggests:
ii  obex-data-server  0.4.5-1+b3
ii  samba-common      2:4.1.8+dfsg-1

-- no debconf information
>From ef055e3c267786f52b5e7a36613a041dece6cae2 Mon Sep 17 00:00:00 2001
From: Miguel Telleria de Esteban <mig...@mtelleria.com>
Date: Mon, 23 Jun 2014 15:01:05 +0200
Subject: [PATCH 1/3] Disabling mtp backend since it conflicts with gphoto2
 backend in recent versions of gphoto2

---
 debian/rules | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index a3beb40..f042344 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,7 +17,9 @@ DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 DEB_CONFIGURE_EXTRA_FLAGS += \
 	--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
 	--libexecdir=/usr/lib/gvfs \
-	--disable-hal
+	--disable-hal \
+	--disable-libmtp
+
 
 ifeq ($(DEB_HOST_ARCH_OS),linux)
 
@@ -33,11 +35,6 @@ install/gvfs-backends::
 		debian/tmp/usr/share/gvfs/remote-volume-monitors/gphoto2.monitor \
 		debian/tmp/usr/lib/gvfs/gvfsd-cdda \
 		debian/tmp/usr/share/gvfs/mounts/cdda.mount \
-		debian/tmp/usr/lib/gvfs/gvfsd-mtp \
-		debian/tmp/usr/lib/gvfs/gvfs-mtp-volume-monitor \
-		debian/tmp/usr/share/gvfs/mounts/mtp.mount \
-		debian/tmp/usr/share/dbus-1/services/org.gtk.Private.MTPVolumeMonitor.service \
-		debian/tmp/usr/share/gvfs/remote-volume-monitors/mtp.monitor
 
 
 install/gvfs::
-- 
2.0.0.rc4

Reply via email to