From: Kurt Mosiejczuk Subject: Re: games/lwjgl3: Limit ARCHS and cleanups To: Kurt Miller Cc: ports@openbsd.org Date: Fri, 5 Dec 2025 12:47:11 -0500 On Thu, Dec 04, 2025 at 06:17:11PM +0000, Kurt Miller wrote: > Kurt, this is a newer diff then the one I sent you off list. > I took a look at this failing on sparc64 and i386. On sparc64 it > fails because there's a native component to this port and upstream > does not have sparc64 support. On i386 building kotlin fails due > to out of memory and increasing the java heap more is not possible > on i386. So mark this port amd64 and aarch64 only. > Also noticed SUBST_VARS M_ARCH is not used in pkg/* and appears > to be carried along from games/lwjgl which uses it. > None of these changes change the existing packages so no package > bump. > okay? Looks alright to me. ok kmos --Kurt > Index: Makefile > =================================================================== > RCS file: /cvs/ports/games/lwjgl3/Makefile,v > diff -u -p -u -r1.12 Makefile > --- Makefile 25 Sep 2023 17:07:29 -0000 1.12 > +++ Makefile 4 Dec 2025 15:26:50 -0000 > @@ -1,26 +1,18 @@ > COMMENT = lightweight game library for java > > -BROKEN-i386 = ld: error: undefined symbol: __stack_smash_handler > +ONLY_FOR_ARCHS= amd64 aarch64 > > V = 3.3.1.1 > DISTNAME = lwjgl3-${V} > > KOTLIN_V = 1.6.20-M1 > > -.if ${MACHINE_ARCH} == "i386" > -M_ARCH = "" > -PKG_ARGS += -Dx86=1 > -MAKE_ENV += ANT_OPTS="-Xmx900M -Xms900M" > -.elif ${MACHINE_ARCH} == "amd64" > -M_ARCH = 64 > +.if ${MACHINE_ARCH} == "amd64" > PKG_ARGS += -Dx86=1 > .elif ${MACHINE_ARCH} == "aarch64" > -M_ARCH = 64 > PKG_ARGS += -Dx86=0 > MAKE_ENV+= LWJGL_BUILD_ARCH=arm64 > MAKE_ENV += ANT_OPTS="-Xmx1600M" > -.else > -PKG_ARGS += -Dx86=0 > .endif > > LWJGL3_HOME = ${PREFIX}/share/lwjgl3 > @@ -70,8 +62,6 @@ LIB_DEPENDS = archivers/lz4 \ > PORTHOME = ${WRKDIR} > > NO_TEST = Yes > - > -SUBST_VARS += M_ARCH > > post-extract: > mkdir -p ${WRKSRC}/bin/libs