Index | Thread | Search

From:
Brandon Mercer <bmercer@eutonian.com>
Subject:
Re: lang/zig 0.15.1 update
To:
George Koehler <kernigh@gmail.com>
Cc:
Stuart Henderson <stu@spacehopper.org>, Sebastien Marie <semarie@kapouay.eu.org>, ports@openbsd.org, Christian Weisgerber <naddy@mips.inka.de>
Date:
Sun, 7 Sep 2025 19:19:53 -0400

Download raw body.

Thread
On Sun, Sep 07, 2025 at 03:07:30PM -0400, George Koehler wrote:
> On Sun, 7 Sep 2025 14:28:37 +0100
> Stuart Henderson <stu@spacehopper.org> wrote:
> 
> > On 2025/09/07 09:05, Sebastien Marie wrote:
> > > Brandon Mercer <bmercer@eutonian.com> writes:
> > > 
> > > currently, lang/zig is ONLY_FOR_ARCHS=amd64 arm64 powerpc64 (and
> > > powerpc64 is marked BROKEN).
> > > 
> > > would be possible to update lang/zig to 0.15 (using MODCLANG_VERSION=20)
> > > and keep devel/llvm/20 not linked (n o SUBDIR+=20 in devel/llvm/Makefile)??
> > > so only amd64 and arm64 will build devel/llvm/20 ?
> > 
> > it must be linked to the build, but devel/llvm/20 could have ONLY_FOR_ARCHS set.
> 
> I suggest to copy ONLY_FOR_ARCHS from lang/zig to devel/llvm/20,
> perhaps with a comment like, "only for lang/zig".
> 
> This would also enable devel/llvm/20 for powerpc64.  I do bulks for
> powerpc and powerpc64, and would be fine with building llvm 20 for
> powerpc64 (a fast arch), but want to avoid building llvm 20 for
> powerpc (a slow arch).  A powerpc64 package of llvm%20 would be useful
> if someone is trying to unbreak zig.
> 
> --gkoehler

I've updated this as requested. This change enables llvm 20, only for
amd64, arm64 and powerpc64. This diff needs to go in before the
original zig update. OK? 

Index: devel/llvm/Makefile
===================================================================
RCS file: /cvs/ports/devel/llvm/Makefile,v
diff -u -p -u -r1.310 Makefile
--- devel/llvm/Makefile	30 Jul 2025 07:44:06 -0000	1.310
+++ devel/llvm/Makefile	7 Sep 2025 23:16:32 -0000
@@ -1,5 +1,6 @@
 SUBDIR =
 SUBDIR +=	16
 SUBDIR +=	19
+SUBDIR +=	20
 
 .include <bsd.port.subdir.mk>
Index: devel/llvm/20/Makefile
===================================================================
RCS file: /cvs/ports/devel/llvm/20/Makefile,v
diff -u -p -u -r1.5 Makefile
--- devel/llvm/20/Makefile	3 Sep 2025 06:28:00 -0000	1.5
+++ devel/llvm/20/Makefile	7 Sep 2025 23:16:32 -0000
@@ -1,3 +1,6 @@
+# this is only used for lang/zig at the moment
+ONLY_FOR_ARCHS =	amd64 arm64 powerpc64
+
 LLVM_MAJOR =	20
 LLVM_VERSION =	${LLVM_MAJOR}.1.8
 LLVM_PKGSPEC =	>=20,<21