Package Details: go-mtpfs-git 20200111-1

Git Clone URL: (read-only, click to copy)
Package Base: go-mtpfs-git
Description: Simple tool for viewing MTP devices as FUSE filesystems
Upstream URL:
Licenses: BSD
Submitter: wmarshall
Maintainer: valandil
Last Packager: valandil
Votes: 142
Popularity: 0.007944
First Submitted: 2012-08-03 20:06 (UTC)
Last Updated: 2021-04-06 00:53 (UTC)

Dependencies (4)

Required by (1)

Sources (1)

Latest Comments

1 2 3 4 5 6 Next › Last »

PaulKnowles commented on 2021-06-15 12:35 (UTC) (edited on 2021-06-15 12:36 (UTC) by PaulKnowles)

yes, it builds correctly in clean chroot. Thanks for the hint. Presumable, I have a path/environment/cache issue when building as regular user, but I have been unsuccessful in tracking it down.

valandil commented on 2021-06-09 12:19 (UTC)

I unfortunately cannot replicate. Could you try building this in a clean chroot?


pacman -S devtools

PaulKnowles commented on 2021-06-09 10:45 (UTC)

Package fails to build:

$pacman -Q fuse libusb git go fuse2 2.9.9-4 libusb 1.0.24-2 git 2.31.1-1 gcc-go 11.1.0-1 $makepkg ... ==> Starting build()... go build no Go files in /usr/src/abs/local/go-mtpfs-git/src/go-mtpfs ==> ERROR: A failure occurred in build(). Aborting...

$ls /usr/src/abs/local/go-mtpfs-git/src/go-mtpfs CONTRIBUTING LICENSE all.bash fs go.mod go.sum main.go mtp

I know zero about go. Can't recognize why something like main.go isn't recognized as a go file...

valandil commented on 2020-02-15 02:16 (UTC)

Sorry for the ridiculously long delay, I had apparently turned off notifications for this package. Feel free to email me with issues if that ever happens again.

Thanks to @CyberShadow for flagging the package out-of-date.

Thanks @hcb for the patch, it seems to work great.

hcb commented on 2019-12-07 07:43 (UTC) (edited on 2019-12-07 07:43 (UTC) by hcb)

This worked for me:

# Maintainer: Joey Dumont <>
# Contributor: Whitney Marshall <>
# Contributor: McNoggins <Gagnon88 (at) gmail (dot) com>
# Contributor: Hielke Christian Braun <>

pkgdesc="Simple tool for viewing MTP devices as FUSE filesystems"
arch=('x86_64' 'i686')
depends=('libusb' 'fuse')
makedepends=('go>=1.3.0' 'git')
options=('!strip' '!emptydirs')

pkgver() {
  # Use date of latest commit for pkgver
  cd "$srcdir/go-mtpfs"
  git log -1 --format="%cd" --date=short | sed 's|-||g'

build() {
  cd "$srcdir/go-mtpfs"
  go build ./

package() {
  install -Dm644 "$srcdir/go-mtpfs/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm755 "$srcdir/go-mtpfs/go-mtpfs" "$pkgdir/usr/bin/go-mtpfs"

jamespharvey20 commented on 2019-10-24 03:16 (UTC)

On an up to date system, this currently builds an empty package. Using makepkg, go-mtpfs-git-20190802-1-x86_64.pkg.tar.xz only includes:


package() includes:

if [ -e "$srcdir/bin/go-mtpfs" ]; then

Which doesn't exist, so it silently skips trying to install go-mtpfs. Not sure why this if is there. It should probably just attempt the install, and allow the package to fail building if that doesn't exist.

Haven't dug into why the build process is failing, but there's no bin directory at all.

New to this package, so don't know when it worked last or what changed.

valandil commented on 2019-10-08 02:11 (UTC)

Thanks, I've opened an issue upstream, as I don't think the PKGBUILD is the issue. I'll update when upstream is fixed.

zerophase commented on 2019-08-02 20:29 (UTC)

The package was just updated upstream, and fails to build the new update. (download)
cd .
git clone /tmp/makepkg/go-mtpfs-git/src/src/
cd /tmp/makepkg/go-mtpfs-git/src/src/
git submodule update --init --recursive
cd /tmp/makepkg/go-mtpfs-git/src/src/
git show-ref
cd /tmp/makepkg/go-mtpfs-git/src/src/
git submodule update --init --recursive (download)
cd .
git clone /tmp/makepkg/go-mtpfs-git/src/src/
cd /tmp/makepkg/go-mtpfs-git/src/src/
git submodule update --init --recursive
cd /tmp/makepkg/go-mtpfs-git/src/src/
git show-ref
cd /tmp/makepkg/go-mtpfs-git/src/src/
git submodule update --init --recursive
package cannot find package "" in any of:
        /usr/lib/go/src/ (from $GOROOT)
        /tmp/makepkg/go-mtpfs-git/src/src/ (from $GOPATH)
package cannot find package "" in any of:
        /usr/lib/go/src/ (from $GOROOT)
        /tmp/makepkg/go-mtpfs-git/src/src/ (from $GOPATH) (download)
cd .
git clone /tmp/makepkg/go-mtpfs-git/src/src/
cd /tmp/makepkg/go-mtpfs-git/src/src/
git submodule update --init --recursive
cd /tmp/makepkg/go-mtpfs-git/src/src/
git show-ref
cd /tmp/makepkg/go-mtpfs-git/src/src/
git submodule update --init --recursive
==> ERROR: A failure occurred in build().

neven commented on 2019-04-23 09:11 (UTC)

The issue seems to be fixed in go-mtpfs git tip right now.

neven commented on 2019-04-21 20:14 (UTC)

Vesath, see this Github issue:

If you need go-mtpfs try building with an older version of go-fuse.

I guess that checking out e22f1435be772f03f05c86 in git before running the 'go' command should do it.