From nobody Mon Jun 27 13:50:36 2022 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 565B887B3B6; Mon, 27 Jun 2022 13:50:36 +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 4LWpyh22W4z3qFq; Mon, 27 Jun 2022 13:50:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656337836; 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=slZFzxlOsdwaS/qhOLHG0OPeVkOABWzqtkWh9d2P6a8=; b=p+ZOeg0jUvw4RBFytln9MPEyhMZBg9MusQUZ+waME6YS3LQP98TqeAnnsn6Y5p31XA8jMj H6xnRnHSC8C/0RoeCc9ori+GXHn9ZhZZlA3od5o6vPficQzmge+zEiey+5S9hJBVpizsYQ ueyTYAqivzaYfiCrnR9L8bzNetlklFlNk7REc1rmtSlPzi/o8pR6PDbaMj5wjEaRnrn4P8 va70HUAUn++8vPgL5R3eHu0EpbGXw/Mjr0HAr6EzZgqKgw8XKBnBWTOzcq4rUh9FYMn/Lf C+lPEwLiA0BJDLt+Y05bp9y4nt4l9MjaOxF3krsU9fw+W3hU/C8epEgSRWGcPQ== 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 25EDD141C; Mon, 27 Jun 2022 13:50:36 +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 25RDoaAi053349; Mon, 27 Jun 2022 13:50:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25RDoaqK053348; Mon, 27 Jun 2022 13:50:36 GMT (envelope-from git) Date: Mon, 27 Jun 2022 13:50:36 GMT Message-Id: <202206271350.25RDoaqK053348@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: d52b25cffa1b - main - devel/electron17: fix build on arm64 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: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d52b25cffa1be6d7730b595c392bf9bcdedf5f1b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656337836; 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=slZFzxlOsdwaS/qhOLHG0OPeVkOABWzqtkWh9d2P6a8=; b=HO+hqy1Ll8LT1fPe29pymCC99ZvFMTR3WruF8IKEgizw+8HOiGwY2ORG/S0VAm6cfZDNq7 uilAXMiVZ8RIPiKzgh2ND4A7sqWFHY+Nem6lM72b4vv9V4P8yFHMrftBNM7QaZJdnY9mS6 fWwIzztPbk7CS2e7zU/jRtqBQ6rcGAPljDhiS1KiN2QZh03wSontfJmr/Z9H810COEA0pX UOBYnv2qPZWGrvnW0KGvshPh7Lc5sqWkDaz6LDJSnzgZvK+HfwHMPk+19eLo7UK24mttBa bS+KpyJp9DzZkhvrjqBOX8yiZGFIzhxR3rtvypTaYy9p+eBOoJBCX87wJxgj1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656337836; a=rsa-sha256; cv=none; b=hVYbfA3UlJN5Qi1nJFA4o/ZSVlk8wO4g+OKUn2MtkPuwRcS5v/125toTDz1ZTI2mlS6IF3 Hx8b0yMmPcUjPvykfRVFhA8kIaqUm2zu8jXUMPSA14b1G6VerlBEHObBu4saMLVH6OXZU+ a9Nvdv3VGMlsTBuwcXQIFhw5EDbeqEzHdHW89HIuDlfJfFZXbptWlp3GIoUkFyZIqHWe1A /OgLSJhAQUKmzF7jribBukP1ZMrNZhvSpENNse5rhUgUpPKVP5shguzMoEbMEeYWIk198X uLnE99QhqsGczuBz1fkdglNUUSLOqUnUm9k+EajSc5AgJIH3zi+MlFra7X9SWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=d52b25cffa1be6d7730b595c392bf9bcdedf5f1b commit d52b25cffa1be6d7730b595c392bf9bcdedf5f1b Author: Hiroki Tagato AuthorDate: 2022-06-27 13:47:58 +0000 Commit: Hiroki Tagato CommitDate: 2022-06-27 13:50:29 +0000 devel/electron17: fix build on arm64 Obtained from: https://cgit.freebsd.org/ports/diff/www/chromium/files/patch-third__party_skia_src_core_SkCpu.cpp?id=229eae94451f1213d3fc5d2198728d0a909d43f6 --- .../patch-third__party_skia_src_core_SkCpu.cpp | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/devel/electron17/files/patch-third__party_skia_src_core_SkCpu.cpp b/devel/electron17/files/patch-third__party_skia_src_core_SkCpu.cpp new file mode 100644 index 000000000000..cff64790931c --- /dev/null +++ b/devel/electron17/files/patch-third__party_skia_src_core_SkCpu.cpp @@ -0,0 +1,26 @@ +--- third_party/skia/src/core/SkCpu.cpp.orig 2022-05-11 07:06:58 UTC ++++ third_party/skia/src/core/SkCpu.cpp +@@ -73,6 +73,23 @@ + return features; + } + ++#elif defined(SK_CPU_ARM64) && defined(__FreeBSD__) ++ #include ++ #ifndef ID_AA64ISAR0_CRC32_VAL ++ #define ID_AA64ISAR0_CRC32_VAL ID_AA64ISAR0_CRC32 ++ #endif ++ ++ static uint32_t read_cpu_features() { ++ uint32_t features = 0; ++ uint64_t id_aa64isar0; ++ ++ id_aa64isar0 = READ_SPECIALREG(id_aa64isar0_el1); ++ if (ID_AA64ISAR0_CRC32_VAL(id_aa64isar0) == ID_AA64ISAR0_CRC32_BASE) { ++ features |= SkCpu::CRC32; ++ } ++ return features; ++ } ++ + #elif defined(SK_CPU_ARM64) && __has_include() + #include +