diff options
Diffstat (limited to 'security/rustls-ffi')
-rw-r--r-- | security/rustls-ffi/Makefile | 2 | ||||
-rw-r--r-- | security/rustls-ffi/files/patch-powerpc64le | 38 |
2 files changed, 39 insertions, 1 deletions
diff --git a/security/rustls-ffi/Makefile b/security/rustls-ffi/Makefile index edf8ead7bf65..65a625c0905d 100644 --- a/security/rustls-ffi/Makefile +++ b/security/rustls-ffi/Makefile @@ -1,7 +1,7 @@ PORTNAME= rustls-ffi DISTVERSIONPREFIX= v DISTVERSION= 0.15.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MAINTAINER= brnrd@FreeBSD.org diff --git a/security/rustls-ffi/files/patch-powerpc64le b/security/rustls-ffi/files/patch-powerpc64le new file mode 100644 index 000000000000..213395b8e26c --- /dev/null +++ b/security/rustls-ffi/files/patch-powerpc64le @@ -0,0 +1,38 @@ +Obtained from: https://cgit.FreeBSD.org/ports/commit/?id=f08b67611f0b19c0ee8d9053ee4d22e09b03f2b1 + +--- cargo-crates/aws-lc-fips-sys-0.13.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2024-07-03 21:50:24 UTC ++++ cargo-crates/aws-lc-fips-sys-0.13.0/aws-lc/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". +--- cargo-crates/aws-lc-sys-0.24.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2024-07-03 21:50:24 UTC ++++ cargo-crates/aws-lc-sys-0.24.0/aws-lc/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". |