summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/mongo-tools/mongo-tools-4.0.6.ebuild')
-rw-r--r--app-admin/mongo-tools/mongo-tools-4.0.6.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/app-admin/mongo-tools/mongo-tools-4.0.6.ebuild b/app-admin/mongo-tools/mongo-tools-4.0.6.ebuild
index 7600d4a67e5..092d770686f 100644
--- a/app-admin/mongo-tools/mongo-tools-4.0.6.ebuild
+++ b/app-admin/mongo-tools/mongo-tools-4.0.6.ebuild
@@ -15,7 +15,7 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE="sasl ssl"
-DEPEND="<dev-lang/go-1.12:=
+DEPEND="dev-lang/go:=
net-libs/libpcap
sasl? ( dev-libs/cyrus-sasl )
ssl? ( dev-libs/openssl:0= )"
@@ -32,6 +32,13 @@ src_unpack() {
mv ${MY_P} "${S}" || die
}
+src_prepare() {
+ default
+
+ # allow building with go 1.12 #678924
+ sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die
+}
+
src_compile() {
local myconf=()