From nobody Mon Jan 8 21:10:27 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 4T86Cl31K3z56pCP; Mon, 8 Jan 2024 21:10:27 +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 4T86Cl2NMHz4gKj; Mon, 8 Jan 2024 21:10:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704748227; 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=CjYXf128Gm33DVUR8A9YSnWPyMBs/kCd62UtHrFXVeY=; b=QQaCWApUkzcYryRxfBKMq1JYlyD+rOnMEUUgshaqFpg/VlS6ekiFHPu9jsK/woDcKio6XP xLT7334rXZ27fYFBULOZ3VmX8i+aJxe5uwamb0X3qaqbOvP1k6W8routuO9nWb7Witlu2j LX26uVUN+kapVFh7f2IdnEKrfsO+BJCs3gGGuOfdKNsMgEelp8zmBX+UUvsncOLFkbHrMg 7vQITC9g+3sJ5e0N9cjrNnlUBxCi3IHV70MnxffVxRBWXC/ovGpsk+NEUephyVdySBwuZa MdVmzP8Cqc/8UI+RGOELdn2ae4C7Xj/nVNW+dKB0e8VLAI/Vg6q8tpaVUAgaEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704748227; 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=CjYXf128Gm33DVUR8A9YSnWPyMBs/kCd62UtHrFXVeY=; b=K2ZN7MAlYt9nu5ApkFLFseB6FOY6llTdr7gfzvSBHR4oEA8UmhOt3bJ3L4Vg1a8zpKXxjP ZG5QNvODmKzKB8MET0EuBcSdV0+ASGsHr3GdoC2vF7hoHJzMnz1GtP8RwSOwxF1N+NiXX6 v0LCUNziIpAK7Qob+Yh3pF788zmotojRho6gBcjAattyudZKRZvbYSGYpJmyjysvJ0V6To wIWR4ErzwkxuZuD29lh25CXZ84Hli6Rat5xPqVS/sBSR6BB800pajEg0RgiXYzVzFUPnKX Kck2wkG3F3FAUg6YUaajfzssO2rIvKG008Djjngr03a2e6ECq6GPtPx0Kcd1wA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704748227; a=rsa-sha256; cv=none; b=fIUHtnNYxhO6NfQgoDm0NN10K0A+AtQ7JKDbrBRdqmeVhxJ89XuLr3XTYJz4CXSEX1sETm wOxeamm2D/MZDc7gZg8kBB2sTLQv8w8WP6hxxA96MJy1+GlhlrWF9Lil8au/18vvTy9zs6 bqCDuKtmq22udXVBLQ+LfuQu7xaticlFHIrCBSS4C3UIYZxaGPlivHkRp5s3x5wWOM/eu9 CMl3cN0QBGLe70zTl/HWUIM6xFq7hH3GItbGuEoj1hKc6xaUd/A7bnM05Ldv84rdnc+xfs yWCw6H6ta8t+pDi+StYAVmEgnIDde5B4nojxvt+izjor61PWfVh6GSadrO3TiQ== 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 4T86Cl1SJKzNQ5; Mon, 8 Jan 2024 21:10:27 +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 408LARkn083998; Mon, 8 Jan 2024 21:10:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 408LAR1X083996; Mon, 8 Jan 2024 21:10:27 GMT (envelope-from git) Date: Mon, 8 Jan 2024 21:10:27 GMT Message-Id: <202401082110.408LAR1X083996@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: 17f1fa192c2b - 2024Q1 - www/*chromium: unbreak arm64 by implementing the missing cpudetect code 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/2024Q1 X-Git-Reftype: branch X-Git-Commit: 17f1fa192c2b5109c76b8ea53590d6ff0f3f186b Auto-Submitted: auto-generated The branch 2024Q1 has been updated by rnagy: URL: https://cgit.FreeBSD.org/ports/commit/?id=17f1fa192c2b5109c76b8ea53590d6ff0f3f186b commit 17f1fa192c2b5109c76b8ea53590d6ff0f3f186b Author: Robert Nagy AuthorDate: 2024-01-08 21:09:10 +0000 Commit: Robert Nagy CommitDate: 2024-01-08 21:10:22 +0000 www/*chromium: unbreak arm64 by implementing the missing cpudetect code (cherry picked from commit 5d97e86feed90c9cf5fc79449740308bf86cd692) --- ...vpx_source_libvpx_vpx__ports_aarch64__cpudetect.c | 20 ++++++++++++++++++++ ...vpx_source_libvpx_vpx__ports_aarch64__cpudetect.c | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/www/chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c b/www/chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c new file mode 100644 index 000000000000..92163a805c0c --- /dev/null +++ b/www/chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c @@ -0,0 +1,20 @@ +--- third_party/libvpx/source/libvpx/vpx_ports/aarch64_cpudetect.c.orig 2024-01-08 12:52:53 UTC ++++ third_party/libvpx/source/libvpx/vpx_ports/aarch64_cpudetect.c +@@ -153,7 +153,16 @@ static int arm_get_cpu_caps(void) { + return flags; + } + +-#else // end __Fuchsia__ ++#elif defined(__FreeBSD__) // end __Fuchsia__ ++ ++int arm_get_cpu_caps(void) { ++ int flags = 0; ++#if HAVE_NEON ++ flags |= HAS_NEON; // Neon is mandatory in Armv8.0-A. ++#endif // HAVE_NEON ++ return flags; ++} ++#else // end __FreeBSD__ + #error \ + "Runtime CPU detection selected, but no CPU detection method available" \ + "for your platform. Rerun configure with --disable-runtime-cpu-detect." diff --git a/www/ungoogled-chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c b/www/ungoogled-chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c new file mode 100644 index 000000000000..92163a805c0c --- /dev/null +++ b/www/ungoogled-chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c @@ -0,0 +1,20 @@ +--- third_party/libvpx/source/libvpx/vpx_ports/aarch64_cpudetect.c.orig 2024-01-08 12:52:53 UTC ++++ third_party/libvpx/source/libvpx/vpx_ports/aarch64_cpudetect.c +@@ -153,7 +153,16 @@ static int arm_get_cpu_caps(void) { + return flags; + } + +-#else // end __Fuchsia__ ++#elif defined(__FreeBSD__) // end __Fuchsia__ ++ ++int arm_get_cpu_caps(void) { ++ int flags = 0; ++#if HAVE_NEON ++ flags |= HAS_NEON; // Neon is mandatory in Armv8.0-A. ++#endif // HAVE_NEON ++ return flags; ++} ++#else // end __FreeBSD__ + #error \ + "Runtime CPU detection selected, but no CPU detection method available" \ + "for your platform. Rerun configure with --disable-runtime-cpu-detect."