git: 6309773cf3ca - main - www/waterfox: Fix build with newer rust-cbindgen 0.29.4

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 15 Jun 2026 19:13:05 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6309773cf3cabcc0f6d4fa2b310172f9bd39b863

commit 6309773cf3cabcc0f6d4fa2b310172f9bd39b863
Author:     Martin Filla <freebsd@sysctl.cz>
AuthorDate: 2026-06-15 19:08:24 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-06-15 19:08:24 +0000

    www/waterfox: Fix build with newer rust-cbindgen 0.29.4
    
    https://github.com/mozilla/cbindgen/issues/1165
    
    PR:             296065
    Fixes:          625b0ffb538d (devel/rust-cbindgen: update to 0.29.4)
    Sponsored by:   UNIS Labs
---
 www/waterfox/files/patch-bug2046162 | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/www/waterfox/files/patch-bug2046162 b/www/waterfox/files/patch-bug2046162
new file mode 100644
index 000000000000..7e47b1356afc
--- /dev/null
+++ b/www/waterfox/files/patch-bug2046162
@@ -0,0 +1,31 @@
+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,
+