From nobody Sun Sep 04 12:19:07 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 4ML9gH49QHz4bX89; Sun, 4 Sep 2022 12:19:07 +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 4ML9gH3fTRz3S7Z; Sun, 4 Sep 2022 12:19:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662293947; 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=//65BaRGV8HiCXtdVDjgVUtlaaQvDFBs5FOXnn+H+9I=; b=qJ0AYb1pUIirqVwCN4aM5v4i/5FPwFx0XsfO0VvsCsRVAu40K2A5N3f+PK2pktc6C0UP/v 4RPHf9g40CXbGjHohQCBDsYQsAzbVYr7qKa3aUpMnCWDf4Pl4qIjbkHEbfFNmK/NhW9scy q6UdSQBOqNu6WbKObmYB/yo/HCHwJQFgMuk/TF7s255/AdH1mGu/vhAWuY2rZuxQoREIIY QcCh/K5FQrkVOfbGNzT6S2Aq5x2e2WklQXrkvRdpUiU96olQdDM8E+Z5XRLybG4mDFZ+OS AWmc4tF6vovMN4oxBQRN6QbpAclT0VGMIL51Z7Nx194mzrvBQC/tq+DjcVsSIw== 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 4ML9gH2bnSzTQQ; Sun, 4 Sep 2022 12:19:07 +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 284CJ7Yu011169; Sun, 4 Sep 2022 12:19:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 284CJ7Bc011168; Sun, 4 Sep 2022 12:19:07 GMT (envelope-from git) Date: Sun, 4 Sep 2022 12:19:07 GMT Message-Id: <202209041219.284CJ7Bc011168@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: 88b6e6aa0e0b - main - www/chromium: unbreak on arm64 by not using linux specific code 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: 88b6e6aa0e0b975f15090950736b9a6a9cb5e58d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662293947; 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=//65BaRGV8HiCXtdVDjgVUtlaaQvDFBs5FOXnn+H+9I=; b=DIOijRjSXVLtCZas+4uPKAOTGRpqowaB0zFzPFbx4uSzEpcLykJ1LaaS9qrf40VPIzKyGY ycTfkP95RKiTodMJIm7XLkFj2t1KVO+wRFljYYftUV/Q71zfl0nwbl2QzExNG1jrtGeKXi SMKXDSij0ySQQhvKnVSm5y20fadUySkxAp8+9pCgZ4lwISd+iFtdNQlXcf4DkXyze9EpMK dmLmAdnhX6lsNQk5OdTK5JICmOXhuEqzyvHt4Tz84g+J9aYLXGnck1q8Rc4NAiUvjGi7Eu x3TF0l4/MijUnWBjBGyN628LnVkn2+p1BbA7Zkh3k+c7yj9CB7CwHSw2Lgtxfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662293947; a=rsa-sha256; cv=none; b=MppndUcadMHinYToKL3kv9anwWrXX6dx6GYFCCRTLqZrQGhWPMsqTRrIxaNMLncBh44SJ/ sz4ZYG8m2UkO/HyDX+0VojrOLUGO0A5EY8YAblGtriv78xV5TUmmFh5d78w0PQ22JTY5zK ycgvlfT3/db2TucBO7NkPspmFCdzZfrcYYmPWitxdjNj4svgaVSXhQGTnJuIM0X2YcIEXX Es7t4ijUX8WduhjH5uQSaLMlEu1ELGyWPT5yKIf7GZyAZXGNmv9VaUq+AFm6UFxGBujuzs WnuROrwp6Vf8tOSQC4vKDQnajlLv/QcY9NJAz6Lfdg9vwycf+qFtCiIvFv37lg== 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=88b6e6aa0e0b975f15090950736b9a6a9cb5e58d commit 88b6e6aa0e0b975f15090950736b9a6a9cb5e58d Author: Robert Nagy AuthorDate: 2022-09-04 11:58:11 +0000 Commit: Rene Ladan CommitDate: 2022-09-04 12:18:37 +0000 www/chromium: unbreak on arm64 by not using linux specific code --- .../files/patch-third__party_lzma__sdk_C_CpuArch.c | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/www/chromium/files/patch-third__party_lzma__sdk_C_CpuArch.c b/www/chromium/files/patch-third__party_lzma__sdk_C_CpuArch.c new file mode 100644 index 000000000000..e5faa231f03f --- /dev/null +++ b/www/chromium/files/patch-third__party_lzma__sdk_C_CpuArch.c @@ -0,0 +1,44 @@ +--- third_party/lzma_sdk/C/CpuArch.c.orig 2022-09-04 11:56:14 UTC ++++ third_party/lzma_sdk/C/CpuArch.c +@@ -412,12 +412,40 @@ BoolInt CPU_IsSupported_SHA1(void) { return APPLE_CRYP + BoolInt CPU_IsSupported_SHA2(void) { return APPLE_CRYPTO_SUPPORT_VAL; } + BoolInt CPU_IsSupported_AES (void) { return APPLE_CRYPTO_SUPPORT_VAL; } + ++#elif defined(__OpenBSD__) + ++#include ++#include ++#include ++#include ++ ++BoolInt CPU_IsSupported_NEON() { return 1; } ++ ++#define MY_HWCAP_CHECK_FUNC_2(name1, name2) \ ++ BoolInt CPU_IsSupported_ ## name1() { \ ++ int isar0_mib[] = { CTL_MACHDEP, CPU_ID_AA64ISAR0 }; \ ++ size_t len = sizeof(uint64_t); \ ++ uint64_t cpu_id = 0; \ ++ if (sysctl(isar0_mib, 2, &cpu_id, &len, NULL, 0) < 0) \ ++ return 0; \ ++ if (ID_AA64ISAR0_ ## name2(cpu_id) >= ID_AA64ISAR0_## name2 ##_BASE) \ ++ return 1; \ ++ return 0; \ ++ } ++ ++#define MY_HWCAP_CHECK_FUNC(name) \ ++ MY_HWCAP_CHECK_FUNC_2(name, name) ++ ++MY_HWCAP_CHECK_FUNC (CRC32) ++MY_HWCAP_CHECK_FUNC (SHA1) ++MY_HWCAP_CHECK_FUNC (SHA2) ++MY_HWCAP_CHECK_FUNC (AES) ++ + #else // __APPLE__ + + #include + +-#if !defined(ARMV8_OS_FUCHSIA) ++#if !defined(ARMV8_OS_FUCHSIA) && !defined(__FreeBSD__) + #define USE_HWCAP + #endif // !defined(ARMV8_OS_FUCHSIA) +