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: 141
Popularity: 0.92
First Submitted: 2012-08-03 20:06
Last Updated: 2021-04-06 00:53

Latest Comments

1 2 3 4 5 6 Next › Last »

PaulKnowles commented on 2021-06-15 12:35

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

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

tl;dr:

pacman -S devtools
extra-x86_64-build

PaulKnowles commented on 2021-06-09 10:45

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 github.com/hanwen/go-mtpfs: 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 README.md 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

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.