From nobody Mon Aug 28 19:13:13 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 4RZKvs3Kwqz4rsRJ; Mon, 28 Aug 2023 19:13:13 +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 4RZKvs2qTvz3cFB; Mon, 28 Aug 2023 19:13:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693249993; 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=1skD10nIeOfnfL3WFe5/Hk3BV/8JEZodeNcknv/DZm0=; b=FSTZLseguqtrtQ189y1ya3L2kuomzTqsAlV73Yrw+c1zLzeT7IHrK9NDy1PfG0AaIgPJA+ rxgCLiXB0hx/ndqdA21Jjt/GlG/oJHLxAOWjwiLMv9n6bcNJ1vLgk5VLxcgISoMYytxIMu qAOHuMoConkMLwA1kUSabRaHGGIBiCAFnYQFqjG+fkAcNtX48LuhHUOWMXYqjQ1lrtLNKd B9qYO3r2Cus6dDdaXkipQi/az6lmJN0aRIhNfjReHs8H7H9lbFAwxRhrCXKhrK0waB0fs1 Za3xuQYTXeMF36/eO1ZUOF+wHMNvVFBH9tj8GItlMWxfjmh1dL7H2/UoYQWyLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693249993; a=rsa-sha256; cv=none; b=B8IMlMsa5T/TFdV85gknly18jNhmFqW34qWB4ebW8R41vnc8jaQOoVJczGPRkp/WKmQZu5 Fp0FfUDbYV3IKRaF11Eqk61Qv3HYvTzY+YkVw2dTR2f8eAsAiM/fAGEqK8z+iDhcVfSID0 GwtqxyuI/+MD0qdha6/jp7f06IW2p2MHXyRrwFF+6riRdIspsNswUnTZKCnpvF8b7bQIwn /VMB+49HfEliS/Yx3FaaA2FoX7zU3MjWAiLKNPhryEwiBSf+AOL3udaULQqw3lmc4yw7OM mC9Gueu5huHA3kLdQ3MExBKUS0wKejNrVdCc4+zbqMB5QVyX7miCOUejeuNHOQ== 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=1693249993; 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=1skD10nIeOfnfL3WFe5/Hk3BV/8JEZodeNcknv/DZm0=; b=kpQI0strl4JxK/kXu5ByRTvFMV8ktbssz/AAN02hbkdbfAgALCZzB6x0y2493aVVNkdi9V XKzmpZCD6PlRXKz6pOiS4hN315eZr7Uc8HLjJqXrV6Ghxze0AEDIvqW0CXrL5D0uFJ5SO+ tAIFS+o70ffY3yd0MbbD/V9W91aBAtNh3gW96FRBa9Jhl6P6md6sxYgYVQ3asQmd8Gfv2Y EJmFOJID+0GCn8fdYOkbHMQrtJc8dFU4Tdie1BRpp2qumODYMKCosZ1Ix5sOg3Fw3zyuDQ aVbpzdrJJegqyzLDLHm2LjU0XiVqVWX0HC2RLNee1qEbmBjQ86/LdPdkLDtEZg== 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 4RZKvs1blzz68M; Mon, 28 Aug 2023 19:13:13 +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 37SJDDei046162; Mon, 28 Aug 2023 19:13:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37SJDDZL046159; Mon, 28 Aug 2023 19:13:13 GMT (envelope-from git) Date: Mon, 28 Aug 2023 19:13:13 GMT Message-Id: <202308281913.37SJDDZL046159@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Robert Nagy Subject: git: 3c9a82210557 - 2023Q3 - www/*chromium: bump _LIBCPP_VERSION check to 160000 and fallback to base::ranges 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: rnagy X-Git-Repository: ports X-Git-Refname: refs/heads/2023Q3 X-Git-Reftype: branch X-Git-Commit: 3c9a82210557fd280dff7216b48b50e9d090b55e Auto-Submitted: auto-generated The branch 2023Q3 has been updated by rnagy: URL: https://cgit.FreeBSD.org/ports/commit/?id=3c9a82210557fd280dff7216b48b50e9d090b55e commit 3c9a82210557fd280dff7216b48b50e9d090b55e Author: Robert Nagy AuthorDate: 2023-08-28 12:57:23 +0000 Commit: Robert Nagy CommitDate: 2023-08-28 19:12:50 +0000 www/*chromium: bump _LIBCPP_VERSION check to 160000 and fallback to base::ranges the chromium source tree provides ranges functions so let's use them in case our libcxx is too old PR: 273376 (cherry picked from commit f14f291a6dfea6d167aa9800a5ea05125c4b776f) --- www/chromium/Makefile | 1 + ...__manager_core_browser_ui_passwords__grouper.cc | 25 +++++--------- ..._webauthn_core_browser_passkey__sync__bridge.cc | 38 ++++++++-------------- www/ungoogled-chromium/Makefile | 1 + ...__manager_core_browser_ui_passwords__grouper.cc | 25 +++++--------- ..._webauthn_core_browser_passkey__sync__bridge.cc | 38 ++++++++-------------- 6 files changed, 46 insertions(+), 82 deletions(-) diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 8834d64e6d34..177f8e04424c 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -1,5 +1,6 @@ PORTNAME= chromium PORTVERSION= 116.0.5845.110 +PORTREVISION= 1 CATEGORIES= www wayland MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \ https://nerd.hu/distfiles/:external diff --git a/www/chromium/files/patch-components_password__manager_core_browser_ui_passwords__grouper.cc b/www/chromium/files/patch-components_password__manager_core_browser_ui_passwords__grouper.cc index 21710d467d67..2fc39b9c22df 100644 --- a/www/chromium/files/patch-components_password__manager_core_browser_ui_passwords__grouper.cc +++ b/www/chromium/files/patch-components_password__manager_core_browser_ui_passwords__grouper.cc @@ -1,21 +1,14 @@ ---- components/password_manager/core/browser/ui/passwords_grouper.cc.orig 2023-08-17 12:40:56 UTC +--- components/password_manager/core/browser/ui/passwords_grouper.cc.orig 2023-08-28 12:53:33 UTC +++ components/password_manager/core/browser/ui/passwords_grouper.cc -@@ -399,6 +399,7 @@ absl::optional PasswordsGrouper::Ge - if (group_id_iterator == map_signon_realm_to_group_id_.end()) { - return absl::nullopt; - } -+#if BUILDFLAG(IS_OPENBSD) || (BUILDFLAG(IS_FREEBSD) && (_LIBCPP_VERSION > 15000)) - // Find the passkey in the group. +@@ -403,7 +403,11 @@ absl::optional PasswordsGrouper::Ge const std::vector& passkeys = map_group_id_to_credentials_[group_id_iterator->second].passkeys; -@@ -410,6 +411,10 @@ absl::optional PasswordsGrouper::Ge - return absl::nullopt; - } - return *passkey_it; + const auto passkey_it = ++#if (_LIBCPP_VERSION >= 160000) + std::ranges::find_if(passkeys, [&credential](const auto& passkey) { +#else -+ LOG(ERROR) << "Unable to lookup in password group"; -+ return absl::nullopt; ++ base::ranges::find_if(passkeys, [&credential](const auto& passkey) { +#endif - } - - void PasswordsGrouper::ClearCache() { + return credential.passkey_credential_id == passkey.credential_id(); + }); + if (passkey_it == passkeys.end()) { diff --git a/www/chromium/files/patch-components_webauthn_core_browser_passkey__sync__bridge.cc b/www/chromium/files/patch-components_webauthn_core_browser_passkey__sync__bridge.cc index 3706546c7e46..6ce03fae477d 100644 --- a/www/chromium/files/patch-components_webauthn_core_browser_passkey__sync__bridge.cc +++ b/www/chromium/files/patch-components_webauthn_core_browser_passkey__sync__bridge.cc @@ -1,38 +1,26 @@ ---- components/webauthn/core/browser/passkey_sync_bridge.cc.orig 2023-08-17 12:40:56 UTC +--- components/webauthn/core/browser/passkey_sync_bridge.cc.orig 2023-08-28 12:53:33 UTC +++ components/webauthn/core/browser/passkey_sync_bridge.cc -@@ -267,6 +267,7 @@ PasskeySyncBridge::GetAllPasskeys() const { - +@@ -268,7 +268,11 @@ PasskeySyncBridge::GetAllPasskeys() const { bool PasskeySyncBridge::DeletePasskey(const std::string& credential_id) { // Find the credential with the given |credential_id|. -+#if BUILDFLAG(IS_OPENBSD) || (BUILDFLAG(IS_FREEBSD) && (_LIBCPP_VERSION > 15000)) const auto passkey_it = ++#if (_LIBCPP_VERSION >= 160000) std::ranges::find_if(data_, [&credential_id](const auto& passkey) { - return passkey.second.credential_id() == credential_id; -@@ -313,11 +314,16 @@ bool PasskeySyncBridge::DeletePasskey(const std::strin - weak_ptr_factory_.GetWeakPtr())); - NotifyPasskeysChanged(); - return true; +#else -+ LOG(ERROR) << "Unable to delete passkey"; -+ return false; ++ base::ranges::find_if(data_, [&credential_id](const auto& passkey) { +#endif - } - - bool PasskeySyncBridge::UpdatePasskey(const std::string& credential_id, + return passkey.second.credential_id() == credential_id; + }); + if (passkey_it == data_.end()) { +@@ -319,7 +323,11 @@ bool PasskeySyncBridge::UpdatePasskey(const std::strin PasskeyChange change) { // Find the credential with the given |credential_id|. -+#if BUILDFLAG(IS_OPENBSD) || (BUILDFLAG(IS_FREEBSD) && (_LIBCPP_VERSION > 15000)) const auto passkey_it = ++#if (_LIBCPP_VERSION >= 160000) std::ranges::find_if(data_, [&credential_id](const auto& passkey) { - return passkey.second.credential_id() == credential_id; -@@ -341,6 +347,10 @@ bool PasskeySyncBridge::UpdatePasskey(const std::strin - weak_ptr_factory_.GetWeakPtr())); - NotifyPasskeysChanged(); - return true; +#else -+ LOG(ERROR) << "Unable to update passkey"; -+ return false; ++ base::ranges::find_if(data_, [&credential_id](const auto& passkey) { +#endif - } - - std::string PasskeySyncBridge::AddNewPasskeyForTesting( + return passkey.second.credential_id() == credential_id; + }); + if (passkey_it == data_.end()) { diff --git a/www/ungoogled-chromium/Makefile b/www/ungoogled-chromium/Makefile index 4adaf4d40cfb..d897a238693d 100644 --- a/www/ungoogled-chromium/Makefile +++ b/www/ungoogled-chromium/Makefile @@ -1,6 +1,7 @@ PORTNAME= ungoogled-chromium PORTVERSION= 116.0.5845.110 UGVERSION= ${DISTVERSION}-1 +PORTREVISION= 1 CATEGORIES= www wayland MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \ https://nerd.hu/distfiles/:external diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_ui_passwords__grouper.cc b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_ui_passwords__grouper.cc index 07062ea679a4..2fc39b9c22df 100644 --- a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_ui_passwords__grouper.cc +++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_ui_passwords__grouper.cc @@ -1,21 +1,14 @@ ---- components/password_manager/core/browser/ui/passwords_grouper.cc.orig 2023-08-18 10:26:52 UTC +--- components/password_manager/core/browser/ui/passwords_grouper.cc.orig 2023-08-28 12:53:33 UTC +++ components/password_manager/core/browser/ui/passwords_grouper.cc -@@ -399,6 +399,7 @@ absl::optional PasswordsGrouper::Ge - if (group_id_iterator == map_signon_realm_to_group_id_.end()) { - return absl::nullopt; - } -+#if BUILDFLAG(IS_OPENBSD) || (BUILDFLAG(IS_FREEBSD) && (_LIBCPP_VERSION > 15000)) - // Find the passkey in the group. +@@ -403,7 +403,11 @@ absl::optional PasswordsGrouper::Ge const std::vector& passkeys = map_group_id_to_credentials_[group_id_iterator->second].passkeys; -@@ -410,6 +411,10 @@ absl::optional PasswordsGrouper::Ge - return absl::nullopt; - } - return *passkey_it; + const auto passkey_it = ++#if (_LIBCPP_VERSION >= 160000) + std::ranges::find_if(passkeys, [&credential](const auto& passkey) { +#else -+ LOG(ERROR) << "Unable to lookup in password group"; -+ return absl::nullopt; ++ base::ranges::find_if(passkeys, [&credential](const auto& passkey) { +#endif - } - - void PasswordsGrouper::ClearCache() { + return credential.passkey_credential_id == passkey.credential_id(); + }); + if (passkey_it == passkeys.end()) { diff --git a/www/ungoogled-chromium/files/patch-components_webauthn_core_browser_passkey__sync__bridge.cc b/www/ungoogled-chromium/files/patch-components_webauthn_core_browser_passkey__sync__bridge.cc index 1c2426b02813..6ce03fae477d 100644 --- a/www/ungoogled-chromium/files/patch-components_webauthn_core_browser_passkey__sync__bridge.cc +++ b/www/ungoogled-chromium/files/patch-components_webauthn_core_browser_passkey__sync__bridge.cc @@ -1,38 +1,26 @@ ---- components/webauthn/core/browser/passkey_sync_bridge.cc.orig 2023-08-18 10:26:52 UTC +--- components/webauthn/core/browser/passkey_sync_bridge.cc.orig 2023-08-28 12:53:33 UTC +++ components/webauthn/core/browser/passkey_sync_bridge.cc -@@ -267,6 +267,7 @@ PasskeySyncBridge::GetAllPasskeys() const { - +@@ -268,7 +268,11 @@ PasskeySyncBridge::GetAllPasskeys() const { bool PasskeySyncBridge::DeletePasskey(const std::string& credential_id) { // Find the credential with the given |credential_id|. -+#if BUILDFLAG(IS_OPENBSD) || (BUILDFLAG(IS_FREEBSD) && (_LIBCPP_VERSION > 15000)) const auto passkey_it = ++#if (_LIBCPP_VERSION >= 160000) std::ranges::find_if(data_, [&credential_id](const auto& passkey) { - return passkey.second.credential_id() == credential_id; -@@ -313,11 +314,16 @@ bool PasskeySyncBridge::DeletePasskey(const std::strin - weak_ptr_factory_.GetWeakPtr())); - NotifyPasskeysChanged(); - return true; +#else -+ LOG(ERROR) << "Unable to delete passkey"; -+ return false; ++ base::ranges::find_if(data_, [&credential_id](const auto& passkey) { +#endif - } - - bool PasskeySyncBridge::UpdatePasskey(const std::string& credential_id, + return passkey.second.credential_id() == credential_id; + }); + if (passkey_it == data_.end()) { +@@ -319,7 +323,11 @@ bool PasskeySyncBridge::UpdatePasskey(const std::strin PasskeyChange change) { // Find the credential with the given |credential_id|. -+#if BUILDFLAG(IS_OPENBSD) || (BUILDFLAG(IS_FREEBSD) && (_LIBCPP_VERSION > 15000)) const auto passkey_it = ++#if (_LIBCPP_VERSION >= 160000) std::ranges::find_if(data_, [&credential_id](const auto& passkey) { - return passkey.second.credential_id() == credential_id; -@@ -341,6 +347,10 @@ bool PasskeySyncBridge::UpdatePasskey(const std::strin - weak_ptr_factory_.GetWeakPtr())); - NotifyPasskeysChanged(); - return true; +#else -+ LOG(ERROR) << "Unable to update passkey"; -+ return false; ++ base::ranges::find_if(data_, [&credential_id](const auto& passkey) { +#endif - } - - std::string PasskeySyncBridge::AddNewPasskeyForTesting( + return passkey.second.credential_id() == credential_id; + }); + if (passkey_it == data_.end()) {