git: efd7a9b12ebf - main - devel/py-awscrt: Rename patch file
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 30 Jul 2022 06:01:58 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=efd7a9b12ebf2606df3110435445a962b888b9c7 commit efd7a9b12ebf2606df3110435445a962b888b9c7 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-07-30 05:57:50 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-07-30 05:57:50 +0000 devel/py-awscrt: Rename patch file --- ...atch-crt_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c | 14 -------------- .../{patch-crt_aws-lc_CMakeLists.txt => patch-powerpc64le} | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) 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 deleted file mode 100644 index a5494dd181ae..000000000000 --- a/devel/py-awscrt/files/patch-crt_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c +++ /dev/null @@ -1,14 +0,0 @@ ---- 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) { diff --git a/devel/py-awscrt/files/patch-crt_aws-lc_CMakeLists.txt b/devel/py-awscrt/files/patch-powerpc64le similarity index 52% rename from devel/py-awscrt/files/patch-crt_aws-lc_CMakeLists.txt rename to devel/py-awscrt/files/patch-powerpc64le index da35bc3d80ff..da075eac87db 100644 --- a/devel/py-awscrt/files/patch-crt_aws-lc_CMakeLists.txt +++ b/devel/py-awscrt/files/patch-powerpc64le @@ -9,3 +9,17 @@ set(ARCH "ppc64le") else() message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR}) +--- 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) {