From nobody Thu Aug 24 14:53:25 2023 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 4RWmKx5XPwz4rGGC; Thu, 24 Aug 2023 14:53:25 +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 4RWmKx52r6z4J8P; Thu, 24 Aug 2023 14:53:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692888805; 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=EzCXpnVsFiEmkNSGYt5HnNumLTILqW/5/2YL8ULtbSM=; b=KMcV1QOHDmhr8Q0ejb9oGGFiOWgtRKl+gTQlNQp09RKe9DqHZjRTuqBVNP1y9M36YNDZ2A ocu1vlF5vFSbL3xmVwwfmaN0en1JTJAB8Fqs7pYPFDY0OOQ1myuqyhc3tZPIDHQz8q6E8r Io1EkR6ezUrGbG45CuVEUqiniAxmxz1l3dLjQlqiFjqOkP2Izmw6DfJ3J8Ozn+1+5nlPW/ +Oja5PgS1W/ZrXn7VjaRriZoIS87KBuvYsrOjoL5urp+iHIrVuHI7a3ltKtHJ5Mk2iP4n7 atpBzK5Y53Or5SZx/9zzZE3PkwvMK1tNISGJfU9GW1AiP68GA9skmsSH75Y+cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692888805; 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=EzCXpnVsFiEmkNSGYt5HnNumLTILqW/5/2YL8ULtbSM=; b=RAY2HFM9j/LiyTJVsKYluDoLiKkgTCGCxJBTVJ3MZIyB/V+EYygY/f92ckzGS/o6xr+N56 mDnm3DNloZeROJDYnjgGH+peDu+kUv8+gLBfYvJOCtoz9vSAjC6evk4k804zOZc0VOASBl +Sxj/LcD38mMysxlmtWz5lweR4IZAFmB7G+Am7RNl6uPbiq7duyV8pRHp8q35afFGQPviV ej0PMdRTSB8o9KAUsQgecQiD408bVW6kAXYscKpDQVEgqU+z+YBsl3YH4PdHZ+kXrau3WI NvQj5JaAzh75ubOFi1qj5ceG6x8ux0hDnatUHJ1NM09KDSNlkE9g1uINexMJ6w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692888805; a=rsa-sha256; cv=none; b=K09tN3a3TavAbx3CFEx6YKM2D2uRNTReanRSCulgu0BO63X9g9k8otC4DNcPGI0PkYAXKA muPSO5LJXN0EtnU/ZWztWH+whpE3thMWmWgFSZhqqo0Ub+5YQ35sIcu+HA68rRglcF81f/ q6PKoO16kL4zXapwSsOEqOhvoCEfenZ4cgr6KZ7lJDM/UbtxuYN9yTkNweuMGdd2owgjxt pLQVZGBb1TJBkxHkkmp3bfkc5+X/P2LZLOotKf37TMLoWGr2alI2f86CRQ01tn1MAt71o1 CHW92MVOTAxcmaHfM45UwJmQcQBXdIKh28Z/trqoXl0+FEhyz9nsC5Qo3pSedw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RWmKx4612zWx5; Thu, 24 Aug 2023 14:53:25 +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 37OErPUo044003; Thu, 24 Aug 2023 14:53:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37OErPqg044000; Thu, 24 Aug 2023 14:53:25 GMT (envelope-from git) Date: Thu, 24 Aug 2023 14:53:25 GMT Message-Id: <202308241453.37OErPqg044000@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Nagy Subject: git: ffba5c0cb30d - main - www/*chromium: unbreak build on 12.4; no MFD_CLOEXEC support 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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/main X-Git-Reftype: branch X-Git-Commit: ffba5c0cb30d6daf257013be5293a41db703589c Auto-Submitted: auto-generated The branch main has been updated by rnagy: URL: https://cgit.FreeBSD.org/ports/commit/?id=ffba5c0cb30d6daf257013be5293a41db703589c commit ffba5c0cb30d6daf257013be5293a41db703589c Author: Robert Nagy AuthorDate: 2023-08-24 14:52:10 +0000 Commit: Robert Nagy CommitDate: 2023-08-24 14:53:05 +0000 www/*chromium: unbreak build on 12.4; no MFD_CLOEXEC support PR: 273310 --- ...rm_wayland_host_zwp__text__input__wrapper__v1.cc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc b/www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc new file mode 100644 index 000000000000..133c15793cc2 --- /dev/null +++ b/www/chromium/files/patch-ui_ozone_platform_wayland_host_zwp__text__input__wrapper__v1.cc @@ -0,0 +1,21 @@ +--- ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc.orig 2023-08-24 14:51:50 UTC ++++ ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v1.cc +@@ -224,6 +224,10 @@ void ZWPTextInputWrapperV1::SetSurroundingText( + // so if it exceeds 16 bits, it may be broken. + static constexpr size_t kSizeLimit = 60000; + if (HasAdvancedSurroundingTextSupport() && text.length() > kSizeLimit) { ++#if defined(__FreeBSD_version) && __FreeBSD_version < 1300048 ++ PLOG(ERROR) << "memfd is not supported"; ++ return; ++#else + base::ScopedFD memfd(memfd_create("surrounding_text", MFD_CLOEXEC)); + if (!memfd.get()) { + PLOG(ERROR) << "Failed to create memfd"; +@@ -236,6 +240,7 @@ void ZWPTextInputWrapperV1::SetSurroundingText( + zcr_extended_text_input_v1_set_large_surrounding_text( + extended_obj_.get(), memfd.get(), text.length(), + selection_range.start(), selection_range.end()); ++#endif + } else { + zwp_text_input_v1_set_surrounding_text(obj_.get(), text.c_str(), + selection_range.start(),