git: 71645b54e7f9 - main - www/librewolf: Update 157.0-1 => 157.0.1-1

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sun, 11 Oct 2026 13:57:20 UTC
The branch main has been updated by vvd:

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

commit 71645b54e7f98a24d135dfb2499db358d3b8eccb
Author:     Martin Filla <freebsd@sysctl.cz>
AuthorDate: 2026-10-11 13:54:56 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-10-11 13:54:56 +0000

    www/librewolf: Update 157.0-1 => 157.0.1-1
    
    Release Notes:
    https://www.firefox.com/en-US/firefox/157.0.1/releasenotes/
    
    Changelog:
    https://librewolf.dev/librewolf/bsys6/releases/tag/157.0.1-1
    
    - Fix build on i386.
    
    PR:             299295
    Sponsored by:   UNIS Labs (vvd, commit patch)
    MFH:            2026Q4
---
 www/librewolf/Makefile | 10 +++++++++-
 www/librewolf/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/www/librewolf/Makefile b/www/librewolf/Makefile
index 9c431de70f55..ea6b39421114 100644
--- a/www/librewolf/Makefile
+++ b/www/librewolf/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	librewolf
-DISTVERSION=	157.0
+DISTVERSION=	157.0.1
 LWPATCH=	-1
 DISTVERSIONSUFFIX=	${LWPATCH}.source
 CATEGORIES=	www wayland
@@ -94,6 +94,14 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
 		${WRKSRC}/browser/app/nsBrowserApp.cpp
 	@${RM} ${WRKSRC}/mozconfig
+.if ${ARCH} == i386
+# mtu bindings were generated on amd64 and assert amd64 struct sizes and
+# alignment; the struct definitions themselves are correct on i386
+	@${SED} -i '' -e '/^#\[allow(clippy::unnecessary_operation/,/^};/d' \
+		${WRKSRC}/third_party/rust/mtu/src/bindings/freebsd.rs
+	@${SED} -i '' -e 's|"src/bindings/freebsd.rs":"[0-9a-f]*",||' \
+		${WRKSRC}/third_party/rust/mtu/.cargo-checksum.json
+.endif
 
 post-install:
 	${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${STAGEDIR}${DESKTOPDIR}
diff --git a/www/librewolf/distinfo b/www/librewolf/distinfo
index 65ffeab8709a..a7f0d707ced0 100644
--- a/www/librewolf/distinfo
+++ b/www/librewolf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1791017432
-SHA256 (librewolf-157.0-1.source.tar.gz) = bea3cc7c57f3fb8928d583a0603b0f40130b02f662e032746345a51e0f55ffb3
-SIZE (librewolf-157.0-1.source.tar.gz) = 1178691023
+TIMESTAMP = 1791658250
+SHA256 (librewolf-157.0.1-1.source.tar.gz) = 4b363d2c85eda694c671bda98fc1f0a0ad9cfa030c975ae4fd0e1092a3f59eb2
+SIZE (librewolf-157.0.1-1.source.tar.gz) = 1179168753