From owner-svn-ports-head@freebsd.org Wed Nov 28 15:47:00 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8626E1158080; Wed, 28 Nov 2018 15:47:00 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B94479B05; Wed, 28 Nov 2018 15:47:00 +0000 (UTC) (envelope-from pizzamig@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 0D79A4802; Wed, 28 Nov 2018 15:47:00 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wASFkxgw057900; Wed, 28 Nov 2018 15:46:59 GMT (envelope-from pizzamig@FreeBSD.org) Received: (from pizzamig@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wASFkw9R057893; Wed, 28 Nov 2018 15:46:58 GMT (envelope-from pizzamig@FreeBSD.org) Message-Id: <201811281546.wASFkw9R057893@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pizzamig set sender to pizzamig@FreeBSD.org using -f From: Luca Pizzamiglio Date: Wed, 28 Nov 2018 15:46:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r486097 - in head/sysutils/nomad: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pizzamig X-SVN-Commit-Paths: in head/sysutils/nomad: . files X-SVN-Commit-Revision: 486097 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 2B94479B05 X-Spamd-Result: default: False [1.36 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_LONG(0.51)[0.511,0]; NEURAL_SPAM_SHORT(0.49)[0.487,0]; NEURAL_SPAM_MEDIUM(0.36)[0.364,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-Rspamd-Server: mx1.freebsd.org 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: Wed, 28 Nov 2018 15:47:00 -0000 Author: pizzamig Date: Wed Nov 28 15:46:58 2018 New Revision: 486097 URL: https://svnweb.freebsd.org/changeset/ports/486097 Log: sysutils/nomad: Update to 0.8.6 Fix build of nomad and update to the last available release The build was broken, because the vendor is probably using go 1.10 PR: 232203 Approved by: jhixson (maintainer) Sponsored by: trivago N.V. Added: head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2bAVX2__amd64.go (contents, props changed) head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2bAVX2__amd64.s (contents, props changed) head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2b__amd64.go (contents, props changed) head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2b__amd64.s (contents, props changed) head/sysutils/nomad/files/patch-vendor_vendor.json (contents, props changed) Modified: head/sysutils/nomad/Makefile head/sysutils/nomad/distinfo Modified: head/sysutils/nomad/Makefile ============================================================================== --- head/sysutils/nomad/Makefile Wed Nov 28 15:32:45 2018 (r486096) +++ head/sysutils/nomad/Makefile Wed Nov 28 15:46:58 2018 (r486097) @@ -2,7 +2,7 @@ PORTNAME= nomad DISTVERSIONPREFIX= v -DISTVERSION= 0.8.4 +DISTVERSION= 0.8.6 CATEGORIES= sysutils MAINTAINER= jhixson@FreeBSD.org @@ -11,7 +11,6 @@ COMMENT= Cluster manager and scheduler LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN= fails to build ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= On i386: go compiler crashes: https://github.com/golang/go/issues/23763 @@ -19,12 +18,17 @@ BUILD_DEPENDS= go:lang/go USES= compiler USE_GITHUB= yes -GH_ACCOUNT= hashicorp +GH_ACCOUNT= hashicorp golang:sys +GH_PROJECT= sys:sys +GH_TAGNAME= fa43e7bc11b:sys GH_SUBDIR= src/github.com/hashicorp/nomad USE_RC_SUBR= nomad USERS= nomad GROUPS= nomad + +post-patch: + ${MV} ${WRKSRC_sys}/cpu ${WRKSRC}/vendor/golang.org/x/sys do-build: @cd ${WRKSRC}/src/github.com/hashicorp/nomad && \ Modified: head/sysutils/nomad/distinfo ============================================================================== --- head/sysutils/nomad/distinfo Wed Nov 28 15:32:45 2018 (r486096) +++ head/sysutils/nomad/distinfo Wed Nov 28 15:46:58 2018 (r486097) @@ -1,3 +1,5 @@ -TIMESTAMP = 1528902197 -SHA256 (hashicorp-nomad-v0.8.4_GH0.tar.gz) = 8dfacd578f2be1ae6cc7af6b2749952f1646344cb95bde17f35eeb78faacd616 -SIZE (hashicorp-nomad-v0.8.4_GH0.tar.gz) = 69733288 +TIMESTAMP = 1539347602 +SHA256 (hashicorp-nomad-v0.8.6_GH0.tar.gz) = e69b447dcc2caeb3d5ecf904cf3c8f327a5185a84442ee4241a796d89f96e143 +SIZE (hashicorp-nomad-v0.8.6_GH0.tar.gz) = 69730280 +SHA256 (golang-sys-fa43e7bc11b_GH0.tar.gz) = 085dd1dbc2865751cea75649dd59608bd0d0873ae852fda587b7d089734266f9 +SIZE (golang-sys-fa43e7bc11b_GH0.tar.gz) = 1093021 Added: head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2bAVX2__amd64.go ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2bAVX2__amd64.go Wed Nov 28 15:46:58 2018 (r486097) @@ -0,0 +1,28 @@ +--- vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.go.orig 2018-10-12 12:40:06 UTC ++++ vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.go +@@ -6,20 +6,13 @@ + + package blake2b + ++import "golang.org/x/sys/cpu" ++ + func init() { +- useAVX2 = supportsAVX2() +- useAVX = supportsAVX() +- useSSE4 = supportsSSE4() ++ useAVX2 = cpu.X86.HasAVX2 ++ useAVX = cpu.X86.HasAVX ++ useSSE4 = cpu.X86.HasSSE41 + } +- +-//go:noescape +-func supportsSSE4() bool +- +-//go:noescape +-func supportsAVX() bool +- +-//go:noescape +-func supportsAVX2() bool + + //go:noescape + func hashBlocksAVX2(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) Added: head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2bAVX2__amd64.s ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2bAVX2__amd64.s Wed Nov 28 15:46:58 2018 (r486097) @@ -0,0 +1,18 @@ +--- vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s.orig 2018-10-12 12:41:53 UTC ++++ vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s +@@ -748,15 +748,3 @@ noinc: + + MOVQ BP, SP + RET +- +-// func supportsAVX2() bool +-TEXT ·supportsAVX2(SB), 4, $0-1 +- MOVQ runtime·support_avx2(SB), AX +- MOVB AX, ret+0(FP) +- RET +- +-// func supportsAVX() bool +-TEXT ·supportsAVX(SB), 4, $0-1 +- MOVQ runtime·support_avx(SB), AX +- MOVB AX, ret+0(FP) +- RET Added: head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2b__amd64.go ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2b__amd64.go Wed Nov 28 15:46:58 2018 (r486097) @@ -0,0 +1,18 @@ +--- vendor/golang.org/x/crypto/blake2b/blake2b_amd64.go.orig 2018-10-12 12:39:07 UTC ++++ vendor/golang.org/x/crypto/blake2b/blake2b_amd64.go +@@ -6,12 +6,11 @@ + + package blake2b + ++import "golang.org/x/sys/cpu" ++ + func init() { +- useSSE4 = supportsSSE4() ++ useSSE4 = cpu.X86.HasSSE41 + } +- +-//go:noescape +-func supportsSSE4() bool + + //go:noescape + func hashBlocksSSE4(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) Added: head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2b__amd64.s ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/nomad/files/patch-vendor_golang.org_x_crypto_blake2b_blake2b__amd64.s Wed Nov 28 15:46:58 2018 (r486097) @@ -0,0 +1,15 @@ +--- vendor/golang.org/x/crypto/blake2b/blake2b_amd64.s.orig 2018-10-12 12:43:05 UTC ++++ vendor/golang.org/x/crypto/blake2b/blake2b_amd64.s +@@ -279,12 +279,3 @@ noinc: + + MOVQ BP, SP + RET +- +-// func supportsSSE4() bool +-TEXT ·supportsSSE4(SB), 4, $0-1 +- MOVL $1, AX +- CPUID +- SHRL $19, CX // Bit 19 indicates SSE4 support +- ANDL $1, CX // CX != 0 if support SSE4 +- MOVB CX, ret+0(FP) +- RET Added: head/sysutils/nomad/files/patch-vendor_vendor.json ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/nomad/files/patch-vendor_vendor.json Wed Nov 28 15:46:58 2018 (r486097) @@ -0,0 +1,10 @@ +--- vendor/vendor.json.orig 2018-10-12 12:46:48 UTC ++++ vendor/vendor.json +@@ -316,6 +316,7 @@ + {"path":"golang.org/x/net/lex/httplex","checksumSHA1":"3xyuaSNmClqG4YWC7g0isQIbUTc=","revision":"ab5485076ff3407ad2d02db054635913f017b0ed","revisionTime":"2017-07-19T21:11:51Z"}, + {"path":"golang.org/x/net/trace","checksumSHA1":"u/r66lwYfgg682u5hZG7/E7+VCY=","revision":"ab5485076ff3407ad2d02db054635913f017b0ed","revisionTime":"2017-07-19T21:11:51Z"}, + {"path":"golang.org/x/sync/errgroup","checksumSHA1":"S0DP7Pn7sZUmXc55IzZnNvERu6s=","revision":"316e794f7b5e3df4e95175a45a5fb8b12f85cb4f","revisionTime":"2016-07-15T18:54:39Z"}, ++ {"path":"golang.org/x/sys/cpu","revision":"fa43e7bc11baaae89f3f902b2b4d832b68234844"}, + {"path":"golang.org/x/sys/unix","checksumSHA1":"SIhhNXud9FKua0s3WlGPRRkDKRg=","revision":"8b4580aae2a0dd0c231a45d3ccb8434ff533b840","revisionTime":"2017-11-30T16:26:51Z"}, + {"path":"golang.org/x/sys/windows","checksumSHA1":"riTVymIu2BFphV6UlA73Fn9tmmU=","revision":"8b4580aae2a0dd0c231a45d3ccb8434ff533b840","revisionTime":"2017-11-30T16:26:51Z"}, + {"path":"golang.org/x/text/encoding","checksumSHA1":"Mr4ur60bgQJnQFfJY0dGtwWwMPE=","revision":"e113a52b01bdd1744681b6ce70c2e3d26b58d389","revisionTime":"2017-08-30T18:54:29Z"},