--- /usr/portage/app-admin/mongo-tools/mongo-tools-3.6.8.ebuild 2018-11-03 19:39:26.000000000 +0100 +++ mongo-tools-3.6.8.ebuild 2019-03-18 11:13:04.409501326 +0100 @@ -40,6 +40,9 @@ if ! use ppc64; then sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die fi + + # fix compilation issue with go > 1.12 (https://jira.mongodb.org/browse/TOOLS-2233) + sed -i 's/_Ctype_struct_/C.struct_/' vendor/src/github.com/google/gopacket/pcap/pcap.go } src_compile() {