git: 0cd3f93f198e - main - security/aws-lc: Add powerpc64le patch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Oct 2024 14:41:04 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=0cd3f93f198efe720d6a748c52290f638059a1ea commit 0cd3f93f198efe720d6a748c52290f638059a1ea Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-10-29 14:18:54 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-10-29 14:38:31 +0000 security/aws-lc: Add powerpc64le patch Obtained from: https://cgit.FreeBSD.org/ports/commit/?id=f08b67611f0b19c0ee8d9053ee4d22e09b03f2b1 --- security/aws-lc/files/patch-powerpc64le | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/security/aws-lc/files/patch-powerpc64le b/security/aws-lc/files/patch-powerpc64le new file mode 100644 index 000000000000..49cc0f44382b --- /dev/null +++ b/security/aws-lc/files/patch-powerpc64le @@ -0,0 +1,20 @@ +Obtained from: https://cgit.FreeBSD.org/ports/commit/?id=f08b67611f0b19c0ee8d9053ee4d22e09b03f2b1 + +--- crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2024-07-03 21:50:24 UTC ++++ crypto/fipsmodule/cpucap/cpu_ppc64le.c +@@ -69,10 +69,15 @@ void OPENSSL_cpuid_setup(void) { + + void OPENSSL_cpuid_setup(void) { + #if defined(AT_HWCAP2) ++#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 + #else + OPENSSL_ppc64le_hwcap2 = 0; + #endif ++ + OPENSSL_cpucap_initialized = 1; + + // OPENSSL_ppccap is a 64-bit hex string which may start with "0x".