Bug 296327 - www/tor-browser: Fails to build
Summary: www/tor-browser: Fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Craig Leres
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-27 17:26 UTC by Craig Leres
Modified: 2026-06-29 18:01 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (freebsd)


Attachments
0001-tor-browser-fix-build-16.0a1.patch (1.67 KB, patch)
2026-06-29 05:25 UTC, Martin Filla
freebsd: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer freebsd_triage 2026-06-27 17:26:34 UTC
tor-browser has not built for me since about June 14th. (15.1/amd64). I suspect something in the rustc ecosystem has changed. Even ports failout sees the errors:

    https://portsfallout.com/fallout/1330718/
Comment 1 Martin Filla 2026-06-29 04:49:53 UTC
(In reply to Craig Leres from comment #0)
Hi,
Thank you for the report. The issue is gerated file. https://github.com/mozilla/cbindgen/issues/1165 .I will send the patch after test in the poudriere build.
Comment 2 Martin Filla 2026-06-29 05:25:49 UTC
Created attachment 272241 [details]
0001-tor-browser-fix-build-16.0a1.patch
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2026-06-29 17:10:09 UTC
Build fine for me in poudriere 14.4 amd64.
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-06-29 18:00:52 UTC
A commit in branch main references this bug:

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 (new) | 30 ++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)
Comment 5 Craig Leres freebsd_committer freebsd_triage 2026-06-29 18:01:35 UTC
Builds for me as well.

Thanks for the patch!