From nobody Sat Aug 12 11:50:22 2023 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 4RNJrG5MMQz4mRMR; Sat, 12 Aug 2023 11:50:22 +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 4RNJrG4VWsz4dGF; Sat, 12 Aug 2023 11:50:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691841022; 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=ZtEteag76NmXxjx92C1QOXV+4uvvv9R4Y1QT9aMubKU=; b=le6gwRCtblNtGMgcBo09LrdrqGl+Wn9P1qfH9+BkBkfJyJmkVSVNXk1e7xqcpi6Tdx/BIx G7WM80vlRH6gYLL8oIpqW6H6nkW/f5VdYO8Fszpuk1EULz9azVCpN47u55UtM3RS+3lth7 JUDakJAjqd1nt49o72v8qh9IpB7PF9p4ZYL3NNDr6f6e7lUcRtxMG7O7L63RTky0qOabwZ zizFD7XBPeEumR9Eyal5rtbwhAuMejx760HZin+omVKdmEgDvguCR4iDWcdPj64EmE8C7R 3RofDFUjDlyEiEfLbmxtPET/tfXWz/W2yJx5lDZ8mkVcOMz5/yx9glqfm5sATg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691841022; 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=ZtEteag76NmXxjx92C1QOXV+4uvvv9R4Y1QT9aMubKU=; b=kSSglRcCj/fbJRIfVEJNAf2W52U4tZlKylqZJ0QSIpaZAZdS6/VDDQTpmmJanR26XSX8Qv CykNkh0vVyFOaZ3UWFXY4zd4UTJVbbw5EB6sTO9K1In+PS93xZyi3QqfrC/AjIMiaxDrSL tdn1LNfJ8/OSCemjGyrOtI4l2viGIc0e7cOgD1AXqz6TGzV5ubMo7z4PMUtQ5qC+Wx9aFg qSqpKY4rqZ3qqLJGSu21Ka5cQQPSARa3FJNS79hE4HZHkyyABVcGIdvoMB3N6hDguHnFAs vlI76m6+g3jGgTc8LsHbzU/8LTxBk8Nw2nJE0KKnZ+pH3SYtdskLe+xMuKZgtQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691841022; a=rsa-sha256; cv=none; b=mXoxQijF2cM4iF/3zZg2f4xGB8wF9UpRsDUQZUp7Wpsln6O6C9P5UpprnONWq27cfvDs24 bSuF+DYVYtxaHGKJJ1mLemL8+/u0CMFUuRctNu54s2TAMut54aOEwfFnyq+uJuTnCxOzKR shJuMIzYKACMLqNsQPwTRT3Bucl94s0qe/02ZhKHt6J7h8n/w8mWY34sX67iIODBEw0MMO cr6oGoGqLMXYr59dRmREJTwt3wOkir3OjqvhGSyDDGtcwUUqGPhupoudai6lAoz7K7p1J9 uRkHEwAUi/ZyvbHgIp63yluMTWLwyq7ae9jTqhjVWiWajTC17U2Vej5FbHwEGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RNJrG3X5jz4X8; Sat, 12 Aug 2023 11:50:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37CBoM0F066627; Sat, 12 Aug 2023 11:50:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37CBoMq4066624; Sat, 12 Aug 2023 11:50:22 GMT (envelope-from git) Date: Sat, 12 Aug 2023 11:50:22 GMT Message-Id: <202308121150.37CBoMq4066624@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: ab16dbb3c1ef - main - lang/go121: 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: ab16dbb3c1efbac1919c998041fd510bf7b7339b Auto-Submitted: auto-generated The branch main has been updated by dmgk: URL: https://cgit.FreeBSD.org/ports/commit/?id=ab16dbb3c1efbac1919c998041fd510bf7b7339b commit ab16dbb3c1efbac1919c998041fd510bf7b7339b Author: Dmitri Goutnik AuthorDate: 2023-08-12 11:27:06 +0000 Commit: Dmitri Goutnik CommitDate: 2023-08-12 11:39:19 +0000 lang/go121: Add new port Add new port for the latest Go release, version 1.21. Changes: https://go.dev/doc/go1.21 --- lang/Makefile | 1 + lang/go121/Makefile | 20 ++++++++++++++++++++ lang/go121/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 cfe970787265..8c29734eedbc 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -123,6 +123,7 @@ SUBDIR += go-devel SUBDIR += go119 SUBDIR += go120 + SUBDIR += go121 SUBDIR += gomacro SUBDIR += gprolog SUBDIR += gravity diff --git a/lang/go121/Makefile b/lang/go121/Makefile new file mode 100644 index 000000000000..649810a31702 --- /dev/null +++ b/lang/go121/Makefile @@ -0,0 +1,20 @@ +DISTVERSION= 1.21.0 +# 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/go121/distinfo b/lang/go121/distinfo new file mode 100644 index 000000000000..3d749d7b2586 --- /dev/null +++ b/lang/go121/distinfo @@ -0,0 +1,15 @@ +TIMESTAMP = 1691752848 +SHA256 (go1.21.0.src.tar.gz) = 818d46ede85682dd551ad378ef37a4d247006f12ec59b5b755601d2ce114369a +SIZE (go1.21.0.src.tar.gz) = 26942359 +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/go121/files/patch-src_cmd_go_internal_modload_vendor.go b/lang/go121/files/patch-src_cmd_go_internal_modload_vendor.go new file mode 100644 index 000000000000..9d2288522539 --- /dev/null +++ b/lang/go121/files/patch-src_cmd_go_internal_modload_vendor.go @@ -0,0 +1,11 @@ +--- src/cmd/go/internal/modload/vendor.go.orig 2023-08-02 13:51:49 UTC ++++ src/cmd/go/internal/modload/vendor.go +@@ -144,7 +144,7 @@ func checkVendorConsistency(index *modFileIndex, modFi + readVendorList(MainModules.mustGetSingleMainModule()) + + pre114 := false +- if gover.Compare(index.goVersion, "1.14") < 0 { ++ if gover.Compare(index.goVersion, "1.14") < 0 || os.Getenv("GO_NO_VENDOR_CHECKS") == "1" { + // 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.