From nobody Sun Sep 15 11:39:00 2024 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 4X65fX51wwz5WFMT; Sun, 15 Sep 2024 11:39:00 +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 4X65fX4Jvnz3x6g; Sun, 15 Sep 2024 11:39:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726400340; 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=RX57PYGr8F/nn73lRHwRi8ufnjG25bUkPAgWfnXhFoo=; b=kpZiu6aaMdDnGMcArixUSMqCSE/4vmI6uNQxCq05tlKl6ZvtIjnIo1xswnzVb0ZfqT0msa CHUBFq4UAYkHVh3Q8g+qHNA/NQ85jHg23YdfHpuzfF1ofxQnP1gtU69XYa/tb1TNx2+WOC F8Umgi3j9gvgFt6VblCpCEHVgR1H2xmh/Gc1FoN6rorKnhUl/wYnXeMFipgyeCDp5Ms3cf ZWb2M0LORq08uyWwXm9kCTOrXwJZRlVDAhmYylzWpCicueWgsKWvf+QTFSvhZBROtEmcXm TYapBESaxh+cQHyI+e81jxt7836CI6g3TEPQOp0PS8LB0HUa939tYMnqNW8T/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726400340; a=rsa-sha256; cv=none; b=LBdlHghM/XXBElUpriQygfMY0SQG9uyLQA5slo+4jne+N1gfaAeGnWlK03GIOVpk2JiDyj Jzr0ptqhWy/WKk/tZfFa1BtaCBBCO0vXsUh0CmS+87gnrRh8GvQQu8z7Ymkdj0+vCfjZg3 ioN5mWf6E8koeZCAO157Cwwf5DhebIXJl0FtIRGWuHa+mt/ePmSKesvJmp701JwrryLPGz cEsBnx+3F2VDH+MTrAjK5jtazswAdf8n68zKkQpzZFunBSiffHgGarS5HujRWz1tko8FLD qd9RrFAwItm4RWSKw9FqMSqSViX+cAqCnaZvxLfWjHe1S5C4ucDAlv1mhVjInQ== 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=1726400340; 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=RX57PYGr8F/nn73lRHwRi8ufnjG25bUkPAgWfnXhFoo=; b=sbevKXmJkPvCMuzXQE0gnDOgT2V1ljsAaMaJhFsA3OPto7LWHOk1zYR55Icx5E2sllu658 frhpuIwrNJxDuznLhGM26itFS3tMA20aanRwYe0qK8+OrhlPM2SO8qKGd5KgZjMl+9HCGs DZW4v9OeF0VAKMnE3mDicLBnyr7trgE11IAUuD10on4XAzrrotsi5dJh1aecOI5ex3RYe3 o8r7NT8YjcvciovLwE9S3qF0nLxLFLwxiMKb2wJIkuBZCODmz3tyAW8yecjO5x5+aX85dJ 5bmI/LiuZSZAin/yJ05kCDWrRPBvTE5NtRWMokZ9+58OkxZWsWvtUOnmKiS0Xg== 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 4X65fX3cSWz18NT; Sun, 15 Sep 2024 11:39:00 +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 48FBd0k4092287; Sun, 15 Sep 2024 11:39:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48FBd0DZ092284; Sun, 15 Sep 2024 11:39:00 GMT (envelope-from git) Date: Sun, 15 Sep 2024 11:39:00 GMT Message-Id: <202409151139.48FBd0DZ092284@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: b3459442f762 - main - devel/folly: fix build with clang 19 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@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: b3459442f762df2cf1e81c582c78da1481c834f6 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=b3459442f762df2cf1e81c582c78da1481c834f6 commit b3459442f762df2cf1e81c582c78da1481c834f6 Author: Dimitry Andric AuthorDate: 2024-09-14 16:37:22 +0000 Commit: Dimitry Andric CommitDate: 2024-09-15 11:38:17 +0000 devel/folly: fix build with clang 19 As noted in the libc++ 19 release notes [1], std::char_traits<> is now only provided for char, char8_t, char16_t, char32_t and wchar_t, and any instantiation for other types will fail. This causes devel/folly to fail to compile with clang 19 and libc++ 19, resulting in errors similar to: /usr/include/c++/v1/string_view:300:42: error: implicit instantiation of undefined template 'std::char_traits' 300 | static_assert(is_same<_CharT, typename traits_type::char_type>::value, | ^ /wrkdirs/share/dim/ports/devel/folly/work/folly-2024.09.09.00/folly/io/Cursor.h:686:35: note: in instantiation of template class 'std::basic_string_view' requested here 686 | std::basic_string_view peekView() { | ^ /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here 23 | struct _LIBCPP_TEMPLATE_VIS char_traits; | ^ Since the peekView() function is supposed to return a no longer existing type, conditionalize it for libc++ versions before 19. As far as I can see, there are no consumers of this function, except for some of the tests. [1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals PR: 281499 Approved by: yuri (maintainer) MFH: 2024Q3 --- devel/folly/files/patch-folly_io_Cursor.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/devel/folly/files/patch-folly_io_Cursor.h b/devel/folly/files/patch-folly_io_Cursor.h new file mode 100644 index 000000000000..f79053c883bc --- /dev/null +++ b/devel/folly/files/patch-folly_io_Cursor.h @@ -0,0 +1,18 @@ +--- folly/io/Cursor.h.orig 2024-09-07 03:24:18 UTC ++++ folly/io/Cursor.h +@@ -677,6 +677,7 @@ class CursorBase { + return ByteRange{data(), available}; + } + ++#if !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 190000 + /** + * Alternate version of peekBytes() that returns a std::basic_string_view + * instead of a ByteRage. +@@ -687,6 +688,7 @@ class CursorBase { + auto bytes = peekBytes(); + return {bytes.data(), bytes.size()}; + } ++#endif // _LIBCPP_VERSION < 190000 + + /** + * Alternate version of peekBytes() that returns a std::pair