pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/rust
Module Name: pkgsrc
Committed By: he
Date: Mon Oct 29 22:24:11 UTC 2018
Modified Files:
pkgsrc/lang/rust: Makefile distinfo
pkgsrc/lang/rust/patches: patch-src_bootstrap_bootstrap.py
Added Files:
pkgsrc/lang/rust/patches: patch-src_libsyntax__pos_span__encoding.rs
patch-src_tools_cargo_src_cargo_core_profiles.rs
patch-src_tools_cargo_tests_testsuite_build.rs
Log Message:
Upgrade rust to version 1.30.0.
Upstream changes:
Language
* Procedural macros are now available. These kinds of macros allow
for more powerful code generation. There is a new chapter available
in the Rust Programming Language book that goes further in depth.
* You can now use keywords as identifiers using the raw identifiers
syntax (r#), e.g. let r#for = true;
* Using anonymous parameters in traits is now deprecated with a
warning and will be a hard error in the 2018 edition.
* You can now use crate in paths. This allows you to refer to the
crate root in the path, e.g. use crate::foo; refers to foo in
src/lib.rs.
* Using a external crate no longer requires being prefixed with
::. Previously, using a external crate in a module without a
use statement required let json = ::serde_json::from_str(foo);
but can now be written as let json = serde_json::from_str(foo);.
* You can now apply the #[used] attribute to static items to
prevent the compiler from optimising them away, even if they
appear to be unused, e.g. #[used] static FOO: u32 = 1;
* You can now import and reexport macros from other crates with
the use syntax. Macros exported with #[macro_export] are now
placed into the root module of the crate. If your macro relies
on calling other local macros, it is recommended to export with
the #[macro_export(local_inner_macros)] attribute so users won't
have to import those macros.
* You can now catch visibility keywords (e.g. pub, pub(crate)) in
macros using the vis specifier.
* Non-macro attributes now allow all forms of literals, not just
strings. Previously, you would write #[attr("true")], and you
can now write #[attr(true)].
* You can now specify a function to handle a panic in the Rust
runtime with the #[panic_handler] attribute.
Compiler
* Added the riscv32imc-unknown-none-elf target.
* Added the aarch64-unknown-netbsd target
Libraries
* ManuallyDrop now allows the inner type to be unsized.
Stabilized APIs
* Ipv4Addr::BROADCAST
* Ipv4Addr::LOCALHOST
* Ipv4Addr::UNSPECIFIED
* Ipv6Addr::LOCALHOST
* Ipv6Addr::UNSPECIFIED
* Iterator::find_map
* The following methods are replacement methods for trim_left,
trim_right, trim_left_matches, and trim_right_matches, which
will be deprecated in 1.33.0:
* str::trim_end_matches
* str::trim_end
* str::trim_start_matches
* str::trim_start
Cargo
* cargo run doesn't require specifying a package in workspaces.
* cargo doc now supports --message-format=json. This is equivalent
to calling rustdoc --error-format=json.
* Cargo will now provide a progress bar for builds.
Misc
* rustdoc allows you to specify what edition to treat your code
as with the --edition option.
* rustdoc now has the --color (specify whether to output color)
and --error-format (specify error format, e.g. json) options.
* We now distribute a rust-gdbgui script that invokes gdbgui with
Rust debug symbols.
* Attributes from Rust tools such as rustfmt or clippy are now
available, e.g. #[rustfmt::skip] will skip formatting the next
item.
Pkgsrc changest:
* Explicitly list bootstrap kit version number for each kit we carry,
so that one entry's version doesn't "bleed into" following kits.
* Tweak for handling "earmv7hf" CPU type for NetBSD in the bootstrap.py
script
* Add two patches from Debian for sparc64; rust would generate code
generating unaligned accesses, causing SIGBUS on sparc64
* Update most of the bootstrap kits to version 1.29.2; need minimum
1.29.0 to build 1.30.0.
* Rust regrettably doesn't build for powerpc or earmv7hf in this version,
most probably due to "char" being "unsigned char" on these platforms.
Ref. https://github.com/rust-lang/rust/issues/55465
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 pkgsrc/lang/rust/Makefile
cvs rdiff -u -r1.42 -r1.43 pkgsrc/lang/rust/distinfo
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/lang/rust/patches/patch-src_bootstrap_bootstrap.py
cvs rdiff -u -r0 -r1.1 \
pkgsrc/lang/rust/patches/patch-src_libsyntax__pos_span__encoding.rs \
pkgsrc/lang/rust/patches/patch-src_tools_cargo_src_cargo_core_profiles.rs \
pkgsrc/lang/rust/patches/patch-src_tools_cargo_tests_testsuite_build.rs
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/rust/Makefile
diff -u pkgsrc/lang/rust/Makefile:1.62 pkgsrc/lang/rust/Makefile:1.63
--- pkgsrc/lang/rust/Makefile:1.62 Sun Oct 28 13:21:36 2018
+++ pkgsrc/lang/rust/Makefile Mon Oct 29 22:24:11 2018
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.62 2018/10/28 13:21:36 he Exp $
+# $NetBSD: Makefile,v 1.63 2018/10/29 22:24:11 he Exp $
-DISTNAME= rustc-1.29.2-src
+DISTNAME= rustc-1.30.0-src
PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//}
#PKGREVISION= 1
CATEGORIES= lang
@@ -46,7 +46,7 @@ CONFIGURE_ARGS.SunOS+= --disable-jemallo
#GNU_CROSS_TARGET= armv7--netbsdelf-eabihf
#GNU_CROSS_TARGET= sparc64--netbsd
#GNU_CROSS_TARGET= powerpc--netbsd
-#MAKE_ENV+= GNU_CROSS_TARGET=${GNU_CROSS_TARGET}
+MAKE_ENV+= GNU_CROSS_TARGET=${GNU_CROSS_TARGET}
# To cross-build rust, you need to specify
# the ultimate target to built for, as well as the
@@ -120,9 +120,10 @@ BUILDLINK_TRANSFORM.NetBSD+= rm:-Wl,--en
# own bootstrap. See the stage0-bootstrap below for more details.
#
DISTFILES:= ${DEFAULT_DISTFILES}
-RUST_STAGE0_VER= 1.28.0
+RUST_STAGE0_VER= 1.29.2
#
.if !empty(MACHINE_PLATFORM:MDarwin-*-i386) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER= 1.29.2
RUST_ARCH:= i686-apple-darwin
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
@@ -130,6 +131,7 @@ DISTFILES:= ${DISTFILES} ${RUST_STAGE0}
pre-build-fix:
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-*-x86_64) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER= 1.29.2
RUST_ARCH:= x86_64-apple-darwin
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
@@ -137,6 +139,7 @@ DISTFILES:= ${DISTFILES} ${RUST_STAGE0}
pre-build-fix:
.endif
.if !empty(MACHINE_PLATFORM:MLinux-*-i386) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER= 1.29.2
RUST_ARCH:= i686-unknown-linux-gnu
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
@@ -144,6 +147,7 @@ DISTFILES:= ${DISTFILES} ${RUST_STAGE0}
pre-build-fix:
.endif
.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER= 1.29.2
RUST_ARCH:= x86_64-unknown-linux-gnu
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
@@ -151,6 +155,7 @@ DISTFILES:= ${DISTFILES} ${RUST_STAGE0}
pre-build-fix:
.endif
.if !empty(MACHINE_PLATFORM:MSunOS-*-x86_64) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER:= 1.29.2
RUST_ARCH:= x86_64-sun-solaris
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
SITES.${RUST_STAGE0}= https://us-east.manta.joyent.com/pkgsrc/public/pkg-bootstraps/
@@ -159,6 +164,7 @@ RUST_BOOTSTRAP_PATH?= ${WRKDIR}/rust-${R
pre-build-fix:
.endif
.if !empty(MACHINE_PLATFORM:MFreeBSD-*-i386) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER= 1.29.2
RUST_ARCH:= i686-unknown-freebsd
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
@@ -166,6 +172,7 @@ DISTFILES:= ${DISTFILES} ${RUST_STAGE0}
pre-build-fix:
.endif
.if !empty(MACHINE_PLATFORM:MFreeBSD-*-x86_64) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER= 1.29.2
RUST_ARCH:= x86_64-unknown-freebsd
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
@@ -173,6 +180,7 @@ DISTFILES:= ${DISTFILES} ${RUST_STAGE0}
pre-build-fix:
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER:= 1.29.1
RUST_ARCH= i686-unknown-netbsd
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
@@ -189,6 +197,7 @@ pre-build-fix:
${TOOLS_PLATFORM.paxctl} +am ${WRKDIR}/rust-bootstrap/bin/cargo
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER= 1.29.2
RUST_ARCH= x86_64-unknown-netbsd
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
@@ -196,8 +205,8 @@ DISTFILES:= ${DISTFILES} ${RUST_STAGE0}
pre-build-fix:
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) || make(distinfo) || make (makesum) || make(mdi)
-RUST_ARCH= powerpc-unknown-netbsd
RUST_STAGE0_VER= 1.29.2
+RUST_ARCH= powerpc-unknown-netbsd
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
DISTFILES:= ${DISTFILES} ${RUST_STAGE0} ${RUST_STD_STAGE0}
@@ -207,8 +216,8 @@ SITES.${RUST_STD_STAGE0}= ftp://golden-d
pre-build-fix:
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) || make(distinfo) || make (makesum) || make(mdi)
+RUST_STAGE0_VER= 1.30.0
RUST_ARCH= sparc64-unknown-netbsd
-RUST_STAGE0_VER= 1.29.2
RUST_STAGE0:= rust-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
RUST_STD_STAGE0:= rust-std-${RUST_STAGE0_VER}-${RUST_ARCH}.tar.gz
DISTFILES:= ${DISTFILES} ${RUST_STAGE0} ${RUST_STD_STAGE0}
Index: pkgsrc/lang/rust/distinfo
diff -u pkgsrc/lang/rust/distinfo:1.42 pkgsrc/lang/rust/distinfo:1.43
--- pkgsrc/lang/rust/distinfo:1.42 Sun Oct 28 13:21:36 2018
+++ pkgsrc/lang/rust/distinfo Mon Oct 29 22:24:11 2018
@@ -1,109 +1,112 @@
-$NetBSD: distinfo,v 1.42 2018/10/28 13:21:36 he Exp $
+$NetBSD: distinfo,v 1.43 2018/10/29 22:24:11 he Exp $
-SHA1 (rust-1.28.0-i686-apple-darwin.tar.gz) = 85d947b4d260361f63f77e1f4921ac89bd849d78
-RMD160 (rust-1.28.0-i686-apple-darwin.tar.gz) = 963abf1b0b5e2673c8e2d6c1b4d5a2d8ed9d8d2f
-SHA512 (rust-1.28.0-i686-apple-darwin.tar.gz) = cd38065e1b3c8f466ed5b7f73ee8e0880bff6c11cdff95d232ad7d829eafccd3b76c75fc217a4d39238f1ca3ac010b3bb54b15ebfbaabcc7a01366aae8bc16dd
-Size (rust-1.28.0-i686-apple-darwin.tar.gz) = 182649730 bytes
-SHA1 (rust-1.28.0-i686-unknown-freebsd.tar.gz) = 458f684bb2f9f09f79d2af3fd4b1c58f27be894c
-RMD160 (rust-1.28.0-i686-unknown-freebsd.tar.gz) = 8865570a7facbeaf988e46d5f80dcb05cabee8ec
-SHA512 (rust-1.28.0-i686-unknown-freebsd.tar.gz) = 493c1dddcdd4393d07d5e132b3ef672fec8d3bfa1818709b7da3b50bef0b1f7d7cf4ceee240c99ef98278fa164bd03b170d00d6dd8a2f5b431985ddd4b642777
-Size (rust-1.28.0-i686-unknown-freebsd.tar.gz) = 156166037 bytes
-SHA1 (rust-1.28.0-i686-unknown-linux-gnu.tar.gz) = 751f30430158d66537dbb393839835af3438d1e4
-RMD160 (rust-1.28.0-i686-unknown-linux-gnu.tar.gz) = 649b4760afe12715b3e9352bad058bc3b6fdeafb
-SHA512 (rust-1.28.0-i686-unknown-linux-gnu.tar.gz) = 40fc0c6e347f60ab3809e95edabafd88e9160f8adaa217562a9c52fea42f540ca142eddd827ba16960bef8faa9401b37a963d29baa235aa84eb760c2a78a2c4f
-Size (rust-1.28.0-i686-unknown-linux-gnu.tar.gz) = 223358542 bytes
-SHA1 (rust-1.28.0-i686-unknown-netbsd.tar.gz) = 2777717661d9921db45c93347ffb383cb9f7ebe4
-RMD160 (rust-1.28.0-i686-unknown-netbsd.tar.gz) = 768dc60e1983c5bcc6768ce6a0dacdc199ed6f9c
-SHA512 (rust-1.28.0-i686-unknown-netbsd.tar.gz) = 98f60b1357d8dec31752cb0f786b4c1fd8904b0e218d0f564bdcb2afc33f3fb0eb574a0e10f814a3ccfae113f27017daeff167cc06592221a755d9c36205bb12
-Size (rust-1.28.0-i686-unknown-netbsd.tar.gz) = 161223497 bytes
-SHA1 (rust-1.28.0-x86_64-apple-darwin.tar.gz) = ac439a54988a471e1e7652596307a9b54a253dd7
-RMD160 (rust-1.28.0-x86_64-apple-darwin.tar.gz) = 47479635f259e33218ee0e63b389e7f2c83278e5
-SHA512 (rust-1.28.0-x86_64-apple-darwin.tar.gz) = 99a3a5c5d0d09aa7ae8b52e5c71df56ead2d9c730921120c668daf6dcd6b9856e775735533ffc6f52f9481f591800ab81d0d7b43f534d2fa32e80d2a7dec8cde
-Size (rust-1.28.0-x86_64-apple-darwin.tar.gz) = 186975346 bytes
-SHA1 (rust-1.28.0-x86_64-sun-solaris.tar.gz) = c363feb0f9134ff1be95ecbf3b5a5483ecc18d33
-RMD160 (rust-1.28.0-x86_64-sun-solaris.tar.gz) = a5c54fe02747d657a14f671e93dc2e6146bdbe19
-SHA512 (rust-1.28.0-x86_64-sun-solaris.tar.gz) = 6d4cb7051b29603f9d3b61afc93b50d8e5ff6b8d608dd8f1a9c8210441a2d6059b5c61b4e0d21b9eca99f7c979b406b02b0e50cc60c621dcb5a0d528e89156b2
-Size (rust-1.28.0-x86_64-sun-solaris.tar.gz) = 186978879 bytes
-SHA1 (rust-1.28.0-x86_64-unknown-freebsd.tar.gz) = 7bf31bc3447350d9bae27ff687361268358c3c65
-RMD160 (rust-1.28.0-x86_64-unknown-freebsd.tar.gz) = c2b40f15f7151b01943ff388c857965a96000590
-SHA512 (rust-1.28.0-x86_64-unknown-freebsd.tar.gz) = 242981ab0dcd4ea549e156ffc8ff4e1b572ff39718b0b55dd62be0272c4c51901b28d49684a7ec5534ed634d4bbdd001b692253deb1b48fc9c005751670b012f
-Size (rust-1.28.0-x86_64-unknown-freebsd.tar.gz) = 154797610 bytes
-SHA1 (rust-1.28.0-x86_64-unknown-linux-gnu.tar.gz) = 30821a61037f25ad4ac4190b579783ad5dc2d2fe
-RMD160 (rust-1.28.0-x86_64-unknown-linux-gnu.tar.gz) = 8c9c17d504e0568ba090f33b36683874d50032c5
-SHA512 (rust-1.28.0-x86_64-unknown-linux-gnu.tar.gz) = 6bdcb8828e14069e099764b79671579bd24c90a102266fa5ebd9a5da3da7186b3e1d64b53c6c065d2d1a4d71b6c613513fddb38cd21c3d37a4a112b0393542a2
-Size (rust-1.28.0-x86_64-unknown-linux-gnu.tar.gz) = 220419012 bytes
-SHA1 (rust-1.28.0-x86_64-unknown-netbsd.tar.gz) = adf649042d6d8fa4e3e3884764983334a05fcc1d
-RMD160 (rust-1.28.0-x86_64-unknown-netbsd.tar.gz) = 7528a7c33006cbf3babd919f07c6b45aa40c933e
-SHA512 (rust-1.28.0-x86_64-unknown-netbsd.tar.gz) = 240b8de758469259aae3e7e8168a4dce1d62da864cae4ea0386fb6f808a19098bfb757526f22759355c62eb82c5eb31a0141b04ac32e669fb4b072232ea76f41
-Size (rust-1.28.0-x86_64-unknown-netbsd.tar.gz) = 156843116 bytes
+SHA1 (rust-1.29.1-i686-unknown-netbsd.tar.gz) = f4f8cbd0a2581546680328765bf5d7d351cf0643
+RMD160 (rust-1.29.1-i686-unknown-netbsd.tar.gz) = a590d8dfed10220e8013796cd66c5c9eed51bf37
+SHA512 (rust-1.29.1-i686-unknown-netbsd.tar.gz) = 58c78e00d481ba66ce7105f6389698324383772d077173cad3eaf5e3a119e42b33e9c1221e9640faacff553b0dc989c99c0579a5ec6f996d149c6d490dd560f7
+Size (rust-1.29.1-i686-unknown-netbsd.tar.gz) = 176732477 bytes
SHA1 (rust-1.29.2-armv7-unknown-netbsd-eabihf.tar.gz) = cf70e101a6d8ae2bf9034d7e61510d333dc8fd9b
RMD160 (rust-1.29.2-armv7-unknown-netbsd-eabihf.tar.gz) = abca0a9254462b3091af857826bf6354be6ec54e
SHA512 (rust-1.29.2-armv7-unknown-netbsd-eabihf.tar.gz) = 3c60c67e8ad8122b05255a267dfed4a0556aa1298a0a864bb4e2a8f1f346a52a75e9dd11408ba7cc78e4cc2bdba35291128441eac4720ac2f6dc9a40c6e3c5f2
Size (rust-1.29.2-armv7-unknown-netbsd-eabihf.tar.gz) = 204812330 bytes
+SHA1 (rust-1.29.2-i686-apple-darwin.tar.gz) = e8af055c4ebfaf1a2a4c1a87b7591939cd833538
+RMD160 (rust-1.29.2-i686-apple-darwin.tar.gz) = 2d4c379315238192a98fc518eb2092619f53f070
+SHA512 (rust-1.29.2-i686-apple-darwin.tar.gz) = fed4ab2648c89af9f535f274a7aadbc6e797338213af30bacb442669fbbd11b85ecb8ec76aae921abab864986d6fcd74725be9c6d4a72f6b17be47c466f89921
+Size (rust-1.29.2-i686-apple-darwin.tar.gz) = 193356771 bytes
+SHA1 (rust-1.29.2-i686-unknown-freebsd.tar.gz) = 9f3aaf1ba8e339d110d5a248727d2ea44562df44
+RMD160 (rust-1.29.2-i686-unknown-freebsd.tar.gz) = 0a2510d0e9f5b7c35b7dbfbef43a065620179cef
+SHA512 (rust-1.29.2-i686-unknown-freebsd.tar.gz) = 901f8466c1645b3a1fb0cafa88e482b018bb1b09cd21f3abb69e3e9786550e8051c16f17a004943894844c6e731d15b751f42ee553ae471ce24db090b4064057
+Size (rust-1.29.2-i686-unknown-freebsd.tar.gz) = 166612152 bytes
+SHA1 (rust-1.29.2-i686-unknown-linux-gnu.tar.gz) = 3a99e5927eabeba2e39e3891fd72cfaa929552f1
+RMD160 (rust-1.29.2-i686-unknown-linux-gnu.tar.gz) = 6ca42d16d0863d6651530ade6719a8f78e41ef56
+SHA512 (rust-1.29.2-i686-unknown-linux-gnu.tar.gz) = 705191d58d8d5758809a82293a1cf4b8212f4a2921fadc90db89c98d97d3e712742fbb6115222eedfa614fdfe168244fbbb298af141122a0b527ff47b33be280
+Size (rust-1.29.2-i686-unknown-linux-gnu.tar.gz) = 241724580 bytes
SHA1 (rust-1.29.2-powerpc-unknown-netbsd.tar.gz) = cef9bb2964b3c67cadbedc255f6219d08771e6f6
RMD160 (rust-1.29.2-powerpc-unknown-netbsd.tar.gz) = 7f4bf34abbe482c9d31fb205437dd4488252eecc
SHA512 (rust-1.29.2-powerpc-unknown-netbsd.tar.gz) = 78d3cbe6733b6e150c159b8977735c9e7aae79c4ab6107144d17bb2bd7b63c6984087dd43bc551a299cdc70f68b5eecad24d1c4581c1a9650cb5a24ad23c56e9
Size (rust-1.29.2-powerpc-unknown-netbsd.tar.gz) = 197582833 bytes
-SHA1 (rust-1.29.2-sparc64-unknown-netbsd.tar.gz) = 3b68194d4a9cdb012946166bd5b491969528c2f5
-RMD160 (rust-1.29.2-sparc64-unknown-netbsd.tar.gz) = e88cbdd535830a11fdf0d9c559a844cfc79b3b40
-SHA512 (rust-1.29.2-sparc64-unknown-netbsd.tar.gz) = 234fdf775ee5d0ee0d39193324fcc6b7ba4f9f0b97f3b1fa061f3ef23a7852fb6f6a4977e29bd8eb7d56042fd5ef3bd03789283d7ca13c4397ba603f69b1eae6
-Size (rust-1.29.2-sparc64-unknown-netbsd.tar.gz) = 206018883 bytes
-SHA1 (rust-std-1.28.0-i686-apple-darwin.tar.gz) = 3d7e57f639077394756329121c74fb80c7e4bbfe
-RMD160 (rust-std-1.28.0-i686-apple-darwin.tar.gz) = 2ef3358883cf2951a55495f4db12f40412fd5dc5
-SHA512 (rust-std-1.28.0-i686-apple-darwin.tar.gz) = faacce3c4441e96927aa52dbf89e70541d3d4d73d1ae971c61b5d9c2ce75e4b55ed4faccb3c314fd9ea9feda4b5630e425a5c725e4c98df80bdb7b1e822a5439
-Size (rust-std-1.28.0-i686-apple-darwin.tar.gz) = 60854124 bytes
-SHA1 (rust-std-1.28.0-i686-unknown-freebsd.tar.gz) = 5b263dc0d78eeff10dd34f1b01b61d24bc652c57
-RMD160 (rust-std-1.28.0-i686-unknown-freebsd.tar.gz) = dc36068798fee727bda7693724f9510fd62ab7df
-SHA512 (rust-std-1.28.0-i686-unknown-freebsd.tar.gz) = 84b9b795dc5a91aa5211ea4b0c0002964fb51d84a616c5e49b5ba5949268a5eb74c438b1b4a34e295e2cf7093ed4154ad7c679777639d82c4fe3a84e68f5629e
-Size (rust-std-1.28.0-i686-unknown-freebsd.tar.gz) = 67392915 bytes
-SHA1 (rust-std-1.28.0-i686-unknown-linux-gnu.tar.gz) = a94ff9d5203fbc40c4b6dea07161e476df4bbd97
-RMD160 (rust-std-1.28.0-i686-unknown-linux-gnu.tar.gz) = d925219f9afa726d700416e87321bfe14c6a9959
-SHA512 (rust-std-1.28.0-i686-unknown-linux-gnu.tar.gz) = 08e52328d2dd09633118a7315c364487624189d0e7ce7fd649c6355ae690b1649a88a477ef93f8ed22fe270b67cf8db381182994d692214bff844c0175fd5e88
-Size (rust-std-1.28.0-i686-unknown-linux-gnu.tar.gz) = 69177053 bytes
-SHA1 (rust-std-1.28.0-i686-unknown-netbsd.tar.gz) = 047d4fe3e4bc8652a28614f279c097015e3434de
-RMD160 (rust-std-1.28.0-i686-unknown-netbsd.tar.gz) = b42be603e6ad629ffb792073b9e3acf968ad5706
-SHA512 (rust-std-1.28.0-i686-unknown-netbsd.tar.gz) = 04b360dd7af0b89a6efb4b6b83fc0770da819c2f0403b6dadfffe824a93a02b1dd92605e390b70192af24a3be5071444cb6213a3245e49058648e168846791ae
-Size (rust-std-1.28.0-i686-unknown-netbsd.tar.gz) = 69614010 bytes
-SHA1 (rust-std-1.28.0-x86_64-apple-darwin.tar.gz) = 55af539d98707a658a8f26a4aa33005b4fc6baa3
-RMD160 (rust-std-1.28.0-x86_64-apple-darwin.tar.gz) = 2744209ed7312b445370f8d008db325045fcea18
-SHA512 (rust-std-1.28.0-x86_64-apple-darwin.tar.gz) = 7075f6cf594847fb21c134a32f9d758cb94a4483e669eb546c9df68108541301d9a750c535112cbfbfa5dc1f9ff93a6edc6c3c366cb97d927e6e8367ccb9efec
-Size (rust-std-1.28.0-x86_64-apple-darwin.tar.gz) = 62068044 bytes
-SHA1 (rust-std-1.28.0-x86_64-unknown-freebsd.tar.gz) = 5945566a0cd3416b4faac450f61085cc24a7485b
-RMD160 (rust-std-1.28.0-x86_64-unknown-freebsd.tar.gz) = 2f61d14a2424b9a2394ef2227384c11271aebbf4
-SHA512 (rust-std-1.28.0-x86_64-unknown-freebsd.tar.gz) = 5ac101ea5e7a676a903a394c8628c2b5cee32d7c025b88f8382962638ae902f20d811642254151890f798fb4a05adc72cd36fa01d1d089d14cca56923088fd35
-Size (rust-std-1.28.0-x86_64-unknown-freebsd.tar.gz) = 66920885 bytes
-SHA1 (rust-std-1.28.0-x86_64-unknown-linux-gnu.tar.gz) = b880e4436248c51da6776a4378a05be7886be509
-RMD160 (rust-std-1.28.0-x86_64-unknown-linux-gnu.tar.gz) = 831bbd7a38fa891da58dbe42235d74ff1f17e35e
-SHA512 (rust-std-1.28.0-x86_64-unknown-linux-gnu.tar.gz) = 643e38728d6a13e0b73e498a9dfa65daafb24642591263729f06e4caa369b079985d55c9d36fb5692dc6f2293abd65390323cbd4a52a306a194b17172fbaff07
-Size (rust-std-1.28.0-x86_64-unknown-linux-gnu.tar.gz) = 70422036 bytes
-SHA1 (rust-std-1.28.0-x86_64-unknown-netbsd.tar.gz) = a0b835fe0ad2b5a6d94bd99323dd3174a939949d
-RMD160 (rust-std-1.28.0-x86_64-unknown-netbsd.tar.gz) = d06cabb8232d66d2a5cf3a1ee0f0f676c698e6c0
-SHA512 (rust-std-1.28.0-x86_64-unknown-netbsd.tar.gz) = 726c5ef43db24b3d0548a2b0534934d6fcb04b0b9228b80cace18f59e21ad6facfbc2af3220867988a35414ba95fb90e38cc47d826dd73cb588622132ea6e9da
-Size (rust-std-1.28.0-x86_64-unknown-netbsd.tar.gz) = 69236192 bytes
+SHA1 (rust-1.29.2-x86_64-apple-darwin.tar.gz) = 64a0c6c8921efd9d8d81e5eae64fe2af780d33f4
+RMD160 (rust-1.29.2-x86_64-apple-darwin.tar.gz) = 89fb9234cf6a4889f20da2ae8eff6935d5a15f66
+SHA512 (rust-1.29.2-x86_64-apple-darwin.tar.gz) = 6007d5656879946421830fb517a087c8cb5bc001796f0e35999739313afc9873edf1f6345a3dd76b222a3c9cf92863e616352b2fddb3e05689501a5e0ccaaada
+Size (rust-1.29.2-x86_64-apple-darwin.tar.gz) = 197886185 bytes
+SHA1 (rust-1.29.2-x86_64-sun-solaris.tar.gz) = f977806d9a36edd0726cb450aa53b988edce3544
+RMD160 (rust-1.29.2-x86_64-sun-solaris.tar.gz) = 09770cc62b000e45fc7850e73bfd5536eb28a4f8
+SHA512 (rust-1.29.2-x86_64-sun-solaris.tar.gz) = 9788e8168d1164f45977801dd74f0c1715c45718d8bd738b1865d4eb40152090312853e862b7e97efcc4d96ca7c1a55b330e75e97d42302ea131acd6368c4a71
+Size (rust-1.29.2-x86_64-sun-solaris.tar.gz) = 200072936 bytes
+SHA1 (rust-1.29.2-x86_64-unknown-freebsd.tar.gz) = e78583ea8f746ded91b06fb3b5e1995b0b5d093d
+RMD160 (rust-1.29.2-x86_64-unknown-freebsd.tar.gz) = 9d88ea3ddf199379b63c807a115e96ba1e51cbc0
+SHA512 (rust-1.29.2-x86_64-unknown-freebsd.tar.gz) = df5f93809374792182979cdf03e2e0aa7070626ee4f0524a6ca0ccd6e1f8b17d4f080c3698920691af282a296250887d96792a2f49344b622ebf6be027e9a80d
+Size (rust-1.29.2-x86_64-unknown-freebsd.tar.gz) = 168453934 bytes
+SHA1 (rust-1.29.2-x86_64-unknown-linux-gnu.tar.gz) = 17d02b8f2f267b0685a8ca84d29019315cebe56d
+RMD160 (rust-1.29.2-x86_64-unknown-linux-gnu.tar.gz) = ec2cdf64118a8b04af220679a61f7cb1fbb08ef1
+SHA512 (rust-1.29.2-x86_64-unknown-linux-gnu.tar.gz) = 001fb1e3097fff9369d3689839ec220b867c0aaa48683c83959c57c090d28c47cc73d42191e8191e44c7360e4fc5b7f4600c3474f8dcb3e08b2fceaf63e0eb3e
+Size (rust-1.29.2-x86_64-unknown-linux-gnu.tar.gz) = 239060356 bytes
+SHA1 (rust-1.29.2-x86_64-unknown-netbsd.tar.gz) = aa676b3e41819f45002a8a53ea4ac44c9a20ce52
+RMD160 (rust-1.29.2-x86_64-unknown-netbsd.tar.gz) = 37ab8acb22ea4704685dadb98686534659b78834
+SHA512 (rust-1.29.2-x86_64-unknown-netbsd.tar.gz) = 53d694f5992bd0b23f2cfa8f8a4cdcf4a5519f54116595a24ddd0e17bc702b22e03334dcea220422fba3265ea1943b6c35ba9f4ba95e5df033e0156849789df2
+Size (rust-1.29.2-x86_64-unknown-netbsd.tar.gz) = 170790134 bytes
+SHA1 (rust-1.30.0-sparc64-unknown-netbsd.tar.gz) = 1edfa3f97907e8928c981d780365ba1b4280f13b
+RMD160 (rust-1.30.0-sparc64-unknown-netbsd.tar.gz) = 77491a973454d9739e94aa8a5714b671fc03a142
+SHA512 (rust-1.30.0-sparc64-unknown-netbsd.tar.gz) = 20149598946d37f3c4bdda4218f3abd1a398c41bc6a0e9b59ee098c18888d90b187c45885f7373211878b67a0815421426fc333b1649ff5efc7b99b6193c808c
+Size (rust-1.30.0-sparc64-unknown-netbsd.tar.gz) = 211548613 bytes
+SHA1 (rust-std-1.29.1-i686-unknown-netbsd.tar.gz) = 780e312a679d76e1c6dce3f4c229659b1b7d4129
+RMD160 (rust-std-1.29.1-i686-unknown-netbsd.tar.gz) = 27cc1ce28e043ded963447eff20a9ab138bd65bf
+SHA512 (rust-std-1.29.1-i686-unknown-netbsd.tar.gz) = 26bcd7060a90a1ad8489b5a10af62633ab5f645505d8264a77541a0f21e117fa644ceefa08a26a116a14a14a8ae0d477b558875f8e0802dd679a885561ec1fd7
+Size (rust-std-1.29.1-i686-unknown-netbsd.tar.gz) = 67448280 bytes
SHA1 (rust-std-1.29.2-armv7-unknown-netbsd-eabihf.tar.gz) = f8c582a5e1d46e79c3ac5ff92f0276cec4f0a683
RMD160 (rust-std-1.29.2-armv7-unknown-netbsd-eabihf.tar.gz) = f1e8784c0248e29762dc6eee87abf453c328387d
SHA512 (rust-std-1.29.2-armv7-unknown-netbsd-eabihf.tar.gz) = b2d3dee987be5e53e23b438cc1995496cd4f8e41defc12f5593a0a7110a979580a7083053838261233d99e80a8714f72e5701149b76fa27402501e70867b0788
Size (rust-std-1.29.2-armv7-unknown-netbsd-eabihf.tar.gz) = 67066071 bytes
+SHA1 (rust-std-1.29.2-i686-apple-darwin.tar.gz) = bc79f741ed43c690ac6cdb76ef42262daf9fc48e
+RMD160 (rust-std-1.29.2-i686-apple-darwin.tar.gz) = f3f3ce75da15fa436e0bc97eaf1ce3d352e26b28
+SHA512 (rust-std-1.29.2-i686-apple-darwin.tar.gz) = e74c1f759d324970322dedfd440a1bc27452d01f256242777d0f6409ab585839edb2a064f917a2548ecb556c7b5f70052c4fb41c0aeec9f60c781b8568908e97
+Size (rust-std-1.29.2-i686-apple-darwin.tar.gz) = 57955341 bytes
+SHA1 (rust-std-1.29.2-i686-unknown-freebsd.tar.gz) = 3c7b6db4d263c3b5744a5fc7bdb66f13e97471f4
+RMD160 (rust-std-1.29.2-i686-unknown-freebsd.tar.gz) = 362cf7e95948056ce8bc8430af1a760e5785a267
+SHA512 (rust-std-1.29.2-i686-unknown-freebsd.tar.gz) = c7fb7c050ff39786c4cef2caba68a16ad2c53ba6db1af4fe522012c8143b0746a41970b66338992e9d6ba393be2f9ada4f2a54dd63e651e9c16ba16168da500d
+Size (rust-std-1.29.2-i686-unknown-freebsd.tar.gz) = 64847326 bytes
+SHA1 (rust-std-1.29.2-i686-unknown-linux-gnu.tar.gz) = b66406af7eb8d677d63ea82be422f27f3f9e7b9e
+RMD160 (rust-std-1.29.2-i686-unknown-linux-gnu.tar.gz) = 83f178e23cd317dd9f10e2df1d064a70e2877e33
+SHA512 (rust-std-1.29.2-i686-unknown-linux-gnu.tar.gz) = 6e448ace11dbd1cad2ce4616001f46455b2dc3b9280ed1cd1cf011f46b902cabca9fb279dfc2e61d847984de165bfbc1ff9b4d435c7a593e452fd2fba1f044c9
+Size (rust-std-1.29.2-i686-unknown-linux-gnu.tar.gz) = 66619664 bytes
SHA1 (rust-std-1.29.2-powerpc-unknown-netbsd.tar.gz) = 6c4c6a80de89bb49cf16a107cfa72f72251a8b4b
RMD160 (rust-std-1.29.2-powerpc-unknown-netbsd.tar.gz) = c39482b3b02ed7847cc467d330dcd76bff5b5dc4
SHA512 (rust-std-1.29.2-powerpc-unknown-netbsd.tar.gz) = 983cc506adf0fdff972933840fa52c945976d1a5a4bad7c5ed16f09573a681cf55584d0ef506c2b8cff492232e7044ca6a10694d1120044949d7293393b6ad83
Size (rust-std-1.29.2-powerpc-unknown-netbsd.tar.gz) = 65214754 bytes
-SHA1 (rust-std-1.29.2-sparc64-unknown-netbsd.tar.gz) = 06dff3e98bea005c1c2fb09873dd9e96374826b6
-RMD160 (rust-std-1.29.2-sparc64-unknown-netbsd.tar.gz) = 332fbd5b27a6d8d9f0557b336e696dd99dd3e2b5
-SHA512 (rust-std-1.29.2-sparc64-unknown-netbsd.tar.gz) = 4349bd64a5ed0859240201f11ee3cf2fa19cd71128f66375e8ebbc9cd62a4ab86ca50f342d2cf708a0e7aae5b19d6a3797a2841d42ad648dce15281839c2bc92
-Size (rust-std-1.29.2-sparc64-unknown-netbsd.tar.gz) = 67192130 bytes
-SHA1 (rustc-1.29.2-src.tar.gz) = f286ff79eaaa8577f1f0e1cd8dd6a349c15b9484
-RMD160 (rustc-1.29.2-src.tar.gz) = 09aaf28ac12c401653880cbd90041f242e25142b
-SHA512 (rustc-1.29.2-src.tar.gz) = c72065d53a401b57818ec7751816095bbb0f31821810010a2c506ab12c2bacd1e0fe9da9b244952d930da3116ac6fab90f9fc240f7ad9c1788dbfd6bfaa8d1be
-Size (rustc-1.29.2-src.tar.gz) = 105727098 bytes
+SHA1 (rust-std-1.29.2-x86_64-apple-darwin.tar.gz) = 352ba437f33424bcfdd45d3b6874ae8e7c5b6695
+RMD160 (rust-std-1.29.2-x86_64-apple-darwin.tar.gz) = 9c4a2a2ec906a0b8d71adc3619f76ce71f310716
+SHA512 (rust-std-1.29.2-x86_64-apple-darwin.tar.gz) = 7525eecf4f6551709d8bef51b26798a0480de7d1c029f6cbc041d5221e18bf6193eee6be74dd47ab5e072bba6d34ada743997b6334509fa944b39dfd50a4a7e9
+Size (rust-std-1.29.2-x86_64-apple-darwin.tar.gz) = 59230589 bytes
+SHA1 (rust-std-1.29.2-x86_64-unknown-freebsd.tar.gz) = 554a5b05de902585c2b0122726cddf79572714c6
+RMD160 (rust-std-1.29.2-x86_64-unknown-freebsd.tar.gz) = 24be40fb0a752b9d37e11080299e934410d39779
+SHA512 (rust-std-1.29.2-x86_64-unknown-freebsd.tar.gz) = 2bb174ed0055ffc4c86b5d0aa7840688353aa6ad20b2c3ad383b46ceed124629b1e802a4878e74a0027f0be20d16ec9d8d41ba6b837f9a821d1f8fbbd962dc8b
+Size (rust-std-1.29.2-x86_64-unknown-freebsd.tar.gz) = 64503048 bytes
+SHA1 (rust-std-1.29.2-x86_64-unknown-linux-gnu.tar.gz) = 1e0383c959609e912f7194408679bf80c8f9a450
+RMD160 (rust-std-1.29.2-x86_64-unknown-linux-gnu.tar.gz) = 119af61065b836b201dbfa9e03d1614518b19bfb
+SHA512 (rust-std-1.29.2-x86_64-unknown-linux-gnu.tar.gz) = 27aa05576cdc1ff7e38392a97dab8ef743065c286b371c69663f2fce33c650bf81c901c1f520a83849e8d0a38c0f2aa53ac13519e765d7dccd54cf96b754a36c
+Size (rust-std-1.29.2-x86_64-unknown-linux-gnu.tar.gz) = 68214692 bytes
+SHA1 (rust-std-1.29.2-x86_64-unknown-netbsd.tar.gz) = da1296b5c04d1b7f57fdee194ab792db596de8e9
+RMD160 (rust-std-1.29.2-x86_64-unknown-netbsd.tar.gz) = bb0e0f16eb1562d7b0f8df7a5a1bb38d9e314816
+SHA512 (rust-std-1.29.2-x86_64-unknown-netbsd.tar.gz) = baed9dd404eee143918e1ed42882e5067bd5374fb870eec988c0ee8d3e3985384f5a58e395dbc16f9ff6846860352b8f03cce25bba0209984f768a223d0a1f1a
+Size (rust-std-1.29.2-x86_64-unknown-netbsd.tar.gz) = 66834971 bytes
+SHA1 (rust-std-1.30.0-sparc64-unknown-netbsd.tar.gz) = 2fe0fee646e503c13d9f9e9031618df3a50c789e
+RMD160 (rust-std-1.30.0-sparc64-unknown-netbsd.tar.gz) = f96e6e863466f48342ac369aa714b2d24311dc78
+SHA512 (rust-std-1.30.0-sparc64-unknown-netbsd.tar.gz) = 9a8b40347a0ea094e9fbb5ee868fff88fd7a981f5721adcfd162fd7c1445b6d8b623f01a753cb9483cb91d5878e04fa894c84edc85f005e884131433ce56558b
+Size (rust-std-1.30.0-sparc64-unknown-netbsd.tar.gz) = 69501419 bytes
+SHA1 (rustc-1.30.0-src.tar.gz) = 682f6dddecf0d612ab3029afe63fc4f49ca8e3d8
+RMD160 (rustc-1.30.0-src.tar.gz) = 94a3905854ed41875c6b68b0cc5c056d095fefa4
+SHA512 (rustc-1.30.0-src.tar.gz) = a4737727818397a26974449e9e7ddc09ae7430a08102ae05729317b19675fa89ad82a8f5bc5b7c913d894866a30dfe3c539c80e29c2b0ade6ecde06db8216981
+Size (rustc-1.30.0-src.tar.gz) = 149490609 bytes
SHA1 (patch-src_bootstrap_bin_rustc.rs) = 0abf893090a6053e01fd658096d9a2b5b8c144da
-SHA1 (patch-src_bootstrap_bootstrap.py) = ed0c794ed15454acb3cbb9ede38ed76be35c7ca6
+SHA1 (patch-src_bootstrap_bootstrap.py) = 96ef9368eaa5e10e607ff031d50ed05f3a915775
SHA1 (patch-src_bootstrap_lib.rs) = d86e173b931099730a4f18d044d7977c89f87b91
SHA1 (patch-src_libbacktrace_configure) = b2c1e9b93a99408aad42ab9f1af27704cc81bdd8
SHA1 (patch-src_liblibc_src_unix_solaris_mod.rs) = aeb7c22995e33c700ce3ea4336368a1fd08120e1
SHA1 (patch-src_libstd_build.rs) = 1edbf87339bd88e3178d4fa2fc408a6e802ed488
SHA1 (patch-src_libstd_sys_unix_thread.rs) = 46ef46365658e2f895bd3dde9c74f352890e9ccc
+SHA1 (patch-src_libsyntax__pos_span__encoding.rs) = c891cffab8ae47b13b3b391ddd1a6c62ee2b38f3
SHA1 (patch-src_llvm_CMakeLists.txt) = ffdf4337fdc84d8314c97c4e492e6b84244a99d1
SHA1 (patch-src_llvm_cmake_modules_AddLLVM.cmake) = f0620ac62ecfb1d62d2dfa61b4c063d21c29b8f5
SHA1 (patch-src_llvm_include_llvm-c_DataTypes.h) = 432693204912e79059ee31e815ad1e24f3236374
SHA1 (patch-src_llvm_include_llvm_Analysis_ConstantFolding.h) = 861089ea7ec8985b9b9fce53ffadfa3e9eed4a72
+SHA1 (patch-src_tools_cargo_src_cargo_core_profiles.rs) = 17e19ccaf29e5d2e6a42c5e59837169ebbc7c58e
+SHA1 (patch-src_tools_cargo_tests_testsuite_build.rs) = 10c0f9cc2f2c4fdc651fc123ef5d84cadf93feb5
Index: pkgsrc/lang/rust/patches/patch-src_bootstrap_bootstrap.py
diff -u pkgsrc/lang/rust/patches/patch-src_bootstrap_bootstrap.py:1.1 pkgsrc/lang/rust/patches/patch-src_bootstrap_bootstrap.py:1.2
--- pkgsrc/lang/rust/patches/patch-src_bootstrap_bootstrap.py:1.1 Sat Oct 13 10:03:37 2018
+++ pkgsrc/lang/rust/patches/patch-src_bootstrap_bootstrap.py Mon Oct 29 22:24:11 2018
@@ -1,12 +1,13 @@
-$NetBSD: patch-src_bootstrap_bootstrap.py,v 1.1 2018/10/13 10:03:37 he Exp $
+$NetBSD: patch-src_bootstrap_bootstrap.py,v 1.2 2018/10/29 22:24:11 he Exp $
Use `uname -p` on NetBSD, as that's reliable & sensible there.
Also force debuginfo to 0, otherwise the build doesn't work on
NetBSD/macppc (powerpc).
+Also, handle earmv7hf for NetBSD.
--- src/bootstrap/bootstrap.py.orig 2018-09-20 17:28:03.000000000 +0000
+++ src/bootstrap/bootstrap.py
-@@ -193,6 +193,11 @@ def default_build_triple():
+@@ -196,6 +196,11 @@ def default_build_triple():
'OpenBSD': 'unknown-openbsd'
}
@@ -18,12 +19,17 @@ NetBSD/macppc (powerpc).
# Consider the direct transformation first and then the special cases
if ostype in ostype_mapper:
ostype = ostype_mapper[ostype]
-@@ -619,7 +624,7 @@ class RustBuild(object):
- env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
- (os.pathsep + env["LIBRARY_PATH"]) \
- if "LIBRARY_PATH" in env else ""
-- env["RUSTFLAGS"] = "-Cdebuginfo=2 "
-+ env["RUSTFLAGS"] = "-Cdebuginfo=0 "
-
- build_section = "target.{}".format(self.build_triple())
- target_features = []
+@@ -275,10 +280,12 @@ def default_build_triple():
+ ostype = 'linux-androideabi'
+ else:
+ ostype += 'eabihf'
+- elif cputype in {'armv7l', 'armv8l'}:
++ elif cputype in {'armv7l', 'armv8l', 'earmv7hf'}:
+ cputype = 'armv7'
+ if ostype == 'linux-android':
+ ostype = 'linux-androideabi'
++ elif ostype == 'unknown-netbsd':
++ ostype += '-eabihf'
+ else:
+ ostype += 'eabihf'
+ elif cputype == 'mips':
Added files:
Index: pkgsrc/lang/rust/patches/patch-src_libsyntax__pos_span__encoding.rs
diff -u /dev/null pkgsrc/lang/rust/patches/patch-src_libsyntax__pos_span__encoding.rs:1.1
--- /dev/null Mon Oct 29 22:24:11 2018
+++ pkgsrc/lang/rust/patches/patch-src_libsyntax__pos_span__encoding.rs Mon Oct 29 22:24:11 2018
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_libsyntax__pos_span__encoding.rs,v 1.1 2018/10/29 22:24:11 he Exp $
+
+Workaround for compiler bug hitting sparc64 causing unaligned accesses.
+
+--- src/libsyntax_pos/span_encoding.rs.orig 2018-10-24 20:00:01.000000000 +0000
++++ src/libsyntax_pos/span_encoding.rs
+@@ -26,7 +26,9 @@ use std::hash::{Hash, Hasher};
+ /// The primary goal of `Span` is to be as small as possible and fit into other structures
+ /// (that's why it uses `packed` as well). Decoding speed is the second priority.
+ /// See `SpanData` for the info on span fields in decoded representation.
+-#[repr(packed)]
++
++/// Workaround for compiler bug: https://github.com/rust-lang/rust/issues/53181
++#[cfg_attr(not(any(target_arch = "sparc64", target_arch = "sparcv9")), repr(packed))]
+ pub struct Span(u32);
+
+ impl Copy for Span {}
Index: pkgsrc/lang/rust/patches/patch-src_tools_cargo_src_cargo_core_profiles.rs
diff -u /dev/null pkgsrc/lang/rust/patches/patch-src_tools_cargo_src_cargo_core_profiles.rs:1.1
--- /dev/null Mon Oct 29 22:24:11 2018
+++ pkgsrc/lang/rust/patches/patch-src_tools_cargo_src_cargo_core_profiles.rs Mon Oct 29 22:24:11 2018
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_tools_cargo_src_cargo_core_profiles.rs,v 1.1 2018/10/29 22:24:11 he Exp $
+
+Turn off incremental builds for sparc64, ref.
+https://sources.debian.org/patches/cargo/0.29.0-1/2007_sparc64_disable_incremental_build.patch/
+
+--- ./src/tools/cargo/src/cargo/core/profiles.rs.orig 2018-10-24 20:01:28.000000000 +0000
++++ ./src/tools/cargo/src/cargo/core/profiles.rs
+@@ -458,6 +458,9 @@ impl Profile {
+ debuginfo: Some(2),
+ debug_assertions: true,
+ overflow_checks: true,
++ #[cfg(target_arch = "sparc64")]
++ incremental: false,
++ #[cfg(not(target_arch = "sparc64"))]
+ incremental: true,
+ ..Profile::default()
+ }
Index: pkgsrc/lang/rust/patches/patch-src_tools_cargo_tests_testsuite_build.rs
diff -u /dev/null pkgsrc/lang/rust/patches/patch-src_tools_cargo_tests_testsuite_build.rs:1.1
--- /dev/null Mon Oct 29 22:24:11 2018
+++ pkgsrc/lang/rust/patches/patch-src_tools_cargo_tests_testsuite_build.rs Mon Oct 29 22:24:11 2018
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_tools_cargo_tests_testsuite_build.rs,v 1.1 2018/10/29 22:24:11 he Exp $
+
+Don't attempt incremental operations on sparc64, ref.
+https://sources.debian.org/patches/cargo/0.29.0-1/2007_sparc64_disable_incremental_build.patch/
+
+--- ./src/tools/cargo/tests/testsuite/build.rs.orig 2018-10-24 20:01:28.000000000 +0000
++++ ./src/tools/cargo/tests/testsuite/build.rs
+@@ -38,6 +38,7 @@ fn cargo_fail_with_no_stderr() {
+
+ /// Check that the `CARGO_INCREMENTAL` environment variable results in
+ /// `rustc` getting `-Zincremental` passed to it.
++#[cfg(not(target_arch = "sparc64"))]
+ #[test]
+ fn cargo_compile_incremental() {
+ let p = project()
+@@ -58,6 +59,7 @@ fn cargo_compile_incremental() {
+ ).run();
+ }
+
++#[cfg(not(target_arch = "sparc64"))]
+ #[test]
+ fn incremental_profile() {
+ let p = project()
+@@ -99,6 +101,7 @@ fn incremental_profile() {
+ .run();
+ }
+
++#[cfg(not(target_arch = "sparc64"))]
+ #[test]
+ fn incremental_config() {
+ let p = project()
Home |
Main Index |
Thread Index |
Old Index