Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 544346

Summary: app-admin/mongo-tools-3.0.1 - dobin: bin/* does not exist
Product: Gentoo Linux Reporter: Alexey Sychev <taviscaron>
Component: Current packagesAssignee: Ultrabug <ultrabug>
Status: RESOLVED FIXED    
Severity: normal CC: bugs, hydrapolic, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge.info
build.log

Description Alexey Sychev 2015-03-24 15:33:01 UTC
Failed to emerge app-admin/mongo-tools-3.0.1

ERROR: app-admin/mongo-tools-3.0.1::gentoo failed (install phase):
 *   dobin failed

dobin: bin/* does not exist

Reproducible: Always
Comment 1 Alexey Sychev 2015-03-24 15:33:42 UTC
Created attachment 399608 [details]
emerge.info
Comment 2 Tomáš Mózes 2015-03-24 16:40:23 UTC
Please attach the full build log.
Comment 3 Alexey Sychev 2015-03-24 17:01:42 UTC
Created attachment 399626 [details]
build.log
Comment 4 Tomáš Mózes 2015-03-25 05:33:24 UTC
It does not build the tools:

Building bsondump...
# github.com/spacemonkeygo/openssl
vendor/src/github.com/spacemonkeygo/openssl/ctx.go:546: constant 2147486719 overflows Options

Please attach your versions of:
- dev-libs/openssl
- dev-lang/go

Along with the use flags. Can you please try building mongo-tools without SSL?
Comment 5 Alexey Sychev 2015-03-25 06:28:49 UTC
dev-libs/openssl-1.0.2a
dev-lang/go-1.4.2

Without SSL use flag - build fine.
Comment 6 Tomáš Mózes 2015-03-25 07:39:08 UTC
Please post the output of:

emerge -pvq dev-libs/openssl
Comment 7 Alexey Sychev 2015-03-25 18:08:47 UTC
[ebuild   R   ] dev-libs/openssl-1.0.2a  USE="asm tls-heartbeat zlib -bindist -gmp -kerberos -rfc3779 -sctp -static-libs {-test} -vanilla" CPU_FLAGS_X86="sse2"
Comment 8 Tomáš Mózes 2015-03-26 12:35:15 UTC
I can confirm this problem. I've the same setup on amd64 and it works just fine, on a virtual machine with i686 it fails the same way.

There is a open ticket about this:
https://github.com/mongodb/mongo-tools/issues/13
Comment 9 Tomáš Mózes 2015-03-26 12:47:46 UTC
Can you please try mongo-tools from my overlay?
https://github.com/hydrapolic/gentoo/tree/master/app-admin/mongo-tools

--- vendor/src/github.com/spacemonkeygo/openssl/ctx.go.orig	2015-03-09 23:14:45.000000000 +0100
+++ vendor/src/github.com/spacemonkeygo/openssl/ctx.go	2015-03-26 13:41:39.730177906 +0100
@@ -533,7 +533,7 @@
 	return nil
 }
 
-type Options int
+type Options int64
 
 const (
 	// NoCompression is only valid if you are using OpenSSL 1.0.1 or newer
Comment 10 Alexey Sychev 2015-03-28 13:39:48 UTC
Yes, mongo-tools-3.0.1-r1 from your overlay - build fine.
Comment 11 Ultrabug gentoo-dev 2015-03-28 17:43:09 UTC
Thanks mates, it's been fixed on tree.

+  28 Mar 2015; Ultrabug <ultrabug@gentoo.org> mongo-tools-3.0.1.ebuild:
+  fix #544346 thx to Alexey Sychev and Tomas Mozes
+