Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523990 - sys-fs/go-mtpfs-9999 - src_compile(): 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) .../work/go-mtpfs-9999/src/github.com/hanwen/
Summary: sys-fs/go-mtpfs-9999 - src_compile(): src/github.com/hanwen/go-mtpfs/mtp/mtp....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on: 547204
Blocks:
  Show dependency tree
 
Reported: 2014-09-29 07:20 UTC by Carsten Milkau
Modified: 2015-05-11 16:27 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,5.87 KB, text/plain)
2014-09-29 07:23 UTC, Carsten Milkau
Details
build.log (build.log,2.93 KB, text/plain)
2014-09-29 07:24 UTC, Carsten Milkau
Details
build.log (build.log,2.84 KB, text/plain)
2014-09-29 07:34 UTC, Carsten Milkau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Milkau 2014-09-29 07:20:41 UTC
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.
Comment 1 Carsten Milkau 2014-09-29 07:23:39 UTC
Created attachment 385708 [details]
emerge --info
Comment 2 Carsten Milkau 2014-09-29 07:24:54 UTC
Created attachment 385710 [details]
build.log
Comment 3 Carsten Milkau 2014-09-29 07:34:40 UTC
Created attachment 385712 [details]
build.log
Comment 4 nictki 2014-11-01 10:10:19 UTC
+1
Comment 5 Helmut Jarausch 2014-11-26 11:35:51 UTC
(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
Comment 6 Boris Vingradov 2015-03-09 13:49:26 UTC
I'm clone https://github.com/hanwen/usb to /usr/lib/go/src/github.com/hanwen, and build is successeful.
Comment 7 Fernando (likewhoa) 2015-04-13 19:41:59 UTC
Please try the latest build.
Comment 8 Marc Arens 2015-04-19 16:51:39 UTC
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'
Comment 9 Helmut Jarausch 2015-04-20 08:20:33 UTC
(In reply to Marc Arens from comment #8)

The same here,
Helmut
Comment 10 Fernando (likewhoa) 2015-04-20 17:47:37 UTC
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.
Comment 11 Marc Arens 2015-04-20 19:46:38 UTC
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
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-05-11 16:27:25 UTC
+  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.