Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582906 - app-admin/mongo-tools-3.2.5 fails to install with `cannot stat 'bin/*': No such file or directory`
Summary: app-admin/mongo-tools-3.2.5 fails to install with `cannot stat 'bin/*': No su...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Johan Bergström
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-13 12:28 UTC by Tiziano Müller (RETIRED)
Modified: 2016-11-03 08:23 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2016-05-13 12:28:58 UTC
The first issue is that the `build.sh` assumes `/bin/sh` to be a bash.

When setting dash as the system shell, I get in `src_compile`:

  >>> Starting src_compile
  ./build.sh: 10: ./build.sh: Bad substitution
  Building bsondump...
  >>> Done src_compile

This error goes away once I switch back to bash as the system shell.

Nevertheless, building `bsondump` fails silently and installing fails in the process in either case later on with:

  >>> Starting src_install
  /usr/bin/install: cannot stat 'bin/*': No such file or directory

  !!! ERROR in app-admin/mongo-tools-3.2.5::gentoo:
  !!! In /usr/libexec/paludis/utils/dobin at line 47
  !!! dobin returned error 2

  !!! Call stack:
  !!!    * paludis_die_or_error_func (/usr/libexec/paludis/die_functions.bash:82)
  !!!    * main (/usr/libexec/paludis/utils/dobin:47)
Comment 1 Chicago 2016-09-25 12:54:06 UTC
Hello,

    I am experiencing a similar issue with app-admin/mongo-tools-3.2.9 and believe the problem is due to the version of dev-lang/go in use at this time, which is presently 0/1.7.1.

 * Package:    app-admin/mongo-tools-3.2.9
 * Repository: gentoo
 * Maintainer: ultrabug@gentoo.org bugs@bergstroem.nu,proxy-maint@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux sasl ssl userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking mongo-tools-3.2.9.tar.gz to /var/tmp/portage/app-admin/mongo-tools-3.2.9/work
>>> Source unpacked in /var/tmp/portage/app-admin/mongo-tools-3.2.9/work
>>> Preparing source in /var/tmp/portage/app-admin/mongo-tools-3.2.9/work/mongo-tools-r3.2.9 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-admin/mongo-tools-3.2.9/work/mongo-tools-r3.2.9 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-admin/mongo-tools-3.2.9/work/mongo-tools-r3.2.9 ...
Building bsondump...
# runtime
/usr/lib/go/src/runtime/lfstack_amd64.go:16: lfstackPack redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/lfstack_64bit.go:37
/usr/lib/go/src/runtime/lfstack_amd64.go:20: lfstackUnpack redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/lfstack_64bit.go:41
/usr/lib/go/src/runtime/os_linux.go:27: _FUTEX_WAIT redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/os1_linux.go:22
/usr/lib/go/src/runtime/os_linux.go:28: _FUTEX_WAKE redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/os1_linux.go:23
/usr/lib/go/src/runtime/os_linux.go:36: futexsleep redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/os1_linux.go:31
/usr/lib/go/src/runtime/os_linux.go:67: futexwakeup redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/os1_linux.go:62
/usr/lib/go/src/runtime/os_linux.go:83: getproccount redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/os1_linux.go:78
/usr/lib/go/src/runtime/os_linux.go:109: _CLONE_VM redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/os1_linux.go:104
/usr/lib/go/src/runtime/os_linux.go:110: _CLONE_FS redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/os1_linux.go:105
/usr/lib/go/src/runtime/os_linux.go:111: _CLONE_FILES redeclared in this block
        previous declaration at /usr/lib/go/src/runtime/os1_linux.go:106
/usr/lib/go/src/runtime/os_linux.go:111: too many errors
>>> Source compiled.
>>> Test phase [not enabled]: app-admin/mongo-tools-3.2.9

>>> Install mongo-tools-3.2.9 into /var/tmp/portage/app-admin/mongo-tools-3.2.9/image/ category app-admin
!!! dobin: bin/* does not exist
 * ERROR: app-admin/mongo-tools-3.2.9::gentoo failed (install phase):
 *   dobin failed
 * 
 * If you need support, post the output of `emerge --info '=app-admin/mongo-tools-3.2.9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-admin/mongo-tools-3.2.9::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/app-admin/mongo-tools-3.2.9:20160925-125226.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/mongo-tools-3.2.9/temp/environment'.
 * Working directory: '/var/tmp/portage/app-admin/mongo-tools-3.2.9/work/mongo-tools-r3.2.9'
 * S: '/var/tmp/portage/app-admin/mongo-tools-3.2.9/work/mongo-tools-r3.2.9'
 * QA Notice: file does not exist:
 * 
 *      dobin: bin/* does not exist
Comment 2 Ultrabug gentoo-dev 2016-11-03 08:23:36 UTC
I've added some bash insurance and build failure detection

As for the go related problem, if it persists on newer ebuilds, plz open a dedicated bug.

Thanks for your patience guys