Package Details: libmtp-git 1.1.11.r34.gbbfa5a3-1

Git Clone URL: (read-only, click to copy)
Package Base: libmtp-git
Description: Library implementation of the Media Transfer Protocol
Upstream URL:
Licenses: LGPL
Conflicts: libmtp
Provides: libmtp
Submitter: None
Maintainer: saimn
Last Packager: saimn
Votes: 44
Popularity: 0.000000
First Submitted: 2012-01-21 19:49 (UTC)
Last Updated: 2016-10-03 08:24 (UTC)

Required by (55)

Sources (1)

Latest Comments

eduard commented on 2016-08-05 12:24 (UTC)

Can not build: ... libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -I/usr/include/libusb-1.0 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -Wmissing-prototypes -MT libmtp_la-util.lo -MD -MP -MF .deps/libmtp_la-util.Tpo -c util.c -fPIC -DPIC -o .libs/libmtp_la-util.o In file included from /usr/include/string.h:630:0, from util.c:36: util.h:29:7: error: expected identifier or ‘(’ before ‘__extension__’ char *strndup (const char *s, size_t n); ^ util.c:111:7: error: expected identifier or ‘(’ before ‘__extension__’ char *strndup (const char *s, size_t n) ^ make[2]: *** [Makefile:530: libmtp_la-util.lo] Error 1 make[2]: Leaving directory '/usr/local/aur/jmtpfs_libmtp-gvfs-git/src/libmtp-build/src' make[1]: *** [Makefile:503: all-recursive] Error 1 make[1]: Leaving directory '/usr/local/aur/jmtpfs_libmtp-gvfs-git/src/libmtp-build' make: *** [Makefile:387: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

saimn commented on 2014-07-09 21:04 (UTC)

The git url must be updated. I have also made some other improvements here:

piojo commented on 2013-09-15 14:57 (UTC)

I believe the two URLs currently yield the same repository. It doesn't seem the code has been updated in the past few months, either.

nebulon commented on 2013-03-17 02:05 (UTC)

I think "git://" is the correct git url now. At least it seems to be more current. (Or I just encountered a mirror sync issue on their side :-) )

piojo commented on 2013-02-13 17:57 (UTC)

I uploaded a fixed PKGBUILD. Hope it's not so horrible to use sed instead of a patch ;-)

ilpianista commented on 2013-02-07 21:22 (UTC)

Disowned as this was broken for one month and the fix was known.

lubosz commented on 2013-01-12 01:21 (UTC)

It's very nice that autotools breaks the build because of two characters. This is the missing patch from csolisr's PKGBUILD

csolisr commented on 2013-01-10 17:59 (UTC)

To fix the error that doesn't allow to compile because of the AM_CONFIG_HEADER deprecated macro, just use the source at . PS: Devs, please fix it upstream or use my patch.

commented on 2012-04-09 17:16 (UTC)

Hey naguz. Thanks for letting me know about the new release. As it turns out, this package does not need to be updated every time a new version of libmtp is available. When you want the latest version of libmtp, just reinstall this package. I have updated this package merge in some minor changes from extra/libmtp 1.1.2-2. I have confirmed that the buggy behavior everyone is describing is not the fault of this package (the same thing happens with extra/libmtp 1.1.2-2), and that it is still present in the latest software. The libmtp people are working on it:

commented on 2012-04-07 21:48 (UTC)

libmtp 1.1.3 out as of April 3rd.

commented on 2012-03-19 15:18 (UTC)

libmtp 1.1.2 is now in [extra]. Can the Galaxy Nexus users try that version out and let me know if you have the same buggy behavior with it? If you do, we know the bug is not related to my PKGBUILD.

commented on 2012-02-22 15:31 (UTC)

Thanks! I didn't realize the same thing happened in USB Debug mode. Something weird is definitely going on here. Hopefully the Rhythmbox and/or libmtp people get back to us soon.

commented on 2012-02-22 13:15 (UTC)

@openjck: Stumbled upon a similar problem recently (Rhythmbox crashes after file transfer to Galaxy Nexus), posted a bug report a few weeks ago:

commented on 2012-02-19 23:18 (UTC)

Filed bug:

commented on 2012-02-19 21:41 (UTC)

Got an email notification about the following comment, but for some reason it's not here any more. Pasting below. > Great work. thx. After installing the Galaxy Nexuss appears in Rhythmbox. After dragging one mp3 to the device Rhythmbox crashes.... is it a Rhythmbox or a libmtp-git issue? > > Feb 19 08:50:37 localhost kernel: [ 2721.477698] rhythmbox[12314]: segfault at 18 ip 00007f1230d3bf00 sp 00007fff950a9c50 error 4 in[7f1230cb2000+12e000] > Feb 19 08:50:38 localhost kernel: [ 2723.076970] rhythmbox-metad[12502]: segfault at 9 ip 0000000000408305 sp 00007fff0f498390 error 4 in rhythmbox-metadata[400000+12000] I also had problems with Rhythmbox. I talked to the developers, but they weren't sure if it was a Rhythmbox or a libmtp issue. I'll submit a Rhythmbox bug and link it here.

commented on 2012-02-14 21:41 (UTC)

w1ntermute: It looks like mtpfs does use libmtp. If you have libmtp-git installed, it would use libmtp-git instead. Thanks for letting me know that the behavior is the same whether you use libmtp or libmtp-git. This means one of the following must be true: 1. The behavior you are experiencing is not related to libmtp at all. For example, maybe mtpfs has a bug. 2. The behavior you are experiencing is related to libmtp, but they haven't fixed it yet even in the latest development snapshots. I would file a bug with libmtp (, if for no other reason than to get their thoughts on the matter. I would do it myself, but I don't know the specifics of your issue. Let me know how it goes -- I am very interested in what is causing this.

w1ntermute commented on 2012-02-09 03:45 (UTC)

What I meant was that there's an 'mtpfs' package (in the repos) that I'm having trouble with. I'm using it to mount my Galaxy Nexus's storage to a local directory. I'm getting the same results regardless of whether I'm running libmtp or libmtp-git, but I'm not sure if this is because (a) mtpfs doesn't use libmtp, and thus wouldn't be affected by any changes to it, or (b) the changes made from libmtp to libmtp-git didn't fix the specific problems I'm having. I want to make sure that (a) isn't true before proceeding to (b).

commented on 2012-02-09 03:37 (UTC)

Correction: If the problem goes away after doing that, let me know. Basically, feel free to let me know one way or the other. :-)

commented on 2012-02-09 03:33 (UTC)

Hey w1ntermute. This is libmtp, just a newer version of it. Do you have the same problem when you use the normal libmtp package? You can install it by doing "sudo pacman -S libmtp". If you have the same problem after doing that, let me know.

w1ntermute commented on 2012-02-09 03:16 (UTC)

I'm still seeing several bugs when using mtpfs - does it use libmtp on the backend, or should I be looking for support elsewhere?

commented on 2012-01-23 13:20 (UTC)

Works fine now, thx! :)

commented on 2012-01-21 22:59 (UTC)

Fixed upstream.;a=commit;h=fbd8e95f4ff7abfcd38a27c3c56537b8fc28203e

commented on 2012-01-21 21:02 (UTC)

Thanks for the comment! That's a bug with libmtp upstream, not the package. I will try to submit a patch.

commented on 2012-01-21 20:34 (UTC)

libusb1-glue.c:1574:9: error: expected ')' before '!' token make[2]: *** [libmtp_la-libusb1-glue.lo] Fehler 1 make[2]: Leaving directory `/tmp/yaourt-tmp-bung/aur-libmtp-git/src/libmtp-build/src' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/tmp/yaourt-tmp-bung/aur-libmtp-git/src/libmtp-build' make: *** [all] Fehler 2 :(