diff options
author | Tomas Mozes <hydrapolic@gmail.com> | 2019-03-18 06:48:40 +0100 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2019-03-28 10:39:07 -0700 |
commit | cf2853bb8e525a2aaf580c47ad556ff716bf9789 (patch) | |
tree | dc252fa86f7edfb875e2f9a4d063bdfad6acfdc4 /app-admin/mongo-tools | |
parent | dev-db/mongodb: bump to 3.6.11 (diff) | |
download | gentoo-cf2853bb8e525a2aaf580c47ad556ff716bf9789.tar.gz gentoo-cf2853bb8e525a2aaf580c47ad556ff716bf9789.tar.bz2 gentoo-cf2853bb8e525a2aaf580c47ad556ff716bf9789.zip |
app-admin/mongo-tools: fix building with dev-lang/go-1.12
Bug: https://bugs.gentoo.org/678924
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-admin/mongo-tools')
-rw-r--r-- | app-admin/mongo-tools/mongo-tools-3.6.10.ebuild | 7 | ||||
-rw-r--r-- | app-admin/mongo-tools/mongo-tools-3.6.8.ebuild | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/app-admin/mongo-tools/mongo-tools-3.6.10.ebuild b/app-admin/mongo-tools/mongo-tools-3.6.10.ebuild index 5aacbbb10637..0e317acb91c9 100644 --- a/app-admin/mongo-tools/mongo-tools-3.6.10.ebuild +++ b/app-admin/mongo-tools/mongo-tools-3.6.10.ebuild @@ -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=() diff --git a/app-admin/mongo-tools/mongo-tools-3.6.8.ebuild b/app-admin/mongo-tools/mongo-tools-3.6.8.ebuild index cb82aab24b25..81268b0dd2fa 100644 --- a/app-admin/mongo-tools/mongo-tools-3.6.8.ebuild +++ b/app-admin/mongo-tools/mongo-tools-3.6.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -40,6 +40,9 @@ src_prepare() { if ! use ppc64; then sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die fi + + # allow building with go 1.12 #678924 + sed -i 's/_Ctype_struct_/C.struct_/' vendor/src/github.com/google/gopacket/pcap/pcap.go || die } src_compile() { |