From nobody Thu Feb 02 13:47:39 2023 X-Original-To: dev-commits-ports-all@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 4P70Tm0JNyz3dN64; Thu, 2 Feb 2023 13:47:40 +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 4P70Tl6wqMz4Pbm; Thu, 2 Feb 2023 13:47:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675345660; 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=2UPPFCyjsC2bemSUh5I+JzjeMvLXS3p9h4MlJRForpw=; b=gKaRqN6kd+DHjQhLiXULAMA6xRPVvS8o+rMZhL/8kyuYYoGeNYSSGFmJWz9JrafLMhREzw Wm5hAZ1fEoz6SDkSfn65mZoswGBpkw9tFZDitA//VaNwagVJApS2xmrJM5I0LRqiD9jYD9 8wrefDwKTWaPG+pMSVWFxBAArjMuwC/xylFQLxR3AjzdNrdj+9S1FxyicZz3/SUubz5MQe kfZQx9ZdyOpYKGdn/f/j8A+aTgvbS/EcImaOpPBUgcFw2bYtNWiL6zn3Ac5H0j2LC00yPY Oi3IKTMZnvnEsBAzs+kfAmNl4AUK89nwkGVrtXxsHalpdPrdoE/tF4p3RjilNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675345660; 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=2UPPFCyjsC2bemSUh5I+JzjeMvLXS3p9h4MlJRForpw=; b=nwNyEuFgSIZIhL1iMIXBJJC1hZOfJ9MUuQiBxxvhHAAI1cKrcJd6znYRHviUnbCpt9PBRv 06h6wXwbbReyMCKJvJxRj/Wt/dDCBCL2GPng/RcGYw2oluL6OIHQHza6khimgr2yHJLJeS aQpGatXp2dCL1dPw+yQXSRTFMuDuHlzGokl5cIRy5sgKirjGnlM0B0PVGvWOuZaO5fP6G5 7yfNLRuDzcZN9r8qyOVDVF1SEZCyaRR0a+ZHpMtuqrzt+JT980/GZDXNL4Q0mVzuXnM39L 0efRwxq+h38Y9DKdV4U0eOdUbwhFzl5FtTzjT970A5mSzVxTZK994VZKvCcKdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675345660; a=rsa-sha256; cv=none; b=hSIqiPYN9OwIqUzRxfYQ5n61/BTXtdW7txqPyaoShdA9BbT0h3AZujXjyo48VHsBsQvlJ1 ezvIDMK+mt1LhBBL71vv4Gv6Wa2ZCZFK24pEATkmwEjalTDMNCgPO/1x8RUM0SIN/m9+q9 rLJRDDNu7HueHj63B9prz9CvbrhgYZbrXpxW8N32X/ngVrPRVK955eeZPk7yfLTFwGPp+O vqQ813tEB0nF0dpsYeijsIlmpQwFi7KpWRYKKUBWjeaeaZkwGjzZxPxGLoU0mCYvpflQHQ G2ThkxYfcKLMaEiW1dnMJnrvO7zU9QVCtd8/bl0XZjSwxfL5j094x606B3KQ3Q== 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 4P70Tl5zDczwS1; Thu, 2 Feb 2023 13:47:39 +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 312DldEx091304; Thu, 2 Feb 2023 13:47:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 312DldhG091303; Thu, 2 Feb 2023 13:47:39 GMT (envelope-from git) Date: Thu, 2 Feb 2023 13:47:39 GMT Message-Id: <202302021347.312DldhG091303@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: 968bde747161 - main - lang/go120: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 968bde747161c25ad6335b131043dcf54b2ebf43 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dmgk: URL: https://cgit.FreeBSD.org/ports/commit/?id=968bde747161c25ad6335b131043dcf54b2ebf43 commit 968bde747161c25ad6335b131043dcf54b2ebf43 Author: Dmitri Goutnik AuthorDate: 2023-02-02 12:09:18 +0000 Commit: Dmitri Goutnik CommitDate: 2023-02-02 13:47:28 +0000 lang/go120: Add new port Add new port for the latest Go release, version 1.20. Release notes: https://go.dev/doc/go1.20 --- lang/Makefile | 1 + lang/go120/Makefile | 20 ++++++++++++++++++++ lang/go120/distinfo | 15 +++++++++++++++ .../patch-src_cmd_go_internal_modload_vendor.go | 11 +++++++++++ 4 files changed, 47 insertions(+) diff --git a/lang/Makefile b/lang/Makefile index 273d8450ab3f..bcbb038491a4 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -120,6 +120,7 @@ SUBDIR += go-devel SUBDIR += go118 SUBDIR += go119 + SUBDIR += go120 SUBDIR += gomacro SUBDIR += gprolog SUBDIR += gravity diff --git a/lang/go120/Makefile b/lang/go120/Makefile new file mode 100644 index 000000000000..ee756ed3a668 --- /dev/null +++ b/lang/go120/Makefile @@ -0,0 +1,20 @@ +DISTVERSION= 1.20 +# 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/go120/distinfo b/lang/go120/distinfo new file mode 100644 index 000000000000..3af9c460c589 --- /dev/null +++ b/lang/go120/distinfo @@ -0,0 +1,15 @@ +TIMESTAMP = 1675339688 +SHA256 (go1.20.src.tar.gz) = 3a29ff0421beaf6329292b8a46311c9fbf06c800077ceddef5fb7f8d5b1ace33 +SIZE (go1.20.src.tar.gz) = 26163076 +SHA256 (go-freebsd-arm64-go1.20.tar.xz) = 674e0a9bce8b64dcc085b000eb83ae880e96be1ee47dad6ec86c82dbe5550623 +SIZE (go-freebsd-arm64-go1.20.tar.xz) = 32640640 +SHA256 (go-freebsd-amd64-go1.20.tar.xz) = 170f612c4b8a59400f27d642aab37afa831fe2d6df3e7473dec2d4574a59a46c +SIZE (go-freebsd-amd64-go1.20.tar.xz) = 34684360 +SHA256 (go-freebsd-arm6-go1.20.tar.xz) = acf99dbb285c6d2b80e0abfe4bffd0d230516ea84d17be0d5bc1045809e3d33a +SIZE (go-freebsd-arm6-go1.20.tar.xz) = 33418476 +SHA256 (go-freebsd-arm7-go1.20.tar.xz) = 12dd61c802eada70380f0b4755656d82dbf228575c056775c682456380be5039 +SIZE (go-freebsd-arm7-go1.20.tar.xz) = 33346596 +SHA256 (go-freebsd-386-go1.20.tar.xz) = 34e888a37153270b33503a23885ea4c85ba4bd09849d2c937fc9d312c0f49983 +SIZE (go-freebsd-386-go1.20.tar.xz) = 35448892 +SHA256 (go-freebsd-riscv64-go1.20.tar.xz) = 010921013d24124ff31f4b1965456349547acf936572fc6e0bcf95a0542794bd +SIZE (go-freebsd-riscv64-go1.20.tar.xz) = 33807544 diff --git a/lang/go120/files/patch-src_cmd_go_internal_modload_vendor.go b/lang/go120/files/patch-src_cmd_go_internal_modload_vendor.go new file mode 100644 index 000000000000..721bed32419f --- /dev/null +++ b/lang/go120/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.