From nobody Tue Jul 26 15:57:26 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 4LshPf3XHQz4XNjL; Tue, 26 Jul 2022 15:57:26 +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 4LshPf350nz3S8V; Tue, 26 Jul 2022 15:57:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658851046; 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=kZGSfRcWPJvbaF74pI/CJiYc9QrTOqzeiyQxup9qF1s=; b=VzVImc83VeQryOxVYKx257DFrDMYTSoR8msMcxSK8ela5Rzr0xhGKLomFqXCrmqizIgztn aNOP3cBwl6eLW5i/uIGvH9i0VI0CIvJVe4i1Mzj5gyLBUqqUAzKbSnsXxArlH8lUE9hVuB 0o8+x94D5c8ni12kPIIZOioEryEvYOjQYFV65E7Fk095wlyw3FrMHvV9zX6ywGxJGdGRvJ Jg6x+jJC3QHO/a4v5FwD9Fepy3O95ZjPElZFwtsOiHcy+Ct/cOvF7f2g+9EcfMz2v2dcsE AogHL+f+FeCcPMVva0+jX+snQ3tTOd3HIqb4BcHoFc/27sWgvm3o4fLw7EhJ3Q== 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 4LshPf27NhzjD0; Tue, 26 Jul 2022 15:57:26 +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 26QFvQUF033304; Tue, 26 Jul 2022 15:57:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QFvQ6s033303; Tue, 26 Jul 2022 15:57:26 GMT (envelope-from git) Date: Tue, 26 Jul 2022 15:57:26 GMT Message-Id: <202207261557.26QFvQ6s033303@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Sergey A. Osokin" Subject: git: 8f5d3084280d - main - security/boringssl: fix build on armv7 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: osa X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8f5d3084280d550de4eeedddaf47ac4a9d33e6b7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658851046; 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=kZGSfRcWPJvbaF74pI/CJiYc9QrTOqzeiyQxup9qF1s=; b=CvAF24y9qwqNSy8fFJrJDr0aR4aLt+jZlIkJrwinuv4hI/HyssdRMyxQhCKRwKCAhAAw27 /1R9CzCgBeTsnof6TmqqWTFHk3Xhvds2YXH/EHwuh8a+dum2MEqY4cANDGJQesa+9GefaZ 5szZoJBzoVDCTQc3uyTyLFUE/wZRyhSkm3J/L5WX2JovZDO0wYDtTNPnnTTF7ICMjsUoOl e6oPi9K/dm1V3TyIiUbRqrOfYK0M6i4UAx1cJGZoY/mk06/uDXFdOZozNr/u4tM+tsTPft XF5+k9FbDrK/3p1PKIEajq77norf9j0sKzfeB5/hitYVTegqI5nQdJKHaPNAUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658851046; a=rsa-sha256; cv=none; b=torftfwJNwiIsjjJzKfY6ggx39IMI+oMc5u6c+3BGWPmI4CcyCJcZci36otb/0OrakuiEs DcxIiOTiQaAhrpNDVXT6mX4yoOFW3dGtxhhzKM6U+jRd0sfT60xkXUat8bhWJ0cNy7fIAf pFijamPLHx7P5mUX6cP7o5/xSEdIWfQn6Ml8RukumqkVDBrWPYmPWZLhyzm6LzVjw7kC1q eiEHs+Cn8arC8tM2LhKoI5uX2U9cpOk/21iXIwmVxfSBtupN2D/E8tclnZmhB7jJDuJ67h hHcwQAvy7vEXX7dwAn8hWqwJ2fTbs0eLHs8MLq7WRQ9kGsca5dIoBHspVa3jJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by osa: URL: https://cgit.FreeBSD.org/ports/commit/?id=8f5d3084280d550de4eeedddaf47ac4a9d33e6b7 commit 8f5d3084280d550de4eeedddaf47ac4a9d33e6b7 Author: Sergey A. Osokin AuthorDate: 2022-07-26 15:56:17 +0000 Commit: Sergey A. Osokin CommitDate: 2022-07-26 15:57:20 +0000 security/boringssl: fix build on armv7 Bump PORTREVISION. PR: 265440 --- security/boringssl/Makefile | 2 +- .../boringssl/files/patch-crypto_CMakeLists.txt | 14 ++++-- .../files/patch-crypto_cpu__arm__freebsd.c | 55 ++++++++++++++++++++++ 3 files changed, 67 insertions(+), 4 deletions(-) diff --git a/security/boringssl/Makefile b/security/boringssl/Makefile index 1a7f69d7f80e..45ccb2abe6b6 100644 --- a/security/boringssl/Makefile +++ b/security/boringssl/Makefile @@ -1,6 +1,6 @@ PORTNAME= boringssl PORTVERSION= 0.0.0.0.2022.07.25.01 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MAINTAINER= osa@FreeBSD.org diff --git a/security/boringssl/files/patch-crypto_CMakeLists.txt b/security/boringssl/files/patch-crypto_CMakeLists.txt index b32c3e7389fb..6755b7553615 100644 --- a/security/boringssl/files/patch-crypto_CMakeLists.txt +++ b/security/boringssl/files/patch-crypto_CMakeLists.txt @@ -1,6 +1,14 @@ ---- crypto/CMakeLists.txt.orig 2022-01-21 15:36:31 UTC -+++ crypto/CMakeLists.txt -@@ -462,6 +462,7 @@ if(FIPS_DELOCATE OR FIPS_SHARED) +--- crypto/CMakeLists.txt.orig 2022-07-25 14:53:51.000000000 -0400 ++++ crypto/CMakeLists.txt 2022-07-26 11:40:36.847197000 -0400 +@@ -267,6 +267,7 @@ + cpu_aarch64_fuchsia.c + cpu_aarch64_linux.c + cpu_aarch64_win.c ++ cpu_arm_freebsd.c + cpu_arm_linux.c + cpu_arm.c + cpu_intel.c +@@ -464,6 +465,7 @@ endif() SET_TARGET_PROPERTIES(crypto PROPERTIES LINKER_LANGUAGE C) diff --git a/security/boringssl/files/patch-crypto_cpu__arm__freebsd.c b/security/boringssl/files/patch-crypto_cpu__arm__freebsd.c new file mode 100644 index 000000000000..eab921b971a7 --- /dev/null +++ b/security/boringssl/files/patch-crypto_cpu__arm__freebsd.c @@ -0,0 +1,55 @@ +--- crypto/cpu_arm_freebsd.c.orig 2022-07-24 00:49:45 UTC ++++ crypto/cpu_arm_freebsd.c +@@ -0,0 +1,52 @@ ++/* Copyright (c) 2016, Google Inc. ++ * ++ * Permission to use, copy, modify, and/or distribute this software for any ++ * purpose with or without fee is hereby granted, provided that the above ++ * copyright notice and this permission notice appear in all copies. ++ * ++ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ++ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ++ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY ++ * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ++ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION ++ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN ++ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ ++ ++#include "internal.h" ++ ++#if defined(OPENSSL_ARM) && defined(OPENSSL_FREEBSD) && \ ++ !defined(OPENSSL_STATIC_ARMCAP) ++#include ++#include ++ ++#include ++#include ++ ++extern uint32_t OPENSSL_armcap_P; ++ ++void OPENSSL_cpuid_setup(void) { ++ unsigned long hwcap = 0, hwcap2 = 0; ++ ++ elf_aux_info(AT_HWCAP, &hwcap, sizeof hwcap); ++ elf_aux_info(AT_HWCAP2, &hwcap2, sizeof hwcap2); ++ ++ // Matching OpenSSL, only report other features if NEON is present. ++ if (hwcap & HWCAP_NEON) { ++ OPENSSL_armcap_P |= ARMV7_NEON; ++ ++ if (hwcap2 & HWCAP2_AES) { ++ OPENSSL_armcap_P |= ARMV8_AES; ++ } ++ if (hwcap2 & HWCAP2_PMULL) { ++ OPENSSL_armcap_P |= ARMV8_PMULL; ++ } ++ if (hwcap2 & HWCAP2_SHA1) { ++ OPENSSL_armcap_P |= ARMV8_SHA1; ++ } ++ if (hwcap2 & HWCAP2_SHA2) { ++ OPENSSL_armcap_P |= ARMV8_SHA256; ++ } ++ } ++} ++ ++#endif // OPENSSL_ARM && OPENSSL_OPENBSD && !OPENSSL_STATIC_ARMCAP