From nobody Tue Aug 02 18:19:54 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ly3Dq1VkHz4Xs2J; Tue, 2 Aug 2022 18:19:55 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ly3Dq0syFz43gg; Tue, 2 Aug 2022 18:19:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659464395; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7HfrXU2/z5eYhK4dTUf9ulO+pekX26m9aYik26kIx4g=; b=MfT1fXsw3cCjxlUWAOZWoF5TToufaOrpFErKtsI1SCx3Wrc16KbyziVyi0NBkgODHv32+Z xzZ+XjiBz+FGzs4StolKtn7LcLGCFTa0xdSFu+KIX2ly4RWV4uwfY2HGsTme+LpKf3uORz NBHvzE7u0a7tJrci218s0d8/7WLsgeSV269m2JPLRgl2OhRvYeB2KmfmPN0uFTHBnrgAnl cGDJ29nHG+wJtw7QTK2/eN/2+R7nnrcULU785Nhb/Y0XhtSrNuADq6KpxnXnkMfIKgFFhB z3ZaV4XBnpDorTWZKusMqaJO1MjT+fK8F3uRyFm13D0a0K4pV8+MwJTuGjkuTg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ly3Dp732wzMP8; Tue, 2 Aug 2022 18:19:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 272IJss2002498; Tue, 2 Aug 2022 18:19:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 272IJsUx002497; Tue, 2 Aug 2022 18:19:54 GMT (envelope-from git) Date: Tue, 2 Aug 2022 18:19:54 GMT Message-Id: <202208021819.272IJsUx002497@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitri Goutnik Subject: git: e4f8d54e4410 - main - lang/go119: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dmgk X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e4f8d54e441086f9d4d6d2600b1a5cb1ee4a7fae Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659464395; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7HfrXU2/z5eYhK4dTUf9ulO+pekX26m9aYik26kIx4g=; b=YQ47pAef3GF/HnlAJw3OztzR8ZmW4zl6he8lTQtjGXAkmEdzhClxo+9KMvq25OVcWOEhcD lGpg5S13PBM5snDv0oXWuUKw93siGxNVVMKkw2TJjJ5xVQ+oXZE/fyGOSTCI0NKuMtBqrq F52iE8YeYsuzC9szZnWFt95oK0U7zZuQu0FGATKWiwhS0lKh2dwJSTC2YcJWJifi0Q6RPF 15AKdmXyaeGyzGQCJvs8BV5NIzwleFn5bMhyawdk9gsOC/gmaZKyy6wt2RWOArfFpRWKTj vvr2lhNgFgcUEp5TIMTonVxKXCrdyPpxHQtSsKtsxMR4WSzkEGxHRpoVvrncLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659464395; a=rsa-sha256; cv=none; b=VS0j9RBgf7ir+Rld9GzTUQGaD+ox0tQk/+8FZbQMGukz+UL0MHoAbMlXNq7QS9FRJi56An QyewJ0zsRA6lW/lnFLgKxgHvjL2ypFi+nzgOEw6MXOBuFLieLcMkAflC/96hZhD4vzpQfE YHjbmh/VXdz+NSC/L6dxQgyrZAV9zo15AZQEEBJwmtwXhoa8smrjWqZ+ULC9DTBskOkwar z3XGOwdGcPpJEDx4aDdBGuEVGBYM19V2RbyY08tTqS6ssHfbSCXUPCfszUBl4l9v3w4ng6 4MEKSyfXbX59cRBhYWxchDTqKTIHwbtmnXFSOwBtX1NNlc+8hEfGHlp0dXinBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dmgk: URL: https://cgit.FreeBSD.org/ports/commit/?id=e4f8d54e441086f9d4d6d2600b1a5cb1ee4a7fae commit e4f8d54e441086f9d4d6d2600b1a5cb1ee4a7fae Author: Dmitri Goutnik AuthorDate: 2022-08-02 17:36:35 +0000 Commit: Dmitri Goutnik CommitDate: 2022-08-02 18:19:22 +0000 lang/go119: Add new port Add new port for the latest Go release, version 1.19. Release notes: https://go.dev/doc/go1.19 --- lang/Makefile | 1 + lang/go119/Makefile | 20 ++++++++++++++++++++ lang/go119/distinfo | 13 +++++++++++++ .../patch-src_cmd_go_internal_modload_vendor.go | 11 +++++++++++ 4 files changed, 45 insertions(+) diff --git a/lang/Makefile b/lang/Makefile index 7b0c397e3d0c..72272284845e 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -116,6 +116,7 @@ SUBDIR += go-devel SUBDIR += go117 SUBDIR += go118 + SUBDIR += go119 SUBDIR += gomacro SUBDIR += gprolog SUBDIR += gravity diff --git a/lang/go119/Makefile b/lang/go119/Makefile new file mode 100644 index 000000000000..ea9aa3fde1c2 --- /dev/null +++ b/lang/go119/Makefile @@ -0,0 +1,20 @@ +DISTVERSION= 1.19 +# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel +PORTREVISION= 0 +MASTER_SITES= https://golang.org/dl/ \ + https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \ + LOCAL/dmgk:bootstrap +DISTFILES= go${DISTVERSION}.src.tar.gz \ + go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-${BOOTSTRAP_TAG}.tar.xz:bootstrap + +# Avoid conflicting patch files +PATCHFILES= + +COMMENT= Go programming language + +MASTERDIR= ${.CURDIR}/../go-devel +PATCHDIR= ${.CURDIR}/files +WRKSRC= ${WRKDIR}/go +DISTINFO_FILE= ${.CURDIR}/distinfo + +.include "${MASTERDIR}/Makefile" diff --git a/lang/go119/distinfo b/lang/go119/distinfo new file mode 100644 index 000000000000..b7a55e4e7f76 --- /dev/null +++ b/lang/go119/distinfo @@ -0,0 +1,13 @@ +TIMESTAMP = 1659459886 +SHA256 (go1.19.src.tar.gz) = 9419cc70dc5a2523f29a77053cafff658ed21ef3561d9b6b020280ebceab28b9 +SIZE (go1.19.src.tar.gz) = 26521849 +SHA256 (go-freebsd-arm64-go1.17.9.tar.xz) = d9e9180bdc5ad0eec1654679a50084ebb31ecbe9bef24f0bd8ba917db8d1830c +SIZE (go-freebsd-arm64-go1.17.9.tar.xz) = 38572776 +SHA256 (go-freebsd-amd64-go1.17.9.tar.xz) = fd439ad091ed57d0ad728c05fc60465aad2e46e98da96e2d5b60b0c470f2efec +SIZE (go-freebsd-amd64-go1.17.9.tar.xz) = 41951936 +SHA256 (go-freebsd-arm6-go1.17.9.tar.xz) = ba24590b8cec761207eafc5a39c71b5b5041320c6fb0c95d35c123f6054f8d1c +SIZE (go-freebsd-arm6-go1.17.9.tar.xz) = 38938596 +SHA256 (go-freebsd-arm7-go1.17.9.tar.xz) = 9dc039278e174757962d100a227959037d4d7af18094af6433fa4d57cfa57e5f +SIZE (go-freebsd-arm7-go1.17.9.tar.xz) = 38862156 +SHA256 (go-freebsd-386-go1.17.9.tar.xz) = 74854fd9e7d596c6abb1ecd55707c58a2f4d6ee875376e26bb5519889507291b +SIZE (go-freebsd-386-go1.17.9.tar.xz) = 40566908 diff --git a/lang/go119/files/patch-src_cmd_go_internal_modload_vendor.go b/lang/go119/files/patch-src_cmd_go_internal_modload_vendor.go new file mode 100644 index 000000000000..721bed32419f --- /dev/null +++ b/lang/go119/files/patch-src_cmd_go_internal_modload_vendor.go @@ -0,0 +1,11 @@ +--- src/cmd/go/internal/modload/vendor.go.orig 2020-12-17 16:03:19 UTC ++++ src/cmd/go/internal/modload/vendor.go +@@ -133,7 +133,7 @@ func checkVendorConsistency() { + readVendorList() + + pre114 := false +- if semver.Compare(index.goVersionV, "v1.14") < 0 { ++ if semver.Compare(index.goVersionV, "v1.14") < 0 || (os.Getenv("GO_NO_VENDOR_CHECKS") == "1" && len(vendorMeta) == 0) { + // Go versions before 1.14 did not include enough information in + // vendor/modules.txt to check for consistency. + // If we know that we're on an earlier version, relax the consistency check.