From nobody Sat Apr 16 22:10:08 2022 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 06AF411CCE8B; Sat, 16 Apr 2022 22:10:09 +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 4KgnSJ6l5Mz3qfg; Sat, 16 Apr 2022 22:10:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650147009; 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=mB6ZH+j9hr32wRilmC35cF9KGqwwGcRwM66/6znJXEg=; b=T2RCO74v1lAsxW9AVg8UzGUTwe8vXo8mxNepfDEL96iTLrXRy9/UIaiUmxHnUq/2earT4D txl2HyPY7ljK3v+3JHEVPDNslRLqdTsg1UEVR+K5fyBGETH/cdcRrUT2L28FNdJzWnDrI+ dHG22WB4m5Ts6s2ryDgEmNWhOv6dH7y0drvwYRqXt2fMhABO02rddmk5ilyISYik0UQVpS 9dLkl5/QvFLSGv4ZpXlV5cP2SdSI/gEJ3HB1JSu/FVrlMn0XzGasidEOkIUjWB/suTwfO5 s78fYOzjar/zVPgMUMlqAaDjW9FhNNs1HiMBEQ3YgAebowm12yHPJmrpR3tTDg== 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 C820011F70; Sat, 16 Apr 2022 22:10:08 +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 23GMA8VJ043096; Sat, 16 Apr 2022 22:10:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23GMA8FS043094; Sat, 16 Apr 2022 22:10:08 GMT (envelope-from git) Date: Sat, 16 Apr 2022 22:10:08 GMT Message-Id: <202204162210.23GMA8FS043094@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Serhii (Sergey) Kozlov Subject: git: 705118f35fb6 - main - www/pydio-cells: Fix build with Go 1.18 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: skozlov X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 705118f35fb6c56d580721d34105c95993eb974d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650147009; 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=mB6ZH+j9hr32wRilmC35cF9KGqwwGcRwM66/6znJXEg=; b=xTP+T+kBZq4o1wOXBOftypJ1LXvJkDxnV1Hdzpj+YnD3O/oP7zfJGILPal/heZwn7VXDQd LpEc8ZS9PUd/ileG5oB593zaJH9LF2JltZCDcn1TekuiqRx79Y6XN670nTcD8a0i+OQSCi wTzr64NToW9AEJLJQ2Rtjd1ac4EAeOCRyP4BKLuyGpK0mhsJFOGJII6dBXxgVg2B+D1J/5 f73zVDJ4Gu7XeS6NZHZ6F+9QrEC3PMwC9TsoPOpLCW2rnrBEHEN8ssN15Q1QrT22eyCbhk GNJha2WNlXxGYUZm2kbDyX1oy+bGGY5F8nCtUkn8LUTeAUp0+BQjIxm2Yit6BA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650147009; a=rsa-sha256; cv=none; b=C3+IF6c30zr3wgBdSAB5iagW73fDQRy2bBsVYU5C/94smuhyDw4V4aCi6eDs2m/azNeBlJ tuBB1b2XwNCz/8ARv+fJ/vkxB5T8DeNtTFF8cxG8hk8cmMsO1P2yTiVpd+BapJuzZg3ll6 AMdN3/hiEjwD3cic3Ol2Mm2HDNbSgGB6BWt6S2vHUYsFMCmTv8F1qkK4Q7xBrQPUY8jMXd NyyaYG+kVfe9xZg6ata8I0QLuMtKxOiz2i30nYWctOxkh1ddys0FZ0MaoO++k8p9iSX3bo 9D+7uhpZN/rE69McAor4pkZ4du9PhTlODuFyh6L8bTkU2irkiQVFL0NoygTcSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by skozlov: URL: https://cgit.FreeBSD.org/ports/commit/?id=705118f35fb6c56d580721d34105c95993eb974d commit 705118f35fb6c56d580721d34105c95993eb974d Author: Serhii (Sergey) Kozlov AuthorDate: 2022-04-16 22:07:35 +0000 Commit: Serhii (Sergey) Kozlov CommitDate: 2022-04-16 22:09:53 +0000 www/pydio-cells: Fix build with Go 1.18 Backport fixes from upstream: https://github.com/modern-go/reflect2/tree/fix-go1.18 --- ...github.com_modern-go_reflect2_go__above__118.go | 26 ++++++++++++ ...github.com_modern-go_reflect2_go__below__118.go | 24 +++++++++++ ...r_github.com_modern-go_reflect2_unsafe__link.go | 48 ++++++++++++++++++++++ ...or_github.com_modern-go_reflect2_unsafe__map.go | 17 ++++++++ 4 files changed, 115 insertions(+) diff --git a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__above__118.go b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__above__118.go new file mode 100644 index 000000000000..a5f30e6a87c6 --- /dev/null +++ b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__above__118.go @@ -0,0 +1,26 @@ +--- vendor/github.com/modern-go/reflect2/go_above_118.go.orig 2022-04-16 21:52:43 UTC ++++ vendor/github.com/modern-go/reflect2/go_above_118.go +@@ -0,0 +1,23 @@ ++//+build go1.18 ++ ++package reflect2 ++ ++import ( ++ "unsafe" ++) ++ ++// m escapes into the return value, but the caller of mapiterinit ++// doesn't let the return value escape. ++//go:noescape ++//go:linkname mapiterinit reflect.mapiterinit ++func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter) ++ ++func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { ++ var it hiter ++ mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it) ++ return &UnsafeMapIterator{ ++ hiter: &it, ++ pKeyRType: type2.pKeyRType, ++ pElemRType: type2.pElemRType, ++ } ++} diff --git a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__below__118.go b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__below__118.go new file mode 100644 index 000000000000..f47f8687a646 --- /dev/null +++ b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__below__118.go @@ -0,0 +1,24 @@ +--- vendor/github.com/modern-go/reflect2/go_below_118.go.orig 2022-04-16 21:56:08 UTC ++++ vendor/github.com/modern-go/reflect2/go_below_118.go +@@ -0,0 +1,21 @@ ++//+build !go1.18 ++ ++package reflect2 ++ ++import ( ++ "unsafe" ++) ++ ++// m escapes into the return value, but the caller of mapiterinit ++// doesn't let the return value escape. ++//go:noescape ++//go:linkname mapiterinit reflect.mapiterinit ++func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) (val *hiter) ++ ++func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { ++ return &UnsafeMapIterator{ ++ hiter: mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)), ++ pKeyRType: type2.pKeyRType, ++ pElemRType: type2.pElemRType, ++ } ++} diff --git a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__link.go b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__link.go new file mode 100644 index 000000000000..3775e509f697 --- /dev/null +++ b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__link.go @@ -0,0 +1,48 @@ +--- vendor/github.com/modern-go/reflect2/unsafe_link.go.orig 2022-04-16 22:01:31 UTC ++++ vendor/github.com/modern-go/reflect2/unsafe_link.go +@@ -19,19 +19,13 @@ func typedslicecopy(elemType unsafe.Pointer, dst, src + + //go:linkname mapassign reflect.mapassign + //go:noescape +-func mapassign(rtype unsafe.Pointer, m unsafe.Pointer, key, val unsafe.Pointer) ++func mapassign(rtype unsafe.Pointer, m unsafe.Pointer, key unsafe.Pointer, val unsafe.Pointer) + + //go:linkname mapaccess reflect.mapaccess + //go:noescape + func mapaccess(rtype unsafe.Pointer, m unsafe.Pointer, key unsafe.Pointer) (val unsafe.Pointer) + +-// m escapes into the return value, but the caller of mapiterinit +-// doesn't let the return value escape. + //go:noescape +-//go:linkname mapiterinit reflect.mapiterinit +-func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) *hiter +- +-//go:noescape + //go:linkname mapiternext reflect.mapiternext + func mapiternext(it *hiter) + +@@ -42,9 +36,21 @@ func ifaceE2I(rtype unsafe.Pointer, src interface{}, d + // If you modify hiter, also change cmd/internal/gc/reflect.go to indicate + // the layout of this structure. + type hiter struct { +- key unsafe.Pointer // Must be in first position. Write nil to indicate iteration end (see cmd/internal/gc/range.go). +- value unsafe.Pointer // Must be in second position (see cmd/internal/gc/range.go). +- // rest fields are ignored ++ key unsafe.Pointer ++ value unsafe.Pointer ++ t unsafe.Pointer ++ h unsafe.Pointer ++ buckets unsafe.Pointer ++ bptr unsafe.Pointer ++ overflow *[]unsafe.Pointer ++ oldoverflow *[]unsafe.Pointer ++ startBucket uintptr ++ offset uint8 ++ wrapped bool ++ B uint8 ++ i uint8 ++ bucket uintptr ++ checkBucket uintptr + } + + // add returns p+x. diff --git a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__map.go b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__map.go new file mode 100644 index 000000000000..1e4699268cb7 --- /dev/null +++ b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__map.go @@ -0,0 +1,17 @@ +--- vendor/github.com/modern-go/reflect2/unsafe_map.go.orig 2022-04-16 22:00:28 UTC ++++ vendor/github.com/modern-go/reflect2/unsafe_map.go +@@ -107,14 +107,6 @@ func (type2 *UnsafeMapType) Iterate(obj interface{}) M + return type2.UnsafeIterate(objEFace.data) + } + +-func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { +- return &UnsafeMapIterator{ +- hiter: mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)), +- pKeyRType: type2.pKeyRType, +- pElemRType: type2.pElemRType, +- } +-} +- + type UnsafeMapIterator struct { + *hiter + pKeyRType unsafe.Pointer