| @@ -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 | |
3 | DISTNAME= rustc-1.43.1-src | | 3 | DISTNAME= rustc-1.43.1-src |
4 | PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} | | 4 | PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 1 |
6 | CATEGORIES= lang | | 6 | CATEGORIES= lang |
7 | MASTER_SITES= http://static.rust-lang.org/dist/ | | 7 | MASTER_SITES= http://static.rust-lang.org/dist/ |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://www.rust-lang.org/ | | 10 | HOMEPAGE= https://www.rust-lang.org/ |
11 | COMMENT= Safe, concurrent, practical language | | 11 | COMMENT= Safe, concurrent, practical language |
12 | LICENSE= mit OR apache-2.0 | | 12 | LICENSE= mit OR apache-2.0 |
13 | | | 13 | |
14 | USE_GCC_RUNTIME= yes | | 14 | USE_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].*) |
158 | MAKE_JOBS_SAFE= no | | 162 | MAKE_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 | # |
165 | BUILDLINK_TRANSFORM.NetBSD+= rm:-Wl,--enable-new-dtags | | 169 | BUILDLINK_TRANSFORM.NetBSD+= rm:-Wl,--enable-new-dtags |
166 | | | 170 | |
167 | .PHONY: pre-build-fix | | 171 | .PHONY: pre-build-fix |