From nobody Wed Feb 23 16:53:21 2022 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 7E62E19DE085; Wed, 23 Feb 2022 16:53:21 +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 4K3htn37p4z4qDD; Wed, 23 Feb 2022 16:53:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645635201; 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=Vdb2+ASYgC/lhg7Gh0n8QPEgozY8fYYnh6SPOr1x1y4=; b=oCv3lt7foE58klTA7llLd3XX5C/exDW6ivVfWqimWc5LzGCTeSz1GMB1c6IOBhQS0Jg1rX NScSLBM7kn/JT14NeFZMrSf/Ju582Ge822fmFGJ8u66vy/YI9ccDDvhuCLdvlFi11Qv3nK mll/N11BA9s6BPDapq+Z4imikrjGaPev5/GkWxolJQBdk39oQ98RKQXeoj2+tYmloIit5S nlODjl1WLsB5C8QOqbX/okkGvl1l2RJMMCOZBLGktQOez5V6bpguu2/z4q/z1YYkmqycCe 9RJGo43Q3eQ2Qn6Itxalsqe/KJXO8mtJxyqw5+9tNzq/jcUj6Yki+7nsYJAOHA== 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 4BCED1B928; Wed, 23 Feb 2022 16:53:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21NGrLEv020674; Wed, 23 Feb 2022 16:53:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21NGrLYD020673; Wed, 23 Feb 2022 16:53:21 GMT (envelope-from git) Date: Wed, 23 Feb 2022 16:53:21 GMT Message-Id: <202202231653.21NGrLYD020673@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rene Ladan Subject: git: 2bc6cc38f24d - main - www/chromium: fix MP4 video playback 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: rene X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2bc6cc38f24dd256461df52f2eda7be12b1c28c5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645635201; 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=Vdb2+ASYgC/lhg7Gh0n8QPEgozY8fYYnh6SPOr1x1y4=; b=cLsCh0MASSD8pKKq2DfmGQttJHO+GojweLZjJLVLIfvgbLSaXwGfti95Y8VuO+6XuAhewg pmQ9v7AkNcBxwIpGpQom/ColqBnyvr6+XjqKPN816/OYC4R7yd61Lx1DKNWyclH9uoez9L FWnBLCmRK4qmxDpewcN66bcgZFjFRlY86vg4vxAYoLCaajnVeiss08ICaoLTtS6ZEZBa5m vyMFPcI0DukSF1CT+I2+nC82D8YPqbjQBJ2YIwghyN/77itxdLze4LYI9rFofRIb0oRq4N R9dgMVyG5ck5wObf9hPbCoOhmZINzohM1244yYpEB2Q3XE84dlI3XYrrtjjFbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645635201; a=rsa-sha256; cv=none; b=LuTYw6ZzrpvAO76N1IS5V69YGe7E0lCX+ORYV3GfhPyw5VC8kwxVKxoloB5AaIyon87Nms ki5Nkcue1/2vc9N19+gVOCHDfG+FnHgMcI9gR5+w+Cit7VEH14YQN6Vnj+wX7r1SIwlwL1 u4mh0lUw0nv7pNBOmqWhWijEHY556Kc5azj60ZwjTxeiKuaOS3pJDz+sm6MxYMEjWIboaH IBhDkV7aAazbsoc3gHLHZkvwzvI5MnuNQ8JkNIrdkwj3ULOoGS1IWivuYBp3aEfrKrw3Nq akIIvjc03CX3odyYrMEJ/O9B3fLAKGRHtZhCrvJllaYuOySH++QRX3PUBkTGng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rene: URL: https://cgit.FreeBSD.org/ports/commit/?id=2bc6cc38f24dd256461df52f2eda7be12b1c28c5 commit 2bc6cc38f24dd256461df52f2eda7be12b1c28c5 Author: Robert Nagy AuthorDate: 2022-02-23 16:50:34 +0000 Commit: Rene Ladan CommitDate: 2022-02-23 16:52:31 +0000 www/chromium: fix MP4 video playback PR: 255561 Reported by: patovm04@gmail.com --- www/chromium/Makefile | 1 + ...base_allocator_partition__allocator_page__allocator.h | 11 +++++++++++ ...tition__allocator_page__allocator__internals__posix.h | 16 ++++++++++++++++ 3 files changed, 28 insertions(+) diff --git a/www/chromium/Makefile b/www/chromium/Makefile index d8adb70ae88c..cc137ed98bf4 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -2,6 +2,7 @@ PORTNAME= chromium PORTVERSION= 98.0.4758.102 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \ LOCAL/rene/chromium/:fonts diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator.h b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator.h new file mode 100644 index 000000000000..3d932a28ff32 --- /dev/null +++ b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator.h @@ -0,0 +1,11 @@ +--- base/allocator/partition_allocator/page_allocator.h.orig 2022-02-23 16:08:07 UTC ++++ base/allocator/partition_allocator/page_allocator.h +@@ -170,7 +170,7 @@ BASE_EXPORT void DecommitAndZeroSystemPages(void* addr + // Whether decommitted memory is guaranteed to be zeroed when it is + // recommitted. Do not assume that this will not change over time. + constexpr BASE_EXPORT bool DecommittedMemoryIsAlwaysZeroed() { +-#if defined(OS_APPLE) ++#if defined(OS_APPLE) || defined(OS_BSD) + return false; + #else + return true; diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__internals__posix.h b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__internals__posix.h new file mode 100644 index 000000000000..c5069330b3dd --- /dev/null +++ b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__internals__posix.h @@ -0,0 +1,16 @@ +--- base/allocator/partition_allocator/page_allocator_internals_posix.h.orig 2022-02-23 16:08:07 UTC ++++ base/allocator/partition_allocator/page_allocator_internals_posix.h +@@ -339,8 +339,12 @@ bool TryRecommitSystemPagesInternal( + } + + void DiscardSystemPagesInternal(void* address, size_t length) { +-#if defined(OS_APPLE) ++#if defined(OS_APPLE) || defined(OS_BSD) ++#if defined(OS_BSD) ++ int ret = madvise(address, length, MADV_FREE); ++#else + int ret = madvise(address, length, MADV_FREE_REUSABLE); ++#endif + if (ret) { + // MADV_FREE_REUSABLE sometimes fails, so fall back to MADV_DONTNEED. + ret = madvise(address, length, MADV_DONTNEED);