From owner-svn-ports-head@freebsd.org Sun Sep 8 12:11:44 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D59BEF1887; Sun, 8 Sep 2019 12:11:44 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46R9Bm5Mm0z3L8V; Sun, 8 Sep 2019 12:11:44 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9C0041DB10; Sun, 8 Sep 2019 12:11:44 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x88CBivj034860; Sun, 8 Sep 2019 12:11:44 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x88CBiHC034859; Sun, 8 Sep 2019 12:11:44 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201909081211.x88CBiHC034859@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sun, 8 Sep 2019 12:11:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511567 - head/net/v2ray X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/net/v2ray X-SVN-Commit-Revision: 511567 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2019 12:11:44 -0000 Author: tobik Date: Sun Sep 8 12:11:44 2019 New Revision: 511567 URL: https://svnweb.freebsd.org/changeset/ports/511567 Log: net/v2ray: Switch to USES=go:modules, fix build with go1.13 ===> Building for v2ray-4.20.0 go: github.com/golang/mock@v1.2.0: Get https://proxy.golang.org/github.com/golang/mock/@v/v1.2.0.mod: dial tcp: lookup proxy.golang.org on 209.222.18.218:53: write udp 127.0.0.1:43894->209.222.18.218:53: write: permission denied *** Error code 1 PR: 240282 Submitted by: Dmitri Goutnik Approved by: Yanhui Shen (maintainer) Pointy hat: jlaffaye Modified: head/net/v2ray/Makefile Modified: head/net/v2ray/Makefile ============================================================================== --- head/net/v2ray/Makefile Sun Sep 8 12:08:15 2019 (r511566) +++ head/net/v2ray/Makefile Sun Sep 8 12:11:44 2019 (r511567) @@ -11,15 +11,12 @@ COMMENT= Platform for building proxies to bypass netwo LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN= fails to build - -USES= go +USES= go:modules USE_GITHUB= yes USE_RC_SUBR= v2ray GH_ACCOUNT= v2ray GH_PROJECT= v2ray-core -GH_SUBDIR= src/v2ray.com/core GH_TUPLE= golang:crypto:193df9c0f06f:golang_crypto/vendor/golang.org/x/crypto \ golang:mock:v1.2.0:golang_mock/vendor/github.com/golang/mock \ golang:net:65e2d4e15006:golang_net/vendor/golang.org/x/net \ @@ -34,7 +31,7 @@ GH_TUPLE= golang:crypto:193df9c0f06f:golang_crypto/ven h12w:socks:v1.0.0:h12w_socks/vendor/h12.io/socks \ miekg:dns:v1.1.4:miekg_dns/vendor/github.com/miekg/dns -GO_BUILDFLAGS= --ldflags '-s -w' +GO_BUILDFLAGS= -ldflags='-s -w' USERS= v2ray GROUPS= v2ray @@ -43,7 +40,7 @@ SUB_LIST= USER="${USERS}" \ GROUP="${GROUPS}" do-build: - @cd ${GO_WRKSRC} && \ + cd ${GO_WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build ${GO_BUILDFLAGS} -o ${GO_WRKDIR_BIN}/v2ray v2ray.com/core/main && \ ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build ${GO_BUILDFLAGS} -o ${GO_WRKDIR_BIN}/v2ctl v2ray.com/core/infra/control/main