git: 79b43d27cd71 - main - www/qt6-webengine: Fix build on i386

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Thu, 28 Aug 2025 01:40:34 UTC
The branch main has been updated by jhale:

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

commit 79b43d27cd71874c0dae7f412b1ac42e9a91fdf5
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-08-28 01:36:18 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-08-28 01:40:15 +0000

    www/qt6-webengine: Fix build on i386
    
    Use node20 for i386. Node processes are hanging on i386 with node22.
    
    Reported by:    pkg-fallout
    MFH:            2025Q3
---
 www/qt6-webengine/Makefile | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/www/qt6-webengine/Makefile b/www/qt6-webengine/Makefile
index 72bfee1b9e17..f3dd9cf36ef2 100644
--- a/www/qt6-webengine/Makefile
+++ b/www/qt6-webengine/Makefile
@@ -21,6 +21,9 @@ PKGNAMEPREFIX=	qt6-
 MAINTAINER=	kde@FreeBSD.org
 COMMENT?=	Qt 6 library to render web content
 
+# 32-bit platforms are not supported by upstream, but we're limping them along.
+ONLY_FOR_ARCHS=	aarch64 amd64 armv7 i386
+
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} \
 		${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers
 LIB_DEPENDS=	libfreetype.so:print/freetype2 \
@@ -28,9 +31,8 @@ LIB_DEPENDS=	libfreetype.so:print/freetype2 \
 		libopenjp2.so:graphics/openjpeg \
 		libxkbcommon.so:x11/libxkbcommon
 
-USES=		bison cmake compiler:c++20-lang gl gperf \
-		localbase:ldflags ninja:build nodejs:build,lts \
-		pkgconfig python:build qt-dist:6,webengine
+USES=		bison cmake compiler:c++20-lang gl gperf localbase:ldflags \
+		ninja:build pkgconfig python:build qt-dist:6,webengine
 USE_GL=		opengl
 USE_QT=		base declarative tools
 USE_XORG=	x11 xcb xcomposite xcursor xdamage xext xfixes xi xkbfile \
@@ -141,6 +143,14 @@ SNDIO_CMAKE_ON=		-DQT_FEATURE_webengine_system_sndio:BOOL=ON
 SNDIO_CMAKE_OFF=	-DQT_FEATURE_webengine_system_sndio:BOOL=OFF
 .endif
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mi386}
+USES+=		nodejs:build,20
+.else
+USES+=		nodejs:build,lts
+.endif
+
 post-extract:
 	@${MKDIR} ${WRKSRC}/src/3rdparty/chromium/media/audio/sndio \
 		${WRKSRC}/src/3rdparty/chromium/sandbox/policy/freebsd \