git: b6c45399597e - 2026Q2 - mail/thunderbird-esr: fix build on 2026Q2

From: Christoph Moench-Tegeder <cmt_at_FreeBSD.org>
Date: Thu, 18 Jun 2026 21:19:24 UTC
The branch 2026Q2 has been updated by cmt:

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

commit b6c45399597eefb4ac2a70e9d4ee5e7f3b34b8e5
Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2026-06-18 21:14:20 +0000
Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2026-06-18 21:14:20 +0000

    mail/thunderbird-esr: fix build on 2026Q2
    
    The build failed with (and probably because of) the old rust in
    Quarterly, as some of the cargo-checksum.json files in
    comm/third_party/rust (the thunderbird part) referenced .gitmodules
    files which are not present in the release tarball.
    Stripping out these references (most easily with sed) fixes the build.
    
    This is a stop-gap fix in 2026Q2 only - the build on main is fine,
    and the 2026Q2 will be closed in two weeks anyway.
---
 mail/thunderbird-esr/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mail/thunderbird-esr/Makefile b/mail/thunderbird-esr/Makefile
index c2b81d99cdfa..45f666e048e8 100644
--- a/mail/thunderbird-esr/Makefile
+++ b/mail/thunderbird-esr/Makefile
@@ -62,6 +62,9 @@ post-patch:
 		${WRKSRC}/comm/mail/app/nsMailApp.cpp
 	@${REINPLACE_CMD} -e 's|wasm32-wasi|&p1|' \
 		${WRKSRC}/build/moz.configure/toolchain.configure
+	${FIND} ${WRKSRC}/comm/third_party/rust -name .cargo-checksum.json | \
+		${XARGS} ${REINPLACE_CMD} \
+		's,"\([a-z_]*/\)*.gitmodules":"[[:xdigit:]]\{64\}"\,,,'
 
 port-pre-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/defaults