From owner-svn-ports-head@freebsd.org Fri Aug 30 13:08:20 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 34B60CEA18; Fri, 30 Aug 2019 13:08:20 +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 46KftD0fCsz46wd; Fri, 30 Aug 2019 13:08:20 +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 E7DFF9AA; Fri, 30 Aug 2019 13:08:19 +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 x7UD8JNn022289; Fri, 30 Aug 2019 13:08:19 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x7UD8JaF022288; Fri, 30 Aug 2019 13:08:19 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201908301308.x7UD8JaF022288@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Fri, 30 Aug 2019 13:08:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r510271 - head/www/minio X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/www/minio X-SVN-Commit-Revision: 510271 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: Fri, 30 Aug 2019 13:08:20 -0000 Author: tobik Date: Fri Aug 30 13:08:19 2019 New Revision: 510271 URL: https://svnweb.freebsd.org/changeset/ports/510271 Log: www/minio: Switch to USES=go:modules, fix build with go1.13 - Remove custom targets ===> Building for minio-2019.06.15.23.07.18 $GOPATH/go.mod exists but should not *** Error code 1 PR: 239867 Submitted by: Dmitri Goutnik Approved by: swills (maintainer timeout, 15 days) Modified: head/www/minio/Makefile Modified: head/www/minio/Makefile ============================================================================== --- head/www/minio/Makefile Fri Aug 30 13:02:05 2019 (r510270) +++ head/www/minio/Makefile Fri Aug 30 13:08:19 2019 (r510271) @@ -9,12 +9,12 @@ COMMENT= Amazon S3 compatible object storage server LICENSE= APACHE20 -USES= compiler go +USES= compiler go:modules USE_GITHUB= yes GHTAG= RELEASE.2019-06-15T23-07-18Z COMMIT_ID= 99bf4d0c429f04dbd013ba98840d07b759ae1702 -GH_TUPLE= ${PORTNAME}:${PORTNAME}:${GHTAG}:DEFAULT/src/github.com/${PORTNAME}/${PORTNAME} \ +GH_TUPLE= ${PORTNAME}:${PORTNAME}:${GHTAG}:DEFAULT \ Azure:azure-sdk-for-go:v27.0.0:azure_azure_sdk_for_go/vendor/github.com/Azure/azure-sdk-for-go \ Azure:go-autorest:v11.7.0:azure_go_autorest/vendor/github.com/Azure/go-autorest \ DataDog:zstd:v1.4.0:datadog_zstd/vendor/github.com/DataDog/zstd \ @@ -140,6 +140,13 @@ GH_TUPLE= ${PORTNAME}:${PORTNAME}:${GHTAG}:DEFAULT/src tidwall:sjson:v1.0.4:tidwall_sjson/vendor/github.com/tidwall/sjson \ uber-go:atomic:v1.3.2:uber_go_atomic/vendor/go.uber.org/atomic \ valyala:tcplisten:ceec8f93295a:valyala_tcplisten/vendor/github.com/valyala/tcplisten + +GO_BUILDFLAGS= -ldflags='\ + -X github.com/minio/minio/cmd.Version=${GH_TAGNAME:C/RELEASE\.//:C|(..)-(..)-(..)Z|\1:\2:\3Z|} \ + -X github.com/minio/minio/cmd.ReleaseTag=${GH_TAGNAME} \ + -X github.com/minio/minio/cmd.CommitID=${COMMIT_ID} \ + -X github.com/minio/minio/cmd.GOPATH=${WRKSRC} -s -w' + PLIST_FILES= bin/${PORTNAME} USE_RC_SUBR= minio @@ -148,13 +155,5 @@ GROUPS= minio SUB_LIST= GROUP="${GROUPS}" \ USER="${USERS}" - -do-build: - cd ${WRKSRC}/${GH_SUBDIR} ; \ - ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} CGO_ENABLED=0 go build \ - --ldflags '-X github.com/minio/minio/cmd.Version=${GH_TAGNAME:C/RELEASE\.//:C|(..)-(..)-(..)Z|\1:\2:\3Z|} -X github.com/minio/minio/cmd.ReleaseTag=${GH_TAGNAME} -X github.com/minio/minio/cmd.CommitID=${COMMIT_ID} -X github.com/minio/minio/cmd.GOPATH=${WRKSRC} -s -w' -o ${WRKSRC}/bin/minio - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include