summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2019-09-05 13:58:05 -0700
committerZac Medico <zmedico@gentoo.org>2019-09-05 14:02:11 -0700
commit98af196037b6d7968f5ffb60bc74997c8f59055a (patch)
treecffb681565b168a369fc58d7a665c5727bad44f7 /app-admin/consul
parentgames-fps/freedm: Require 'nonfree' USE flag on gzdoom (diff)
downloadgentoo-98af196037b6d7968f5ffb60bc74997c8f59055a.tar.gz
gentoo-98af196037b6d7968f5ffb60bc74997c8f59055a.tar.bz2
gentoo-98af196037b6d7968f5ffb60bc74997c8f59055a.zip
app-admin/consul: Fix compile with go-1.13
Reported-by: William Hubbs <williamh@gentoo.org> Closes: https://bugs.gentoo.org/693578 Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-admin/consul')
-rw-r--r--app-admin/consul/consul-1.5.3.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/app-admin/consul/consul-1.5.3.ebuild b/app-admin/consul/consul-1.5.3.ebuild
index 13ebbc13a381..913d62b917c2 100644
--- a/app-admin/consul/consul-1.5.3.ebuild
+++ b/app-admin/consul/consul-1.5.3.ebuild
@@ -30,6 +30,11 @@ pkg_setup() {
src_prepare() {
default
+ # avoid network-sandbox violations since go-1.13
+ rm src/${EGO_PN}/go.mod || die
+ grep -rlZ '_ "github.com/envoyproxy/protoc-gen-validate/validate"' . | \
+ xargs -0 sed -i '/_ "github.com\/envoyproxy\/protoc-gen-validate\/validate"/d' || die
+
sed -e 's:go get -u -v $(GOTOOLS)::' \
-e 's:vendorfmt dev-build:dev-build:' \
-i "src/${EGO_PN}/GNUmakefile" || die