git: 27af2df1a842 - main - www/tor-browser: Unbreak build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Jun 2026 18:00:27 UTC
The branch main has been updated by leres:
URL: https://cgit.FreeBSD.org/ports/commit/?id=27af2df1a84271cf673dfa64d183709ed3be5f09
commit 27af2df1a84271cf673dfa64d183709ed3be5f09
Author: Craig Leres <leres@FreeBSD.org>
AuthorDate: 2026-06-29 17:59:53 +0000
Commit: Craig Leres <leres@FreeBSD.org>
CommitDate: 2026-06-29 17:59:53 +0000
www/tor-browser: Unbreak build
The issue appears to be cbindgen 0.29.4:
https://github.com/mozilla/cbindgen/issues/1165
https://bugzilla.mozilla.org/show_bug.cgi?id=2046162
Obtained from: Martin Filla
PR: 296327
---
www/tor-browser/Makefile | 2 +-
www/tor-browser/files/patch-bug2046162 | 30 ++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/www/tor-browser/Makefile b/www/tor-browser/Makefile
index c04a34c9ae04..0da497ef1a60 100644
--- a/www/tor-browser/Makefile
+++ b/www/tor-browser/Makefile
@@ -1,6 +1,6 @@
PORTNAME= tor-browser
DISTVERSION= 16.0a1
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= www net security wayland
TAG_BASE= d366318349af0977ff23b492fa87e436e8672fdd
TAG_TOR= 45b67d3be52f79e8a4b361fd04ab12f342ab0016
diff --git a/www/tor-browser/files/patch-bug2046162 b/www/tor-browser/files/patch-bug2046162
new file mode 100644
index 000000000000..711dfe72516c
--- /dev/null
+++ b/www/tor-browser/files/patch-bug2046162
@@ -0,0 +1,30 @@
+diff --git gfx/wr/webrender/src/texture_cache.rs gfx/wr/webrender/src/texture_cache.rs
+--- gfx/wr/webrender/src/texture_cache.rs
++++ gfx/wr/webrender/src/texture_cache.rs
+@@ -270,23 +270,23 @@
+ SharedAlpha16,
+ Standalone,
+ }
+
+ impl BudgetType {
+- pub const COUNT: usize = 7;
++ const COUNT: usize = 7;
+
+- pub const VALUES: [BudgetType; BudgetType::COUNT] = [
++ const VALUES: [BudgetType; BudgetType::COUNT] = [
+ BudgetType::SharedColor8Linear,
+ BudgetType::SharedColor8Nearest,
+ BudgetType::SharedColor8Glyphs,
+ BudgetType::SharedAlpha8,
+ BudgetType::SharedAlpha8Glyphs,
+ BudgetType::SharedAlpha16,
+ BudgetType::Standalone,
+ ];
+
+- pub const PRESSURE_COUNTERS: [usize; BudgetType::COUNT] = [
++ const PRESSURE_COUNTERS: [usize; BudgetType::COUNT] = [
+ profiler::ATLAS_COLOR8_LINEAR_PRESSURE,
+ profiler::ATLAS_COLOR8_NEAREST_PRESSURE,
+ profiler::ATLAS_COLOR8_GLYPHS_PRESSURE,
+ profiler::ATLAS_ALPHA8_PRESSURE,
+ profiler::ATLAS_ALPHA8_GLYPHS_PRESSURE,