Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#624537: libmtp8: Use udev to check if mtp-probe is available

16 views
Skip to first unread message

Felix Rublack

unread,
May 3, 2011, 3:30:02 PM5/3/11
to
Package: libmtp8
Version: 1.0.6-4
Tags: patch
Followup-For: Bug #624537

Hi!

Just adding libmtp-runtime to the recommends does not fix the bug. The udev rules
should check, if mtp-probe exists and if it is executable. I created a patch for
mtp-hotplug to get this feature using standard udev facilities. The only drawback
is, that TEST requires an full path. So i have to remove the shortcut for PROGRAM
if mtp-probe is in the default /lib/udev directory.

Greetings
Felix Rublack

-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

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

Versions of packages libmtp8 depends on:
ii libc6 2.13-2 Embedded GNU C Library: Shared lib
ii libusb-0.1-4 2:0.1.12-17 userspace USB programming library

Versions of packages libmtp8 recommends:
pn libmtp-runtime <none> (no description available)
ii udev 168-1 /dev/ and hotplug management daemo

libmtp8 suggests no packages.

-- no debconf information

test-mtp-probe.patch

Alessio Treglia

unread,
May 3, 2011, 3:40:01 PM5/3/11
to
Hi Felix!

On Tue, May 3, 2011 at 9:25 PM, Felix Rublack <frub...@gmail.com> wrote:
> Just adding libmtp-runtime to the recommends does not fix the bug. The udev rules
> should check, if mtp-probe exists and if it is executable. I created a patch for
> mtp-hotplug to get this feature using standard udev facilities. The only drawback
> is, that TEST requires an full path. So i have to remove the shortcut for PROGRAM
> if mtp-probe is in the default /lib/udev directory.

I'd prefer to promote libmtp-runtime as strict dependency of libmtp8.

Thank you very much for the effort, though.

--
Alessio Treglia          | www.alessiotreglia.com
Debian Developer         | ale...@debian.org
Ubuntu Core Developer    | quadr...@ubuntu.com
0FEC 59A5 E18E E04F 6D40 593B 45D4 8C7C DCFC 3FD0

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Jörg Sommer

unread,
Aug 21, 2011, 10:10:02 AM8/21/11
to
Hi Alessio,

Alessio Treglia hat am Tue 03. May, 21:37 (+0200) geschrieben:


> On Tue, May 3, 2011 at 9:25 PM, Felix Rublack <frub...@gmail.com> wrote:
> > Just adding libmtp-runtime to the recommends does not fix the bug. The udev rules
> > should check, if mtp-probe exists and if it is executable. I created a patch for
> > mtp-hotplug to get this feature using standard udev facilities. The only drawback
> > is, that TEST requires an full path. So i have to remove the shortcut for PROGRAM
> > if mtp-probe is in the default /lib/udev directory.
>
> I'd prefer to promote libmtp-runtime as strict dependency of libmtp8.

Why not putting the binary in libmtp-common?

Because the documentation of all packages is the same and all depend on
libmtp-common, you should use a symlink link /usr/share/doc/libgcc1.

% for i in $D/libmtp*; do cat $i/* |md5sum; done
bc21da1116112b8e8270b3cb6f0a15da -
bc21da1116112b8e8270b3cb6f0a15da -
bc21da1116112b8e8270b3cb6f0a15da -

% du -sh $D/libmtp*
72K /usr/share/doc/libmtp9
72K /usr/share/doc/libmtp-common
72K /usr/share/doc/libmtp-runtime

Regards, Jörg.
--
Kluge Rede, der nicht Tat folgt, wird dir ohne Früchte darben –
ist wie eine Wunderblume: ohne Duft, nur reich an Farben.
(Gautama Buddha, Dhammapada)

signature.asc
0 new messages