git: f28f4486741f - 2025Q1 - www/tor-browser: Add experimental patch for fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Feb 2025 01:43:11 UTC
The branch 2025Q1 has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=f28f4486741f4ab657df2a9eca307ff4443da383 commit f28f4486741f4ab657df2a9eca307ff4443da383 Author: Martin Filla <freebsd@sysctl.cz> AuthorDate: 2025-02-27 00:35:20 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-02-27 01:42:44 +0000 www/tor-browser: Add experimental patch for fix build on armv7 The author of the patch is fuz. PR: 285009 268750 MFH: 2025Q1 (cherry picked from commit 5f078edb2200c9998cb5cdf3782952243114c29e) --- .../files/patch-gfx_skia_skia_src_core_SkCpu.cpp | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/www/tor-browser/files/patch-gfx_skia_skia_src_core_SkCpu.cpp b/www/tor-browser/files/patch-gfx_skia_skia_src_core_SkCpu.cpp new file mode 100644 index 000000000000..8d4ac6407f81 --- /dev/null +++ b/www/tor-browser/files/patch-gfx_skia_skia_src_core_SkCpu.cpp @@ -0,0 +1,29 @@ +--- gfx/skia/skia/src/core/SkCpu.cpp.orig 2025-02-24 16:56:14 UTC ++++ gfx/skia/skia/src/core/SkCpu.cpp +@@ -89,6 +89,26 @@ + } + #endif + ++#if (SK_CPU_ARM32) && defined(__FreeBSD__) ++ #include <sys/auxv.h> ++ ++ static uint32_t read_cpu_features() { ++ unsigned long caps = 0; ++ uint32_t features = 0; ++ ++ elf_aux_info(AT_HWCAP, &caps, sizeof caps); ++ ++ if (caps & HWCAP_NEON) { ++ features |= SkCpu::NEON; ++ if (caps & HWCAP_VFPv4) { ++ features |= SkCpu::NEON_FMA|SkCpu::VFP_FP16; ++ } ++ } ++ ++ return features; ++ } ++#endif ++ + uint32_t SkCpu::gCachedFeatures = 0; + + void SkCpu::CacheRuntimeFeatures() {