From owner-svn-ports-head@freebsd.org Mon Sep 9 13:12:42 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 AFE53D22A1; Mon, 9 Sep 2019 13:12:42 +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 46RpVf4Cm8z3yVl; Mon, 9 Sep 2019 13:12:42 +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 743AEE1C2; Mon, 9 Sep 2019 13:12:42 +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 x89DCgi2026899; Mon, 9 Sep 2019 13:12:42 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x89DCg5m026898; Mon, 9 Sep 2019 13:12:42 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201909091312.x89DCg5m026898@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Mon, 9 Sep 2019 13:12:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511627 - head/sysutils/ipfs-go X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/sysutils/ipfs-go X-SVN-Commit-Revision: 511627 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: Mon, 09 Sep 2019 13:12:42 -0000 Author: tobik Date: Mon Sep 9 13:12:42 2019 New Revision: 511627 URL: https://svnweb.freebsd.org/changeset/ports/511627 Log: sysutils/ipfs-go: Unbreak with go1.13 ===> Building for ipfs-go-0.4.21 go: bazil.org/fuse@v0.0.0-20180421153158-65cc252bf669: Get https://proxy.golang.org/bazil.org/fuse/@v/v0.0.0-20180421153158-65cc252bf669.mod: dial tcp: lookup proxy.golang.org on 209.222.18.218:53: write udp 127.0.0.1:14240->209.222.18.218:53: write: permission denied *** Error code 1 - Switch to USES=go:modules - Remove GO_PKGNAME, not needed with modules PR: 240318 Submitted by: Dmitri Goutnik Pointy hat: jlaffaye Modified: head/sysutils/ipfs-go/Makefile Modified: head/sysutils/ipfs-go/Makefile ============================================================================== --- head/sysutils/ipfs-go/Makefile Mon Sep 9 13:02:57 2019 (r511626) +++ head/sysutils/ipfs-go/Makefile Mon Sep 9 13:12:42 2019 (r511627) @@ -16,12 +16,10 @@ LICENSE_COMB= dual LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT LICENSE_FILE_APACHE= ${WRKSRC}/LICENSE-APACHE -BROKEN= fails to build ONLY_FOR_ARCHS= amd64 i386 -USES= go +USES= go:modules -GO_PKGNAME= github.com/ipfs/go-ipfs GO_TARGET= ./cmd/ipfs NO_WRKSUBDIR= yes @@ -44,6 +42,15 @@ USERS= ${IPFS_USER} GROUPS= ${IPFS_GROUP} FULLNAME= ${PORTNAME}${PKGNAMESUFFIX} + +# unbreak vendored golang.org/x/xerrors with go1.13 +# can be removed after vendor/golang.org/x/xerrors is updated to a985d3407aa7 or later +post-patch: + @${RM} ${WRKSRC}/vendor/golang.org/x/xerrors/adaptor_go1_13.go + @${RM} ${WRKSRC}/vendor/golang.org/x/xerrors/format_go1_13.go + @${REINPLACE_CMD} '/build !go1.13/d' ${WRKSRC}/vendor/golang.org/x/xerrors/adaptor_go1_12.go + @${REINPLACE_CMD} '/build !go1.13/d' ${WRKSRC}/vendor/golang.org/x/xerrors/format_go1_12.go + @${REINPLACE_CMD} '/build !go1.13/d' ${WRKSRC}/vendor/golang.org/x/xerrors/frame_go1_12.go do-install: @${MKDIR} ${STAGEDIR}${IPFS_HOME}