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/ cannot find package "" in any of: /usr/lib/go/src/ (from $GOROOT) .../work/go-mtpfs-9999/src/
Summary: sys-fs/go-mtpfs-9999 - src_compile(): src/
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)
Depends on: 547204
  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: ---

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

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 to 

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 ""). 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]
Comment 3 Carsten Milkau 2014-09-29 07:34:40 UTC
Created attachment 385712 [details]
Comment 4 nictki 2014-11-01 10:10:19 UTC
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
> to
Unfortunately, doesn't exist!

Same problem, here
Comment 6 Boris Vingradov 2015-03-09 13:49:26 UTC
I'm clone to /usr/lib/go/src/, 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:
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
 * Fetching ...
git fetch +HEAD:refs/git-r3/HEAD
git symbolic-ref refs/git-r3/sys-fs/go-mtpfs/0/__main__ refs/heads/master
 * Checking out to /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999/src/ ...
git checkout --quiet master
GIT update -->
   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 ...
src/ cannot find package "" in any of:
        /usr/lib/go/src/ (from $GOROOT)
        /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999/src/ (from $GOPATH)
src/ cannot find package "" in any of:
        /usr/lib/go/src/ (from $GOROOT)
        /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999/src/ (from $GOPATH)
src/ cannot find package "" in any of:
        /usr/lib/go/src/ (from $GOROOT)
        /tmp/portage/sys-fs/go-mtpfs-9999/work/go-mtpfs-9999/src/ (from $GOPATH)
 * ERROR: sys-fs/go-mtpfs-9999::gentoo failed (compile phase):
 *   (no error message)
 * Call stack:
 *, 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,
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 + additional patch for go-fuse from

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 <> go-mtpfs-9999.ebuild:
+  Add a dependency on go-usb, bug #523990. Part of
+  /gentoo-portage-rsync-mirror/pull/105 by likewhoa.

Homework: figure out if explicit dep on libusb is still required.