Sat Jun 13 14:26:00 2020 UTC ()
lang/rust: Note pkgbuild 2020Q1 MAK_JOBS mystery

On 2020Q1 on pkgbuild (NetBSD 9/amd64), despite MAKE_JOBS_SAFE being
set, rust failed to build repeatedly.  Note this.


(gdt)
diff -r1.176 -r1.177 pkgsrc/lang/rust/Makefile

cvs diff -r1.176 -r1.177 pkgsrc/lang/rust/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/rust/Makefile 2020/06/13 14:18:41 1.176
+++ pkgsrc/lang/rust/Makefile 2020/06/13 14:26:00 1.177
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.176 2020/06/13 14:18:41 gdt Exp $ 1# $NetBSD: Makefile,v 1.177 2020/06/13 14:26:00 gdt Exp $
2 2
3DISTNAME= rustc-1.43.1-src 3DISTNAME= rustc-1.43.1-src
4PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} 4PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//}
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= lang 6CATEGORIES= lang
7MASTER_SITES= http://static.rust-lang.org/dist/ 7MASTER_SITES= http://static.rust-lang.org/dist/
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.rust-lang.org/ 10HOMEPAGE= https://www.rust-lang.org/
11COMMENT= Safe, concurrent, practical language 11COMMENT= Safe, concurrent, practical language
12LICENSE= mit OR apache-2.0 12LICENSE= mit OR apache-2.0
13 13
14USE_GCC_RUNTIME= yes 14USE_GCC_RUNTIME= yes
@@ -141,27 +141,31 @@ CONFIGURE_ARGS+= --set llvm.targets="ARM @@ -141,27 +141,31 @@ CONFIGURE_ARGS+= --set llvm.targets="ARM
141# \todo Explain if the build is believed to be sound if not parallel, 141# \todo Explain if the build is believed to be sound if not parallel,
142# or if a non-parallel build is merely more likely to work. 142# or if a non-parallel build is merely more likely to work.
143# 143#
144# See toolchain/54192 at 144# See toolchain/54192 at
145# http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54192 145# http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54192
146# which was fixed in -current on 2020-04-19: 146# which was fixed in -current on 2020-04-19:
147# http://mail-index.netbsd.org/source-changes/2020/04/16/msg116256.html 147# http://mail-index.netbsd.org/source-changes/2020/04/16/msg116256.html
148# http://mail-index.netbsd.org/source-changes/2020/04/19/msg116337.html 148# http://mail-index.netbsd.org/source-changes/2020/04/19/msg116337.html
149# These were pulled up to netbsd-9 on 2020-05-13: 149# These were pulled up to netbsd-9 on 2020-05-13:
150# http://releng.netbsd.org/cgi-bin/req-9.cgi?show=907 150# http://releng.netbsd.org/cgi-bin/req-9.cgi?show=907
151# This has not been pulled up to netbsd-8 151# This has not been pulled up to netbsd-8
152# \todo Explain if it's not applicable, shouldn't be pulled up, should be 152# \todo Explain if it's not applicable, shouldn't be pulled up, should be
153# but hasn't, is too hard, etc. 153# but hasn't, is too hard, etc.
154 154#
 155# On pkgbuild for 2020Q1 9.0_RELEASE amd64, rust did not build despite
 156# MAKE_JOBS_SAFE=no, but setting MAKE_JOBS=1 resulted in success. (No
 157# PR is open for this.) \todo Understand and fix.
 158#
155# If we aren't on 9-current, and are on 8.x or 9.x, avoid parallel. 159# If we aren't on 9-current, and are on 8.x or 9.x, avoid parallel.
156# \todo Consider avoiding setting this on netbsd-9 past the fix. 160# \todo Consider avoiding setting this on netbsd-9 past the fix.
157.if empty(MACHINE_PLATFORM:MNetBSD-9.99.*) && !empty(MACHINE_PLATFORM:MNetBSD-[1-9].*) 161.if empty(MACHINE_PLATFORM:MNetBSD-9.99.*) && !empty(MACHINE_PLATFORM:MNetBSD-[1-9].*)
158MAKE_JOBS_SAFE= no 162MAKE_JOBS_SAFE= no
159.endif 163.endif
160.endif 164.endif
161 165
162# 166#
163# Under NetBSD, do not use DT_RUNPATH 167# Under NetBSD, do not use DT_RUNPATH
164# 168#
165BUILDLINK_TRANSFORM.NetBSD+= rm:-Wl,--enable-new-dtags 169BUILDLINK_TRANSFORM.NetBSD+= rm:-Wl,--enable-new-dtags
166 170
167.PHONY: pre-build-fix 171.PHONY: pre-build-fix