From nobody Mon Jul 25 09:27:53 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 4Lrvpd4xbKz4WyWy; Mon, 25 Jul 2022 09:27:53 +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 4Lrvpd4Sz3z3vkB; Mon, 25 Jul 2022 09:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658741273; 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=ALibwo4rLEAJ2zY4uenh/IShE6Lup15sirVMkKyVkgk=; b=CbaRz1buthIkMBpWdRAQ6HeCvkhrNCnoJPGt/Gp3hAyP/1lz+wnSJr5MaOE6SBGtMcEsGV gD6JzLfdSjaMv+9Hy4c10xQ3w9M15meYgxorKwPONRSADZR6tUZ3La39QGZ+Bw3Rq0Vg+C 2gDbgE6SpChPEOcGNAgPygFp1mgvijcDeNWyDoAU6nDND3VBw5shA9EW2ZbUv+SSklwGQx DN8C7EjRAAn7ralJVx9o/oWwR6hJwvIHX0f5YyVW7FhPYZ8koIUWkzEWXXQ69dwxNMnpmZ 1+RqpuvXIxOL1PYQz2T1h5q5xwgI2B3eyyg4TBCRJv5WfJNblN2jTkZOtsXDig== 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 4Lrvpd3XVNzs3j; Mon, 25 Jul 2022 09:27:53 +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 26P9Rr71056311; Mon, 25 Jul 2022 09:27:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26P9RrYM056310; Mon, 25 Jul 2022 09:27:53 GMT (envelope-from git) Date: Mon, 25 Jul 2022 09:27:53 GMT Message-Id: <202207250927.26P9RrYM056310@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: f08b67611f0b - main - devel/py-awscrt: fix build on powerpc64le 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: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f08b67611f0b19c0ee8d9053ee4d22e09b03f2b1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658741273; 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=ALibwo4rLEAJ2zY4uenh/IShE6Lup15sirVMkKyVkgk=; b=Ge7VNXwgQfFCr7e3JoVDWNtCSX4PDM/SAulTnJDPacgeYU66iANV3g2V6i/5Kbq6Z6U8Ed YGmAw/Vhidan76aZICgkdjwrJhjM1jTLdcPWVywbo7MLP72px69QWMu/Kwu+7T7wcyxlRL wtuLlTQmVRUPisEqceziOCke/JI7DIxFvEc8BNeQuCVsCiNlGqy21eTIcVLxLLSaKJEgEV BDyRKtPAzbeKjmi6obUz/RyF/MVHxT3iymRaoETq2+WPA0rbiLFFNXGQcoy4b9nktKCXeq x/gImfuA97LZZB45AokSDEobb3709p5YbXDGnMyIgfsV6QPBc+C3Mm0+oEDB3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658741273; a=rsa-sha256; cv=none; b=il22F7zmdhMm3m1IOK1Cqv4/OAsN1HM8B1datbpgzQqH1uZtGkYAC3L6N7uc+QZXfSpNwG lbFOe7W8W2uZk+K6KN1kVv1E9BRxGG4ALpKE+ypTVV1wpLpjBuUQmZPwT/HI/Pz6S0AM1a r0zZd2Qo8MFCjwpazjHl0vGiZpTur3GSDWtRMLKjn67S/vBzw7Rzd1kkvD+C2/S89Ay4U2 KTVi2KHe+8WX7Crm6cVxZX2S/yn7DmqXVVUq6soSbpS5UM3oOBRvWBuPyoQAmAfokrtUxy 4jinM05SfkPv/5oNG7Y7BgBtaMSAEQa9Au0vplhdfqW2Wxkrm/X/tDI+im5KIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=f08b67611f0b19c0ee8d9053ee4d22e09b03f2b1 commit f08b67611f0b19c0ee8d9053ee4d22e09b03f2b1 Author: Piotr Kubaj AuthorDate: 2022-07-25 09:27:02 +0000 Commit: Piotr Kubaj CommitDate: 2022-07-25 09:27:40 +0000 devel/py-awscrt: fix build on powerpc64le Unknown processor:powerpc64le --- devel/py-awscrt/files/patch-crt_aws-lc_CMakeLists.txt | 11 +++++++++++ ...atch-crt_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c | 14 ++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/devel/py-awscrt/files/patch-crt_aws-lc_CMakeLists.txt b/devel/py-awscrt/files/patch-crt_aws-lc_CMakeLists.txt new file mode 100644 index 000000000000..da35bc3d80ff --- /dev/null +++ b/devel/py-awscrt/files/patch-crt_aws-lc_CMakeLists.txt @@ -0,0 +1,11 @@ +--- crt/aws-lc/CMakeLists.txt.orig 2022-07-25 08:51:35 UTC ++++ crt/aws-lc/CMakeLists.txt +@@ -623,7 +623,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm*") + elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "mips") + # Just to avoid the “unknown processor” error. + set(ARCH "generic") +-elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le") ++elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc64le|ppc64le") + set(ARCH "ppc64le") + else() + message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR}) diff --git a/devel/py-awscrt/files/patch-crt_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c b/devel/py-awscrt/files/patch-crt_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c new file mode 100644 index 000000000000..a5494dd181ae --- /dev/null +++ b/devel/py-awscrt/files/patch-crt_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c @@ -0,0 +1,14 @@ +--- crt/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2020-10-26 11:38:52 UTC ++++ crt/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c +@@ -28,7 +28,11 @@ + #endif + + void OPENSSL_cpuid_setup(void) { ++#if defined(__linux__) + OPENSSL_ppc64le_hwcap2 = getauxval(AT_HWCAP2); ++#elif defined(__FreeBSD__) ++ elf_aux_info(AT_HWCAP2, &OPENSSL_ppc64le_hwcap2, sizeof(OPENSSL_ppc64le_hwcap2)); ++#endif + } + + int CRYPTO_is_PPC64LE_vcrypto_capable(void) {