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

Bug 664666

Summary: media-libs/libmtp - skipping of udev libmtp usb rules
Product: Gentoo Linux Reporter: Scall <scall>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED DUPLICATE    
Severity: normal CC: paolo.pedroni, vityokster
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mtp-hotplug.patch
mtp-hotplug.c

Description Scall 2018-08-26 18:18:18 UTC
The following line in "/lib/udev/rules.d/69-libmtp.rules" is currently causing the skipping of all the rules for connected devices, at least when using recent kernels (e.g. 4.14 and 4.18):
ACTION!="add", GOTO="libmtp_rules_end"

Steps to reproduce the issue:
1. Install media-libs/libmtp.
2. Connect via USB any device with a rule in "/lib/udev/rules.d/69-libmtp.rules".
3. Run "ls -l /dev/libmtp*" to notice that the symlink hasn't been created (the device rule hasn't been reached).
Comment 1 Scall 2018-08-26 18:21:12 UTC
Created attachment 545158 [details, diff]
mtp-hotplug.patch

Proposed patch attached.
Comment 2 Scall 2018-08-26 20:10:07 UTC
Reported upstream to make sure they are aware of the issue: https://sourceforge.net/p/libmtp/bugs/1797/
Comment 3 Scall 2018-08-26 21:02:39 UTC
Created attachment 545164 [details, diff]
mtp-hotplug.c

Updated patch.
Comment 4 Paolo Pedroni 2018-10-29 14:29:35 UTC
There is a new release of libmtp at https://sourceforge.net/projects/libmtp/files/libmtp/1.1.16/
Comment 5 Andreas Sturmlechner gentoo-dev 2018-11-01 22:07:30 UTC

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