git: d33f12ae2696 - 2025Q1 - www/qt6-webengine: Speculative build fix for aarch64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Jan 2025 13:08:34 UTC
The branch 2025Q1 has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=d33f12ae2696ec58ecde216757d8dd184ce68d70 commit d33f12ae2696ec58ecde216757d8dd184ce68d70 Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2025-01-13 13:05:33 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2025-01-13 13:08:25 +0000 www/qt6-webengine: Speculative build fix for aarch64 Reported by: pkg-fallout MFH: 2025Q1 (cherry picked from commit 74bc2a40e59c9199f305e667ff77a7797629ac8c) --- ...x_source_libvpx_vpx__ports_aarch64__cpudetect.c | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/www/qt6-webengine/files/patch-src_3rdparty_chromium_third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c b/www/qt6-webengine/files/patch-src_3rdparty_chromium_third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c new file mode 100644 index 000000000000..c6211e39fbdd --- /dev/null +++ b/www/qt6-webengine/files/patch-src_3rdparty_chromium_third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c @@ -0,0 +1,27 @@ +--- src/3rdparty/chromium/third_party/libvpx/source/libvpx/vpx_ports/aarch64_cpudetect.c.orig 2024-01-30 07:53:34 UTC ++++ src/3rdparty/chromium/third_party/libvpx/source/libvpx/vpx_ports/aarch64_cpudetect.c +@@ -91,9 +91,23 @@ static int arm_get_cpu_caps(void) { + return flags; + } + +-#elif defined(__linux__) // end defined(VPX_USE_ANDROID_CPU_FEATURES) ++#elif defined(__linux__) || defined(__FreeBSD__) // end defined(VPX_USE_ANDROID_CPU_FEATURES) + + #include <sys/auxv.h> ++ ++#if defined(__FreeBSD__) ++static unsigned long getauxval(unsigned long type) ++{ ++ /* Only AT_HWCAP* return unsigned long */ ++ if (type != AT_HWCAP && type != AT_HWCAP2) { ++ return 0; ++ } ++ ++ unsigned long ret = 0; ++ elf_aux_info(type, &ret, sizeof(ret)); ++ return ret; ++} ++#endif + + // Define hwcap values ourselves: building with an old auxv header where these + // hwcap values are not defined should not prevent features from being enabled.