It appears that the usb part of the implementation has been moved from https://github.com/hanwen/go-mtpfs.git to https://github.com/hanwen/go-usb.git. Reproducible: Always Steps to Reproduce: 1. echo "dev-libs/go-fuse-9999 **" >> /etc/portage/package.keywords/go-mtpfs.keywords 2. echo "sys-fs/go-mtpfs-9999 **" >> /etc/portage/package.keywords/go-mtpfs.keywords 3. emerge sys-fs/go-mtpfs-9999 Actual Results: Build fails (cannot find package "github.com/hanwen/usb"). See build log for full details.
Created attachment 385708 [details] emerge --info
Created attachment 385710 [details] build.log
Created attachment 385712 [details] build.log
+1
(In reply to Carsten Milkau from comment #0) > It appears that the usb part of the implementation has been moved from > https://github.com/hanwen/go-mtpfs.git to > https://github.com/hanwen/go-usb.git. Unfortunately, https://github.com/hanwen/go-usb.git doesn't exist! Same problem, here
I'm clone https://github.com/hanwen/usb to /usr/lib/go/src/github.com/hanwen, and build is successeful.
Please try the latest build.
Still not fixed here so please reopen as users aren't allowed to reopen bugs it seems. * Package: sys-fs/go-mtpfs-9999 * Repository: gentoo * Maintainer: zerochaos@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... * Fetching https://github.com/hanwen/go-mtpfs.git ... git fetch https://github.com/hanwen/go-mtpfs.git +HEAD:refs/git-r3/HEAD git symbolic-ref refs/git-r3/sys-fs/go-mtpfs/0/__main__ refs/heads/master * Checking out https://github.com/hanwen/go-mtpfs.git to /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999/src/github.com/hanwen/go-mtpfs ... git checkout --quiet master GIT update --> repository: https://github.com/hanwen/go-mtpfs.git at the commit: d4be1ca8b8b9967cb0b7e99c50ec415112eca4c2 >>> Source unpacked in /tmp/portage/sys-fs/go-mtpfs-9999/work >>> Preparing source in /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999 ... >>> Source prepared. >>> Configuring source in /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999 ... >>> Source configured. >>> Compiling source in /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999 ... WORK=/tmp/portage/sys-fs/go-mtpfs-9999/temp/go-build592910123 src/github.com/hanwen/go-mtpfs/main.go:14:2: cannot find package "github.com/hanwen/go-fuse/fuse" in any of: /usr/lib/go/src/github.com/hanwen/go-fuse/fuse (from $GOROOT) /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999/src/github.com/hanwen/go-fuse/fuse (from $GOPATH) src/github.com/hanwen/go-mtpfs/main.go:15:2: cannot find package "github.com/hanwen/go-fuse/fuse/nodefs" in any of: /usr/lib/go/src/github.com/hanwen/go-fuse/fuse/nodefs (from $GOROOT) /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999/src/github.com/hanwen/go-fuse/fuse/nodefs (from $GOPATH) src/github.com/hanwen/go-mtpfs/mtp/mtp.go:13:2: cannot find package "github.com/hanwen/usb" in any of: /usr/lib/go/src/github.com/hanwen/usb (from $GOROOT) /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999/src/github.com/hanwen/usb (from $GOPATH) * ERROR: sys-fs/go-mtpfs-9999::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 2768: Called die * The specific snippet of code: * go build -ldflags '-extldflags=-fno-PIC' -v -x -work ${GO_PN} || die * * If you need support, post the output of `emerge --info '=sys-fs/go-mtpfs-9999::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-fs/go-mtpfs-9999::gentoo'`. * The complete build log is located at '/tmp/portage/sys-fs/go-mtpfs-9999/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/sys-fs/go-mtpfs-9999/temp/environment'. * Working directory: '/tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999' * S: '/tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999'
(In reply to Marc Arens from comment #8) The same here, Helmut
I forgot about the fact that I manually cloned the go-usb repo hence why the compile works for me. This ebuild used to have the usb bindings but it was split into it's own repository so I have created a live ebuild for 'go-usb' located at #547204. We just need to depend on the above ebuild and it should be good to go.
Works for me, after using ebuild from https://bugs.gentoo.org/show_bug.cgi?id=547204 + additional patch for go-fuse from https://bugs.gentoo.org/show_bug.cgi?id=541274#c4 Thanks for the help likewhoa
+ 11 May 2015; Michał Górny <mgorny@gentoo.org> go-mtpfs-9999.ebuild: + Add a dependency on go-usb, bug #523990. Part of https://github.com/gentoo + /gentoo-portage-rsync-mirror/pull/105 by likewhoa. Homework: figure out if explicit dep on libusb is still required.