From nobody Sat Nov 04 16:27:28 2023 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 4SN31D5mC2z4ym3j; Sat, 4 Nov 2023 16:27:28 +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 4SN31D3XdTz3HNP; Sat, 4 Nov 2023 16:27:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699115248; 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=a1I8v1RCJZbzlFXcroQQ9zR6IuRMBrKMFZk6ZsZB8og=; b=JexEQ9kdMdHzCeORfM+sir4tF4iJ8ssaRAFXueb79LWD+4p3CVgKnEbwgasg7T2pffXypN z1R4AHiGVVfd4yCcunFaZgoUrIYNJ7x/Q3pi3Azfz1mJMYDWMtuZDaefJ0CKZBI9YFXsJ8 4xZmcqk93nUX5zVwx7whRmTTZGQipNMZR0GsYTf85EGDsMLd0KExjgnGpOtdPD11luHDcK I3FcfJYlBKwC97/YQGNglAS/IzNzb+7GkZdLuG731ZRqK1xVWFZfZDhICoQGlDfNpOePeV Hpf4+tKErTX1kZB0UEd6sApVmgfG7BexfiQS3lfkLlSWvbWTstD3d5d5ukphXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699115248; 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=a1I8v1RCJZbzlFXcroQQ9zR6IuRMBrKMFZk6ZsZB8og=; b=b72uWNONyhIYtQx0AzH/OIFbpknbOIqaFzA2C4R87tzkEprf9f7fTdtS8MHGmfUF2ubs5t 8j8elPT/bfJvZYmGiX8izybAiQgEbKTD1iOF7k94UrYo59z0mt7y6WI0LYDi5eOZWqXvW6 9TcROO+gGC1t+BUfog9fOFMr2d11aaJWg+jNRBf6LEJI9QaJgS3Hz5bTV5cTHarLN3+b5t 1NEfmyU1eJMn6hbkRH8tShlgxa+yr3BzEnJPo138F78yRqd/R5SQC+c8wqnTPlUjB6cGvB REVTRl9insm1HvoAI5HgOt4KQwT2OkK91fwtOVu7zJ22R8EbOhXbKLbpWcYkpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699115248; a=rsa-sha256; cv=none; b=AeozbY2CFIcQpfhFo5Hjma3+tDOuiJnPY4wASbs74SdcDPLBVun/BmnuypxNThDtoH+nC4 LRjTltyXYoLRv8yhbMNVoWEGuc8q+mflFsEfdz0GWqu4bXnDs2W/RDRCNOBAVSJJtIETj0 PALXigi1SsUiBmDmxqcgUt5QCGORsYTnsR4AMWdhSMOD2TUCzleQ5ZMFa/oferDg0s2/NJ Cf0SDzCIYuqcP7EP37wjgEgNOirBaO/nD8beEbVEH9T11Rmz54CrlPerNFI4GmbxdMJ2NI nphhPAfrowL/uNcM3xqgNvx5y9s3lC7fri5pHJ74KzlM/7uh8znqGv7w5Gp8Ug== 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 4SN31D2VGyz14Bc; Sat, 4 Nov 2023 16:27:28 +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 3A4GRST0020582; Sat, 4 Nov 2023 16:27:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A4GRS63020579; Sat, 4 Nov 2023 16:27:28 GMT (envelope-from git) Date: Sat, 4 Nov 2023 16:27:28 GMT Message-Id: <202311041627.3A4GRS63020579@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: bfcd2a9b6f16 - main - www/qt5-webengine: fix build with libc++ 17 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: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bfcd2a9b6f168c590da52dfefa0aacf1b021d30f Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=bfcd2a9b6f168c590da52dfefa0aacf1b021d30f commit bfcd2a9b6f168c590da52dfefa0aacf1b021d30f Author: Dimitry Andric AuthorDate: 2023-10-26 10:45:00 +0000 Commit: Dimitry Andric CommitDate: 2023-11-04 16:26:51 +0000 www/qt5-webengine: fix build with libc++ 17 Building www/qt5-webengine with libc++ 17 results in the following compile errors: In file included from ../../../../kde-qtwebengine-5.15.15p0/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/trace_sorter.cc:17: In file included from /usr/include/c++/v1/algorithm:1803: In file included from /usr/include/c++/v1/__algorithm/nth_element.h:15: /usr/include/c++/v1/__algorithm/sort.h:577:14: error: no viable overloaded '=' 577 | *__begin = _Ops::__iter_move(__pivot_pos); | ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/__algorithm/sort.h:802:20: note: in instantiation of function template specialization 'std::__bitset_partition::Iterator, std::__less &>' requested here 802 | ? std::__bitset_partition<_AlgPolicy, _RandomAccessIterator, _Compare>(__first, __last, __comp) | ^ /usr/include/c++/v1/__algorithm/sort.h:878:8: note: in instantiation of function template specialization 'std::__introsort &, perfetto::base::CircularQueue::Iterator, false>' requested here 878 | std::__introsort<_AlgPolicy, | ^ /usr/include/c++/v1/__algorithm/sort.h:946:10: note: in instantiation of function template specialization 'std::__sort_dispatch::Iterator, std::__less>' requested here 946 | std::__sort_dispatch<_AlgPolicy>(std::__unwrap_iter(__first), std::__unwrap_iter(__last), __comp); | ^ /usr/include/c++/v1/__algorithm/sort.h:954:8: note: in instantiation of function template specialization 'std::__sort_impl::Iterator, std::__less>' requested here 954 | std::__sort_impl<_ClassicAlgPolicy>(std::move(__first), std::move(__last), __comp); | ^ /usr/include/c++/v1/__algorithm/sort.h:960:8: note: in instantiation of function template specialization 'std::sort::Iterator, std::__less>' requested here 960 | std::sort(__first, __last, __less<>()); | ^ ../../../../kde-qtwebengine-5.15.15p0/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/trace_sorter.cc:51:8: note: in instantiation of function template specialization 'std::sort::Iterator>' requested here 51 | std::sort(sort_begin, events_.end()); | ^ ../../../../kde-qtwebengine-5.15.15p0/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/timestamped_trace_piece.h:191:26: note: candidate function not viable: 'this' argument has type 'const perfetto::trace_processor::TimestampedTracePiece', but method is not marked const 191 | TimestampedTracePiece& operator=(TimestampedTracePiece&& ttp) { | ^ ../../../../kde-qtwebengine-5.15.15p0/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/timestamped_trace_piece.h:202:26: note: candidate function not viable: 'this' argument has type 'const perfetto::trace_processor::TimestampedTracePiece', but method is not marked const 202 | TimestampedTracePiece& operator=(const TimestampedTracePiece&) = delete; | ^ This is because perfetto's CircularQueue template is only half const-correct. Upstream fixed this in: https://github.com/google/perfetto/commit/b82a213bcf71dd8e68b53941375936c7905c0ff2 so apply that fix to qt5-webengine's older copy of perfetto. PR: 274740, 273753 MFH: 2023Q4 --- ...tto_include_perfetto_ext_base_circular__queue.h | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_perfetto_include_perfetto_ext_base_circular__queue.h b/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_perfetto_include_perfetto_ext_base_circular__queue.h new file mode 100644 index 000000000000..227cbf7dfcfd --- /dev/null +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_perfetto_include_perfetto_ext_base_circular__queue.h @@ -0,0 +1,35 @@ +--- src/3rdparty/chromium/third_party/perfetto/include/perfetto/ext/base/circular_queue.h.orig 2023-07-14 13:25:01 UTC ++++ src/3rdparty/chromium/third_party/perfetto/include/perfetto/ext/base/circular_queue.h +@@ -67,25 +67,21 @@ class CircularQueue { + ignore_result(generation); + } + +- T* operator->() { ++ Iterator(const Iterator&) noexcept = default; ++ Iterator& operator=(const Iterator&) noexcept = default; ++ Iterator(Iterator&&) noexcept = default; ++ Iterator& operator=(Iterator&&) noexcept = default; ++ ++ T* operator->() const { + #if PERFETTO_DCHECK_IS_ON() + PERFETTO_DCHECK(generation_ == queue_->generation()); + #endif + return queue_->Get(pos_); + } + +- const T* operator->() const { +- return const_cast::Iterator*>(this)->operator->(); +- } ++ T& operator*() const { return *(operator->()); } + +- T& operator*() { return *(operator->()); } +- const T& operator*() const { return *(operator->()); } +- + value_type& operator[](difference_type i) { return *(*this + i); } +- +- const value_type& operator[](difference_type i) const { +- return const_cast::Iterator&>(*this)[i]; +- } + + Iterator& operator++() { + Add(1);