Date: Wed, 11 Dec 2024 17:34:06 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: a171f900541f - main - multimedia/librespot: fix build on powerpc64le Message-ID: <202412111734.4BBHY6gB029004@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=a171f900541f1370a14d0a218322da21fa7bdf2e commit a171f900541f1370a14d0a218322da21fa7bdf2e Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-12-11 10:27:02 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-12-11 17:28:58 +0000 multimedia/librespot: fix build on powerpc64le /wrkdirs/usr/ports/multimedia/librespot/work/librespot-0.6.0/cargo-crates/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c:72:28: error: call to undeclared function 'getauxval'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] 72 | OPENSSL_ppc64le_hwcap2 = getauxval(AT_HWCAP2); | ^ 1 error generated. --- ...s-0.22.0_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/multimedia/librespot/files/patch-cargo-crates_aws-lc-sys-0.22.0_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c b/multimedia/librespot/files/patch-cargo-crates_aws-lc-sys-0.22.0_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c new file mode 100644 index 000000000000..002249cdb7e6 --- /dev/null +++ b/multimedia/librespot/files/patch-cargo-crates_aws-lc-sys-0.22.0_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c @@ -0,0 +1,14 @@ +--- cargo-crates/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2006-07-24 01:21:28 UTC ++++ cargo-crates/aws-lc-sys-0.22.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c +@@ -69,7 +69,11 @@ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412111734.4BBHY6gB029004>