pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/go126
Module Name: pkgsrc
Committed By: gdt
Date: Wed May 20 15:34:09 UTC 2026
Modified Files:
pkgsrc/lang/go126: Makefile
Log Message:
lang/go126: Avoid excessive parallism
Tell "go build" to use at most ${MAKE_JOBS} threads, instead of the
vastly higher number that it tends to use, at least on machines with
many CPUs. This meets the intent of MAKE_JOBS because there is only
one "go build" process.
As discussed on tech-pkg@ with no $MAINTAINER objection.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/go126/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/go126/Makefile
diff -u pkgsrc/lang/go126/Makefile:1.1 pkgsrc/lang/go126/Makefile:1.2
--- pkgsrc/lang/go126/Makefile:1.1 Sun Feb 22 15:20:08 2026
+++ pkgsrc/lang/go126/Makefile Wed May 20 15:34:09 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2026/02/22 15:20:08 bsiegert Exp $
+# $NetBSD: Makefile,v 1.2 2026/05/20 15:34:09 gdt Exp $
.include "../../lang/go/version.mk"
GO_BOOTSTRAP_REQD= 124
@@ -101,9 +101,14 @@ post-extract:
post-patch:
${RM} -f ${WRKSRC}/src/cmd/link/internal/x86/*.orig_dist
+# By default, go build invokes unreasonable parallelism. Rather than
+# ${MAKE_JOBS} of 1 thread as with make, we run just "go build" (1
+# job) and tell it to not exceed ${MAKE_JOBS} threads. This is sound
+# because there is no make with -jN args also.
do-build:
cd ${WRKSRC}/src && \
env \
+ GOMAXPROCS=${MAKE_JOBS:U1} \
GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} \
${GOOPT} \
GOCACHE=${WRKDIR}/.cache/go-build \
Home |
Main Index |
Thread Index |
Old Index