git.iko.soy/typeable/nixpkgs
on master help sign in
rustcMaster: 2015-05-13 -> 2015-07-01
commitbb182c7944b34395e34d34e8d7706d53e0e65847 authorRicardo M. Correia <rcorreia@wizy.org> dateThu 9 Jul 2015, 19:23 (11 years ago) parent71c1644
3 files changed+33−55
pkgs/development/compilers/rustc/generic.nix+7 pkgs/development/compilers/rustc/head.nix+10−10 pkgs/development/compilers/rustc/patches/head.patch+16−45
pkgs/development/compilers/rustc/generic.nix+7
@@ -125,11 +125,18 @@ stdenv.mkDerivation {
125125 --subst-var-by "ccPath" "${stdenv.cc}/bin/cc"
126126 substituteInPlace src/librustc_back/archive.rs \
127127 --subst-var-by "arPath" "${stdenv.cc.binutils}/bin/ar"
128+ substituteInPlace src/librustc_back/target/mod.rs \
129+ --subst-var-by "ccPath" "${stdenv.cc}/bin/cc" \
130+ --subst-var-by "arPath" "${stdenv.cc.binutils}/bin/ar"
128131
129132 substituteInPlace src/rust-installer/gen-install-script.sh \
130133 --replace /bin/echo "${coreutils}/bin/echo"
131134 substituteInPlace src/rust-installer/gen-installer.sh \
132135 --replace /bin/echo "${coreutils}/bin/echo"
136+
137+ # Workaround for NixOS/nixpkgs#8676
138+ substituteInPlace mk/rustllvm.mk \
139+ --replace "\$\$(subst /,//," "\$\$(subst /,/,"
133140 '';
134141
135142 buildInputs = [ which file perl curl python27 makeWrapper git valgrind procps ];
pkgs/development/compilers/rustc/head.nix+10−10
@@ -1,16 +1,16 @@
11{ stdenv, callPackage }:
22callPackage ./generic.nix {
3− shortVersion = "1.0.0-dev";
3+ shortVersion = "2015-07-01";
44 isRelease = false;
5− # src rev for master on 2015-05-13
6− srcRev = "67433c1a309d3c9457e49f15e80a2d927d165996";
7− srcSha = "0idc3nh0sfjlv7m9710azx7n6awzwj6mhw3aybsb9bbagzy2sdsg";
8− snapshotHashLinux686 = "0bc8cffdce611fb71fd7d3d8e7cdbfaf748a4f16";
9− snapshotHashLinux64 = "94089740e48167c5975c92c139ae9c286764012f";
10− snapshotHashDarwin686 = "54cc35e76497e6e94fddf38d6e40e9d168491ddb";
11− snapshotHashDarwin64 = "43a1c1fba0d1dfee4c2ca310d506f8f5f51b3f6f";
12− snapshotDate = "2015-04-27";
13− snapshotRev = "857ef6e";
5+ # src rev for master on 2015-07-01
6+ srcRev = "bf3c979ec";
7+ srcSha = "1xp2fjffz5bwxfs37w80bdhy9lv091ps7xbnsvxid2i91rbxfrkk";
8+ snapshotHashLinux686 = "a6f22e481eabf098cc65bda97bf7e434a1fcc20b";
9+ snapshotHashLinux64 = "5fd8698fdfe953e6c4d86cf4fa1d5f3a0053248c";
10+ snapshotHashDarwin686 = "9a273324a6b63a40f67a553029c0a9fb692ffd1f";
11+ snapshotHashDarwin64 = "e5b12cb7c179fc98fa905a3c84803645d946a6ae";
12+ snapshotDate = "2015-05-24";
13+ snapshotRev = "ba0e1cd";
1414 patches = [
1515 ./patches/head.patch
1616 ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
pkgs/development/compilers/rustc/patches/head.patch+16−45
@@ -1,49 +1,20 @@
1−diff --git a/src/etc/local_stage0.sh b/src/etc/local_stage0.sh
2−index ca59b1c..65ee7bf 100755
3−--- a/src/etc/local_stage0.sh
4−+++ b/src/etc/local_stage0.sh
5−@@ -50,11 +50,6 @@ if [ -z $TARG_DIR ]; then
6− fi
7−
8− cp ${PREFIX}/bin/rustc${BIN_SUF} ${TARG_DIR}/stage0/bin/
9−-cp ${PREFIX}/${LIB_DIR}/${RUSTLIBDIR}/${TARG_DIR}/${LIB_DIR}/* ${TARG_DIR}/stage0/${LIB_DIR}/
10−-cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}extra*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
11−-cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}rust*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
12−-cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}std*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
13−-cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}syntax*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
14−
15− # do not fail if one of the above fails, as all we need is a working rustc!
16− exit 0
17−diff --git a/src/librustc_back/archive.rs b/src/librustc_back/archive.rs
18−index 9f5751c..c98828f 100644
19−--- a/src/librustc_back/archive.rs
20−+++ b/src/librustc_back/archive.rs
21−@@ -57,7 +57,7 @@ fn run_ar(handler: &ErrorHandler, maybe_ar_prog: &Option<String>,
22− paths: &[&Path]) -> Output {
23− let ar = match *maybe_ar_prog {
24− Some(ref ar) => &ar[..],
25−- None => "ar"
26−+ None => "@arPath@"
27− };
28− let mut cmd = Command::new(ar);
29−
30−diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs
31−index ad77735..1764f71 100644
32−--- a/src/librustc_trans/back/link.rs
33−+++ b/src/librustc_trans/back/link.rs
34−@@ -360,8 +360,8 @@ pub fn mangle_internal_name_by_path_and_seq(path: PathElems, flav: &str) -> Stri
35−
36− pub fn get_cc_prog(sess: &Session) -> String {
37− match sess.opts.cg.linker {
38−- Some(ref linker) => return linker.to_string(),
39−- None => sess.target.target.options.linker.clone(),
40−+ Some(ref linker) => linker.to_string(),
41−+ None => "@ccPath@".to_string(),
42− }
43− }
44−
1+diff --git a/src/librustc_back/target/mod.rs b/src/librustc_back/target/mod.rs
2+index a42f861..bda4bde 100644
3+--- a/src/librustc_back/target/mod.rs
4++++ b/src/librustc_back/target/mod.rs
5+@@ -172,8 +172,8 @@ impl Default for TargetOptions {
6+ /// incomplete, and if used for compilation, will certainly not work.
7+ fn default() -> TargetOptions {
8+ TargetOptions {
9+- linker: "cc".to_string(),
10+- ar: "ar".to_string(),
11++ linker: "@ccPath@".to_string(), // ignore-tidy-linelength
12++ ar: "@arPath@".to_string(), // ignore-tidy-linelength
13+ pre_link_args: Vec::new(),
14+ post_link_args: Vec::new(),
15+ cpu: "generic".to_string(),
4516diff --git a/src/test/run-pass/issue-20797.rs b/src/test/run-pass/issue-20797.rs
46−index 8b5e6f8..480ad79 100644
17+index 2772fc8..3d37b08 100644
4718--- a/src/test/run-pass/issue-20797.rs
4819+++ b/src/test/run-pass/issue-20797.rs
4920@@ -97,7 +97,7 @@ impl<S: Strategy> Iterator for Subpaths<S> {