Package Details: go-mtpfs-git 20200111-1

Git Clone URL: https://aur.archlinux.org/go-mtpfs-git.git (read-only, click to copy)
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: valandil
Last Packager: valandil
Votes: 137
Popularity: 0.035887
First Submitted: 2012-08-03 20:06
Last Updated: 2020-02-15 02:15

Dependencies (4)

Required by (1)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

valandil commented on 2020-02-15 02:16

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

This worked for me:

# Maintainer: Joey Dumont <joey.dumont@gmail.com>
# Contributor: Whitney Marshall <whitney.marshall@gmail.com>
# Contributor: McNoggins <Gagnon88 (at) gmail (dot) com>
# Contributor: Hielke Christian Braun <hcb@unco.de>

pkgname=go-mtpfs-git
pkgver=20191024
pkgrel=1
pkgdesc="Simple tool for viewing MTP devices as FUSE filesystems"
arch=('x86_64' 'i686')
url="http://github.com/hanwen/go-mtpfs"
license=('BSD')
depends=('libusb' 'fuse')
makedepends=('go>=1.3.0' 'git')
options=('!strip' '!emptydirs')
source=("git+https://github.com/hanwen/go-mtpfs.git")
md5sums=("SKIP")
_gourl=github.com/hanwen/go-mtpfs

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

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:

.PKGINFO .BUILDINFO .MTREE

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

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

The package was just updated upstream, and fails to build the new update.

github.com/hanwen/go-mtpfs (download)
cd .
git clone https://github.com/hanwen/go-mtpfs /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-mtpfs
cd /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-mtpfs
git submodule update --init --recursive
cd /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-mtpfs
git show-ref
cd /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-mtpfs
git submodule update --init --recursive
github.com/hanwen/go-fuse (download)
cd .
git clone https://github.com/hanwen/go-fuse /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-fuse
cd /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-fuse
git submodule update --init --recursive
cd /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-fuse
git show-ref
cd /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-fuse
git submodule update --init --recursive
package github.com/hanwen/go-fuse/v2/fs: cannot find package "github.com/hanwen/go-fuse/v2/fs" in any of:
        /usr/lib/go/src/github.com/hanwen/go-fuse/v2/fs (from $GOROOT)
        /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-fuse/v2/fs (from $GOPATH)
package github.com/hanwen/go-fuse/v2/fuse: cannot find package "github.com/hanwen/go-fuse/v2/fuse" in any of:
        /usr/lib/go/src/github.com/hanwen/go-fuse/v2/fuse (from $GOROOT)
        /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/go-fuse/v2/fuse (from $GOPATH)
github.com/hanwen/usb (download)
cd .
git clone https://github.com/hanwen/usb /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/usb
cd /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/usb
git submodule update --init --recursive
cd /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/usb
git show-ref
cd /tmp/makepkg/go-mtpfs-git/src/src/github.com/hanwen/usb
git submodule update --init --recursive
==> ERROR: A failure occurred in build().

neven commented on 2019-04-23 09:11

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

neven commented on 2019-04-21 20:14

Vesath, see this Github issue: https://github.com/hanwen/go-mtpfs/issues/135

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.

vesath commented on 2019-04-21 07:53

I have no idea how to fix this but the build now fails with:

cd /build/src/src/github.com/hanwen/go-mtpfs
/usr/lib/go/pkg/tool/linux_amd64/compile -o $WORK/b001/_pkg_.a -trimpath $WORK/b001 -p main -complete -buildid bMfISDNlJ1UpXFr_M73A/bMfISDNlJ1UpXFr_M73A -goversion go1.12.4 -D "" -importcfg $WORK/b001/importcfg -pack -c=4 ./main.go
# github.com/hanwen/go-mtpfs
src/github.com/hanwen/go-mtpfs/main.go:68:11: undefined: fuse.NewLockingRawFileSystem
==> ERROR: A failure occurred in build().

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...