From nobody Fri Aug 16 15:39:16 2024 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 4WlmPc3crZz5T76V; Fri, 16 Aug 2024 15:39:16 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WlmPc2JHXz4cv8; Fri, 16 Aug 2024 15:39:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723822756; 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=VXLs2Sqi5AoHByAYhIdOjIDIq2iFjsClrebu7WRVdf8=; b=fHKTkJXRc5wlSxnG7jVlgygfO8y7AcKNTrADZ60gkW4Zur5RikG8Tsr03wiJOdsVuhlOEl eyK6yeR3hW4iIN/rPFH2Ujvit6fU4uyZwEeoWF96kgc66okzgIGpD7mh7PSeJR5ZAv5RIn posjoTtn9cBSTiefhQm73r8BCyrwwz8glknDmorKxA4DNyeDv+LWPivTJa3TrN6c0Llday sKdu4UUquxItKVx7NVRcS352JS1PrKbkVnlWD7Ea1+skG4bxAcDPBwQso8vyscxF4JU/d5 GRXvhtJ5OOvGXTGeM+3UgZiOuuQRCKR3KJxoPuMNtMdY9ujIEt43rMfhVMrsqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723822756; a=rsa-sha256; cv=none; b=dTDJ9sKabni3l0LZa85voZufE96L/h/3QPkcr5eqwfzwsS0X4qmcw8ptFcMI1QyICe9RT0 jmD/yfiYpzkSnFg9JXD4o75uNlFznlO1BBU1NfBKIxf4HhJr1Qc5Xur1yBtf2Ay8bQwK+4 GJW8PLjXv0xw11Z+kWuB6nOWU3PMPGW/Am9pNSWEEQAvM/un+uX2Z92rR0aRTMZjGMWxFD QlbQN+ZKUzqzNc0VwN8QT/Bv+HLXWou5/M/1FnD4Ic+aHTs+X/LV22iMnbT6xNequ9H5b/ NGdKpwadhKwwDTejZQWhC/BOHaMFesl2r8o+G48LrVvr+FhNcGC/7OXbYaHHzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723822756; 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=VXLs2Sqi5AoHByAYhIdOjIDIq2iFjsClrebu7WRVdf8=; b=jplV5tPsZhJjS0y5wKJpIJxYmZ1YSPLMWfvbS25y/tfxR9EN9iBl0h59ox7afceB5I0ipI naB9elBUMZAV9kphlZnC0GwmXk/vVvurgZBJU7qf2wBhodFRG8nOe/yiXAauNc4dc1Tci9 cIofODG4WuWoweNAPe9XBYYrJ1qA/6cgJ3TjWdS8JmZIh9SFBWAlzj25YJpkiTBwUndzrP IRWwRkGUNFc4Qfo6ATVKee1tn5ab1DRXWqPLLw2wzTDMPPEKSYi3rRkRVH0qUym8hMf5Tu zJ4c8fgU4td4WbpNzTwWpHEfD8UjS7e2JZYWliiNTtWKCv4DrCF60o+3nxb0yw== 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 4WlmPc1NT0z1B7k; Fri, 16 Aug 2024 15:39:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47GFdGXW079642; Fri, 16 Aug 2024 15:39:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47GFdGJr079639; Fri, 16 Aug 2024 15:39:16 GMT (envelope-from git) Date: Fri, 16 Aug 2024 15:39:16 GMT Message-Id: <202408161539.47GFdGJr079639@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 438b693be17d - main - chinese/opencc: fix build with clang 19 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 438b693be17d522b4a9a6620b5848ae965937511 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=438b693be17d522b4a9a6620b5848ae965937511 commit 438b693be17d522b4a9a6620b5848ae965937511 Author: Dimitry Andric AuthorDate: 2024-08-13 12:12:32 +0000 Commit: Dimitry Andric CommitDate: 2024-08-16 15:36:07 +0000 chinese/opencc: fix build with clang 19 Clang 19 now diagnoses incorrect member accesses, which causes chinese/opencc to fail with an error similar to: /wrkdirs/usr/ports/chinese/opencc/work/OpenCC-ver.1.1.6/src/../deps/rapidjson-1.1.0/rapidjson/document.h:319:82: error: cannot assign to non-static data member 'length' with const-qualified type 'const SizeType' (aka 'const unsigned int') 319 | GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; } | ~~~~~~ ^ /wrkdirs/usr/ports/chinese/opencc/work/OpenCC-ver.1.1.6/src/../deps/rapidjson-1.1.0/rapidjson/document.h:325:20: note: non-static data member 'length' declared const here 325 | const SizeType length; //!< length of the string (excluding the trailing NULL terminator) | ~~~~~~~~~~~~~~~^~~~~~ Upstream rapidjson fixed this by removing the operator= function in https://github.com/Tencent/rapidjson/commit/3b2441b8, so pull this in as a patch and apply it. PR: 280796 Approved by: lichray@gmail.com (maintainer) MFH: 2024Q3 --- .../files/patch-deps_rapidjson-1.1.0_rapidjson_document.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chinese/opencc/files/patch-deps_rapidjson-1.1.0_rapidjson_document.h b/chinese/opencc/files/patch-deps_rapidjson-1.1.0_rapidjson_document.h new file mode 100644 index 000000000000..00524a9d8445 --- /dev/null +++ b/chinese/opencc/files/patch-deps_rapidjson-1.1.0_rapidjson_document.h @@ -0,0 +1,11 @@ +--- deps/rapidjson-1.1.0/rapidjson/document.h.orig 2022-12-08 07:44:48 UTC ++++ deps/rapidjson-1.1.0/rapidjson/document.h +@@ -316,8 +316,6 @@ struct GenericStringRef { + + GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {} + +- GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; } +- + //! implicit conversion to plain CharType pointer + operator const Ch *() const { return s; } +