Package Details: go-mtpfs-git 20150917-1

Git Clone URL: https://aur.archlinux.org/go-mtpfs-git.git (read-only)
Package Base: go-mtpfs-git
Description: Simple tool for viewing MTP devices as FUSE filesystems
Upstream URL: http://github.com/hanwen/go-mtpfs
Licenses: BSD
Submitter: wmarshall
Maintainer: McNoggins (valandil)
Last Packager: McNoggins
Votes: 128
Popularity: 0.597852
First Submitted: 2012-08-03 20:06
Last Updated: 2015-12-02 00:50

Latest Comments

McNoggins commented on 2015-12-02 00:50

Thanks for catching this, should be fixed now

edward_81 commented on 2015-11-29 23:05

Build fail
==> Starting check()...
go: GOPATH entry is relative; must be absolute path: "".
Run 'go help gopath' for usage.
==> ERROR: A failure occurred in check().
Aborting...

McNoggins commented on 2015-08-05 18:56

That sounds correct, I will update soon when I'm on my Arch computer.

Niluge_KiWi commented on 2015-08-05 18:50

Since https://github.com/hanwen/go-mtpfs/commit/273c68e6e2cc705836391bf48028a68c90cde515 go-mtpfs doesn't depend on libmtp anymore, just libusb.

McNoggins commented on 2015-01-18 23:43

Can't reproduce on my computer, but try running "go install all" as root and try again.

jeruntu commented on 2015-01-18 21:12

Can't build this package: cannot create <nil>/go.o: No such file or directory

McNoggins commented on 2014-12-17 00:49

I suggest you bring this issue to the GitHub tracker: https://github.com/hanwen/go-mtpfs/issues

caevaroy commented on 2014-12-17 00:48

I frequently get this error when using go-mtpfs, and have to fusermount -u and then reconnect. "mtp: cannot run operation ANDROID_GET_PARTIAL_OBJECT64"

McNoggins commented on 2014-08-28 02:24

As of now, it builds fine after upgrading to the latest go package release.

McNoggins commented on 2014-08-22 14:29

Glad that it worked, the problem does not come from go-mtpfs, the latest commit was on 2014-06-24. I'll wait a while to see if they fix the official go package.

tapsiturtle commented on 2014-08-22 08:31

Thanks, it worked for me with "go install all". And yes, it's ugly.

McNoggins commented on 2014-08-20 15:10

I can confirm it, there is a regression caused by a recent update to go 1.3.1 as reported here: https://bugs.archlinux.org/index.php?do=details&task_id=41561

A temporary workaround is to issue the command "sudo go install all" before building go-mtpfs-git. Ugly, but it works.

tapsiturtle commented on 2014-08-19 11:33

I get an error whild building the package:
mkdir -p /usr/lib/go/pkg/linux_amd64/
cp $WORK/strings.a /usr/lib/go/pkg/linux_amd64/strings.a
cd /usr/lib/go/src/pkg/bytes
pack r $WORK/bytes.a $WORK/bytes/_obj/bytes.6 # internal
cp $WORK/bytes.a /usr/lib/go/pkg/linux_amd64/bytes.a
go install strings: open /usr/lib/go/pkg/linux_amd64/strings.a:
permission denied
go install bytes: open /usr/lib/go/pkg/linux_amd64/bytes.a: permission
denied
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build go-mtpfs-git.

Does anyone else has this with the current version?

hexchain commented on 2014-04-19 06:05

Good to know that this package no longer writes to /src.

McNoggins commented on 2014-04-16 14:52

Took over maintenance of the package, added mitch_feasters' fix.

McNoggins commented on 2014-04-11 20:21

mitch_feaster is right, the PKGBUILD needs to be updated

mitch_feaster commented on 2014-02-09 19:27

Looks like `go.sh' was recently deleted from community/go (source: https://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/go&id=579d62cedbaf41f479da05a6d8cb7aaae08982b3 and https://bugs.archlinux.org/task/38597)

You should delete source's of go.sh in the PKGBUILD.

lucasheringer commented on 2014-02-07 15:50

==> Starting check()...
/tmp/yaourt-tmp-lucas/aur-go-mtpfs-git/./PKGBUILD: line 29: /etc/profile.d/go.sh: No such file or directory

installed go package but still got this error :S

misc commented on 2014-01-01 18:47

This PKGBUILD currently installs two folder to /, "pkg" and "src". That really should not be the case…

wmarshall commented on 2013-11-23 05:08

Fair enough WorMzy, git added.

WorMzy commented on 2013-11-22 01:05

==> Extracting sources...
-> Creating working copy of go-mtpfs git repo...
/usr/bin/makepkg: line 583: git: command not found

Package needs git in the makedepends array.

wmarshall commented on 2013-11-14 17:15

Hi Stephen. I'm afraid I don't know anything about the syntax of udev rules files. I've never tried to create a rule for my Galaxy Nexus.

I went the more traditional, non-udev route. I created a mountpoint at /mnt/nexus, and I mount my device with the invocation 'go-mtpfs /mnt/nexus'. Note that this command keeps running until you call 'fusermount -u /mnt/nexus', so you'll either want to run it in the background or in its own terminal.

Is there anyone else using udev with go-mtpfs?

Firefishe commented on 2013-11-14 11:53

I'm using a Samsung SGH-I747 (Galaxy S3/AT&T/US). I've followed the wiki instructions for appending 15-android.rules (in /usr/lib/udev/rules.d/).

I'm a bit confused as to the syntax of that file, though. The line I created for the phone is:

# Galaxy S3 SGH-I747
ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", SYMLINK+="android_adb", OWNER="username"

Then I do this command: (I'm already in the directory so I use "." I've also tried it outside the directory, using normal syntax.)

$ go-mtpfs .
/usr/bin/fusermount: user has no write access to mountpoint /home/username/mountpoint
2013/11/14 05:23:34 mount failed: fusermount exited with code 256.

Here is a pastebin link showing the SAMSUNG portion of my 15-android.rules file:

http://pastie.org/8479806

Any help is appreciated. Thanks in advance. --Stephen

Firefishe commented on 2013-11-14 11:44

I'm using a Samsung SGH-I747 (Galaxy S3/AT&T/US). I've followed the wiki instructions for appending 15-android.rules (in /usr/lib/udev/rules.d/).

I'm a bit confused as to the syntax of that file, though. The line I created for the phone is:

# Galaxy S3 SGH-I747
ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", SYMLINK+="android_adb", OWNER="username"

$ go-mtpfs .
/usr/bin/fusermount: user has no write access to mountpoint /home/username/mountpoint
2013/11/14 05:23:34 mount failed: fusermount exited with code 256

I've double-checked my user's addition to the fuse usergroup, and all seems okay. I created a mountpoint directory in my own /home/username directory, and I get that error.

Any help is appreciated. Thanks --Stephen Brown

Firefishe commented on 2013-11-14 11:42

I'm using a Samsung SGH-I747 (Galaxy S3/AT&T/US). I've followed the wiki instructions for appending 15-android.rules (in /usr/lib/udev/rules.d/).

I'm a bit confused as to the syntax of that file, though. The line I created for the phone is:

# Galaxy S3 SGH-I747
ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", SYMLINK+="android_adb", OWNER="username"

$ go-mtpfs .
/usr/bin/fusermount: user has no write access to mountpoint /home/username/mountpoint
2013/11/14 05:23:34 mount failed: fusermount exited with code 256

Anonymous comment on 2013-08-14 16:23

# github.com/hanwen/go-mtpfs
src/github.com/hanwen/go-mtpfs/main.go:13: import /tmp/packerbuild-1000/go-mtpfs-git/go-mtpfs-git/src/pkg/linux_386/github.com/hanwen/go-fuse/fuse.a: object is [linux 386 go1.1.1 X:none] expected [linux 386 go1.1.2 X:none]
==> ERROR: A failure occurred in build().
Aborting...
The build failed.

Help??

wmarshall commented on 2013-07-10 20:51

Thanks for the correction ledti.

Incidentally, I noticed that when I changed to the pacman 4.1 format, with the new pkgver() function, I changed the format of the version string enough to confuse the AUR. It turns out that version 2013.07.08 counts as *older* than 20130326, so no one has gotten the last couple updates. I put the version back into 20130708 format, so updates should now work as expected.

ledati commented on 2013-07-01 09:20

'fuse' should be added to the depends array as go-mtpfs fails without it, since it requires the fusermount binary.

Thanks for the PKGBUILD. :)

wmarshall commented on 2013-05-14 15:04

tomxtobin, did you ever get this building? I'd be glad to help any way I can, but I'll be of limited use debugging go. I've never used the language.

wmarshall commented on 2013-05-14 15:03

I updated to the pacman 4.1 format of PKGBUILD, and I moved 'go' to a build-time dependency as pulb suggested.

tomxtobin commented on 2013-02-15 20:20

The build fails for me right now:

src/github.com/hanwen/go-mtpfs/mtp/mtp.go:282: undefined: NullWriter

wmarshall commented on 2013-02-13 20:36

Thanks for the feedback pulb. This is my first exposure to go, so I wasn't sure if it was needed at runtime or not. I'm reluctant to change the depends, though, since this is a git package and the tool is under active development. You're going to need go for every update, and it would be a pain to (a) have to install it anew each time, (b) have go listed as unneeded by pacman -Qtd, or (c) mark it as explicitly installed and eventually forget what depends on it and why you installed it in the first place.

Anyone else have an opinion one way or the other? I'm happy to change it to whatever people think would be most useful.

pulb commented on 2013-01-27 13:59

IMO dependencies should read like this:
depends=('libmtp')
makedepends=('git' 'go')

pulb commented on 2013-01-26 19:43

Hi shouldn't the "go" dependency be listed in the makedepends array instead of the depends array?

Anonymous comment on 2012-12-20 21:07

Galaxy Nexus, cm10.1 - works.
I wrote small script for easy mounting//unmounting + notifications(not sure them will work on kde and tiled DEs). To use:
0. Place it where you want.
1. Edit path where to mount(default - /media/MyAndroid).
2. make file runnable.
3. On run will mount//unmount and show notification about it(mounted//unmounted).
http://dl.dropbox.com/u/36565962/mount_unmount.sh

Still, i don't suggest anyone to unplug the phone without unmounting device first.

Now making gnome-shell extention :)

stillinbeta commented on 2012-12-01 05:16

I was having a bit of trouble running this as a non-privileged user, getting errors about libusb_open() permission denied. Turns out (for me, at least), this was a udev problem.

sib@westley:~$ cat /etc/udev/rules.d/10-katara.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="685c", GROUP="users", MODE="0777"

That's for my Galaxy Nexus. You can look up your vendor and product IDs in the startup messages of go-mtpfs.

wmarshall commented on 2012-10-02 17:37

Sorry for the long delay, but I have finally added libmtp as a dependency.

marcelhuber commented on 2012-08-17 09:20

Great tool, it works for me too (Galaxy Nexus)

Could you please add libmtp as required dependency to make the package work out of the box?

wmarshall commented on 2012-08-15 02:10

Yeah, me too blackout23. I tried mtpfs, but it only showed an empty directory tree, no files. Glad you found it useful.

blackout24 commented on 2012-08-15 00:41

Great that is actually the only thing that works with my Galaxy Nexus!