From nobody Sun Nov 3 20:53:37 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 4XhRds5Qmlz5cnqb; Sun, 03 Nov 2024 20:53:37 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhRds4MNlz57gd; Sun, 3 Nov 2024 20:53:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730667217; 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=LpaVwIy5yOpgBR4tg7QjnGXGm9ktCA+JElDXe0FwkTY=; b=T08HF0FnPpEEb1WimeFOl1BqsSLXk9QC6t58q0EVUhFRQnoCxONnOhKCAu0/kip3TId/zu vjnbEkJyUXZQ36KXxtEs5i1b9JoyGPDM0qMowIZj+QZiC0OwU3OpApnzAQMUqPYlurcTff wj3XMU9QVRhF/+OZMQvCRczNxM0eM3gGpK4MUX7oD40fAq67WxAvOjbeVZpqUwEU442BtU fTDgaJy6gSdYRK0Db3DXiAYfdFEKhBHjlsh18X0C6orNPL/qwIGpHpRwiihy+6tBi0ie5J ynkd6n2sRqyiVqPWKo1n18STvBf+rFxMpvrnqk/hrS5CVQkplona+RlfmpFiog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730667217; 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=LpaVwIy5yOpgBR4tg7QjnGXGm9ktCA+JElDXe0FwkTY=; b=hw7sOex1TuhIBEk4pvpDRVJwWyBlZA+bHjRqJcIlWqbpadoBAaH5q8tIjd05t+O7woln09 bBDxY4wDXFLWnZGQtHKZc1WC0HhUFddh2J90N145xHI8Bab0HDff67O/1Z+kDll0lg+LRp zZwPWRnHrsnvzQ/07XU/XFjYUql6r1QRmC8B8sUFQXlz7dSFGaHRH0pidKBIaPtu79gf05 LOLLMN4TU5nTypefxsToDH9buLGex81jTUTDPW3oJ6Ua0cE+ZRbVfhDPnVg2BNxMAomNFg ycQ/KNnvcP8rdR5yaPQ0MuiiqxWFh3gqS/lni3TrP2vV2EPuTbu4+dgCLnL2CQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730667217; a=rsa-sha256; cv=none; b=TriVrhjJrYpWFKwkxot9+jQZtLG+YpF/iMpzBmxIia+ogrwVd1nHWiagtCKRJcDJxmuXQx V9v0kSvtfw+z72QlhiPbHj6hXEO5+W6SwDZ9Aap4ODqu+6bMmC1LiJefW5o9C/Ts6Vs4bP /s+tu/FldsJ9lCng9ObZD9SoTmYZZ40D2qaoYoJvUrbDhmZ3NTIqr6bOK06GhefOFJF+DD jErIY1tmP0747VUCzvZ67xC5hF6qDSt+ggyQnJjSsef61i0+LR2JkJKSVq8UFDuBThviNi NKDUOsguQM95PYBT/lqsGiBxSwKA/XUHNcEfzFGsf4gSXkMWNDfc4Ylqxrn83Q== 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 4XhRds3yp1z13mt; Sun, 3 Nov 2024 20:53:37 +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 4A3KrbcH057937; Sun, 3 Nov 2024 20:53:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A3KrbjX057934; Sun, 3 Nov 2024 20:53:37 GMT (envelope-from git) Date: Sun, 3 Nov 2024 20:53:37 GMT Message-Id: <202411032053.4A3KrbjX057934@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: c3ec17f889ef - main - www/davix: 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: c3ec17f889effeee0a46d666dbd4f82c8cc77fac Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=c3ec17f889effeee0a46d666dbd4f82c8cc77fac commit c3ec17f889effeee0a46d666dbd4f82c8cc77fac Author: Dimitry Andric AuthorDate: 2024-11-03 14:31:57 +0000 Commit: Dimitry Andric CommitDate: 2024-11-03 20:53:19 +0000 www/davix: fix build with clang 19 Clang 19 has become more strict about assigning to const class members, resulting in errors similar to: /wrkdirs/usr/ports/www/davix/work/davix-R_0_8_7/src/libs/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/www/davix/work/davix-R_0_8_7/src/libs/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 has fixed this in commit 3b2441b8 [1], which simply removes the assignment operator. [1] https://github.com/Tencent/rapidjson/commit/3b2441b8 PR: 282515 Approved by: yuri (maintainer) MFH: 2024Q4 --- www/davix/files/patch-src_libs_rapidjson_document.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/www/davix/files/patch-src_libs_rapidjson_document.h b/www/davix/files/patch-src_libs_rapidjson_document.h new file mode 100644 index 000000000000..346bcdd112a0 --- /dev/null +++ b/www/davix/files/patch-src_libs_rapidjson_document.h @@ -0,0 +1,11 @@ +--- src/libs/rapidjson/document.h.orig 2024-06-24 15:50:44 UTC ++++ src/libs/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; } +