| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | # $NetBSD: Makefile,v 1.182 2020/07/06 13:56:31 he Exp $ | | 1 | # $NetBSD: Makefile,v 1.183 2020/07/06 16:03:00 he Exp $ |
2 | | | 2 | |
3 | DISTNAME= rustc-1.44.0-src | | 3 | DISTNAME= rustc-1.44.1-src |
4 | PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} | | 4 | PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} |
5 | CATEGORIES= lang | | 5 | CATEGORIES= lang |
6 | MASTER_SITES= http://static.rust-lang.org/dist/ | | 6 | MASTER_SITES= http://static.rust-lang.org/dist/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://www.rust-lang.org/ | | 9 | HOMEPAGE= https://www.rust-lang.org/ |
10 | COMMENT= Safe, concurrent, practical language | | 10 | COMMENT= Safe, concurrent, practical language |
11 | LICENSE= mit OR apache-2.0 | | 11 | LICENSE= mit OR apache-2.0 |
12 | | | 12 | |
13 | CONFLICTS+= rust-bin-[0-9]* | | 13 | CONFLICTS+= rust-bin-[0-9]* |
14 | | | 14 | |
15 | # uses -std=c++14 | | 15 | # uses -std=c++14 |
16 | GCC_REQD+= 5 | | 16 | GCC_REQD+= 5 |
| @@ -62,47 +62,26 @@ MAKE_ENV+= CARGO_BUILD_JOBS=${_MAKE_JOB | | | @@ -62,47 +62,26 @@ MAKE_ENV+= CARGO_BUILD_JOBS=${_MAKE_JOB |
62 | | | 62 | |
63 | CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS | | 63 | CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS |
64 | | | 64 | |
65 | UNLIMIT_RESOURCES+= cputime datasize virtualsize | | 65 | UNLIMIT_RESOURCES+= cputime datasize virtualsize |
66 | | | 66 | |
67 | TEST_TARGET= check | | 67 | TEST_TARGET= check |
68 | | | 68 | |
69 | # bin/* lib/*, but names vary | | 69 | # bin/* lib/*, but names vary |
70 | CHECK_RELRO_SUPPORTED= no | | 70 | CHECK_RELRO_SUPPORTED= no |
71 | CHECK_SSP_SUPPORTED= no | | 71 | CHECK_SSP_SUPPORTED= no |
72 | | | 72 | |
73 | .include "../../mk/bsd.prefs.mk" | | 73 | .include "../../mk/bsd.prefs.mk" |
74 | | | 74 | |
75 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) || \ | | | |
76 | !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf) | | | |
77 | # Bootstrapping on NetBSD/powerpc requires no debug-info from rustc | | | |
78 | # (both for amd64->powerpc built and powerpc->powerpc built bootstrap bits) | | | |
79 | CONFIGURE_ARGS+= --disable-debug | | | |
80 | CONFIGURE_ARGS+= --disable-debug-assertions | | | |
81 | CONFIGURE_ARGS+= --disable-llvm-release-debuginfo | | | |
82 | CONFIGURE_ARGS+= --debuginfo-level=0 | | | |
83 | CONFIGURE_ARGS+= --debuginfo-level-rustc=0 | | | |
84 | CONFIGURE_ARGS+= --debuginfo-level-std=0 | | | |
85 | CONFIGURE_ARGS+= --debuginfo-level-tools=0 | | | |
86 | CONFIGURE_ARGS+= --debuginfo-level-tests=0 | | | |
87 | .endif | | | |
88 | | | | |
89 | # Only build the ARM target on/for this host, due to resource constraints | | | |
90 | # (X86 needs to go along due to 2-stage build process) | | | |
91 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf) || \ | | | |
92 | !empty(TARGET:Marmv7-unknown-netbsd-eabihf) | | | |
93 | CONFIGURE_ARGS+= --set llvm.targets="ARM;X86" | | | |
94 | .endif | | | |
95 | | | | |
96 | .if ${OPSYS} == "NetBSD" | | 75 | .if ${OPSYS} == "NetBSD" |
97 | # This block contains information about known trouble on NetBSD and workarounds. | | 76 | # This block contains information about known trouble on NetBSD and workarounds. |
98 | | | 77 | |
99 | # Parallel builds failed on NetBSD due to dynamic linker locking bugs. | | 78 | # Parallel builds failed on NetBSD due to dynamic linker locking bugs. |
100 | # \todo Explain if the build is believed to be sound if not parallel, | | 79 | # \todo Explain if the build is believed to be sound if not parallel, |
101 | # or if a non-parallel build is merely more likely to work. | | 80 | # or if a non-parallel build is merely more likely to work. |
102 | # | | 81 | # |
103 | # See toolchain/54192 at | | 82 | # See toolchain/54192 at |
104 | # http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54192 | | 83 | # http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54192 |
105 | # which was fixed in -current on 2020-04-19: | | 84 | # which was fixed in -current on 2020-04-19: |
106 | # http://mail-index.netbsd.org/source-changes/2020/04/16/msg116256.html | | 85 | # http://mail-index.netbsd.org/source-changes/2020/04/16/msg116256.html |
107 | # http://mail-index.netbsd.org/source-changes/2020/04/19/msg116337.html | | 86 | # http://mail-index.netbsd.org/source-changes/2020/04/19/msg116337.html |
108 | # These were pulled up to netbsd-9 on 2020-05-13: | | 87 | # These were pulled up to netbsd-9 on 2020-05-13: |