Provide rustc-1.0.0-beta as the default for rustc
The patch injects full paths to utilities rather then expects to find then in the environment. Also remove alphas.
This commit is contained in:
parent
3fb880fc77
commit
7a51920367
@ -1,17 +0,0 @@
|
||||
{ stdenv, callPackage }:
|
||||
callPackage ./makeRustcDerivation.nix {
|
||||
shortVersion = "1.0.0-alpha";
|
||||
isRelease = true;
|
||||
srcSha = "0p62gx3s087n09d2v3l9iyfx5cmsa1x91n4ysixcb7w3drr8a8is";
|
||||
snapshotHashLinux686 = "d8b73fc9aa3ad72ce1408a41e35d78dba10eb4d4";
|
||||
snapshotHashLinux64 = "697880d3640e981bbbf23284363e8e9a158b588d";
|
||||
snapshotHashDarwin686 = "a73b1fc03e8cac747aab0aa186292bb4332a7a98";
|
||||
snapshotHashDarwin64 = "e4ae2670ea4ba5c2e5b4245409c9cab45c9eeb5b";
|
||||
snapshotDate = "2015-01-07";
|
||||
snapshotRev = "9e4e524";
|
||||
patches = [
|
||||
./patches/hardcode_paths.alpha.patch
|
||||
./patches/local_stage0.alpha.patch
|
||||
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
||||
}
|
||||
|
@ -1,16 +0,0 @@
|
||||
{ stdenv, callPackage }:
|
||||
callPackage ./makeRustcDerivation.nix {
|
||||
shortVersion = "1.0.0-alpha.2";
|
||||
isRelease = true;
|
||||
srcSha = "1j2n34w0hdz7jrl100c9q9hl80l8nsc3xwnzizv9sh4gx52vjcd9";
|
||||
snapshotHashLinux686 = "191ed5ec4f17e32d36abeade55a1c6085e51245c";
|
||||
snapshotHashLinux64 = "acec86045632f4f3f085c072ba696f889906dffe";
|
||||
snapshotHashDarwin686 = "9d9e622584bfa318f32bcb5b9ce6a365febff595";
|
||||
snapshotHashDarwin64 = "e96c1e9860b186507cc75c186d1b96d44df12292";
|
||||
snapshotDate = "2015-02-17";
|
||||
snapshotRev = "f1bb6c2";
|
||||
patches = [
|
||||
./patches/alpha2.patch
|
||||
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
||||
}
|
||||
|
15
pkgs/development/compilers/rustc/1.0.0-beta.nix
Normal file
15
pkgs/development/compilers/rustc/1.0.0-beta.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ stdenv, callPackage }:
|
||||
callPackage ./makeRustcDerivation.nix {
|
||||
shortVersion = "1.0.0-beta";
|
||||
isRelease = true;
|
||||
srcSha = "94248e30487723ac6f6c34a0db5a21085c0b1338e6a32bd12b159e1d2cd80451";
|
||||
snapshotHashLinux686 = "1ef82402ed16f5a6d2f87a9a62eaa83170e249ec";
|
||||
snapshotHashLinux64 = "ef2154372e97a3cb687897d027fd51c8f2c5f349";
|
||||
snapshotHashDarwin686 = "0310b1a970f2da7e61770fd14dbbbdca3b518234";
|
||||
snapshotHashDarwin64 = "5f35d9c920b8083a7420ef8cf5b00d5ef3085dfa";
|
||||
snapshotDate = "2015-03-27";
|
||||
snapshotRev = "5520801";
|
||||
patches = [
|
||||
./patches/beta.patch
|
||||
] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
diff --git a/src/etc/local_stage0.sh b/src/etc/local_stage0.sh
|
||||
index b506aff..b4b346b 100755
|
||||
index ca59b1c..65ee7bf 100755
|
||||
--- a/src/etc/local_stage0.sh
|
||||
+++ b/src/etc/local_stage0.sh
|
||||
@@ -50,11 +50,6 @@ if [ -z $TARG_DIR ]; then
|
||||
@ -15,11 +15,11 @@ index b506aff..b4b346b 100755
|
||||
# do not fail if one of the above fails, as all we need is a working rustc!
|
||||
exit 0
|
||||
diff --git a/src/librustc_back/archive.rs b/src/librustc_back/archive.rs
|
||||
index c45ee25..0f91672 100644
|
||||
index ed44bf8..2b84627 100644
|
||||
--- a/src/librustc_back/archive.rs
|
||||
+++ b/src/librustc_back/archive.rs
|
||||
@@ -54,7 +54,7 @@ fn run_ar(handler: &ErrorHandler, maybe_ar_prog: &Option<String>,
|
||||
paths: &[&Path]) -> ProcessOutput {
|
||||
@@ -57,7 +57,7 @@ fn run_ar(handler: &ErrorHandler, maybe_ar_prog: &Option<String>,
|
||||
paths: &[&Path]) -> Output {
|
||||
let ar = match *maybe_ar_prog {
|
||||
Some(ref ar) => &ar[..],
|
||||
- None => "ar"
|
||||
@ -28,10 +28,10 @@ index c45ee25..0f91672 100644
|
||||
let mut cmd = Command::new(ar);
|
||||
|
||||
diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs
|
||||
index ef849bb..e090b99 100644
|
||||
index 3087a8e..578448f 100644
|
||||
--- a/src/librustc_trans/back/link.rs
|
||||
+++ b/src/librustc_trans/back/link.rs
|
||||
@@ -350,8 +350,8 @@ pub fn mangle_internal_name_by_path_and_seq(path: PathElems, flav: &str) -> Stri
|
||||
@@ -352,7 +352,7 @@ pub fn mangle_internal_name_by_path_and_seq(path: PathElems, flav: &str) -> Stri
|
||||
|
||||
pub fn get_cc_prog(sess: &Session) -> String {
|
||||
match sess.opts.cg.linker {
|
||||
@ -41,15 +41,3 @@ index ef849bb..e090b99 100644
|
||||
+ None => "@ccPath@".to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
diff --git a/src/test/run-pass/issue-20797.rs b/src/test/run-pass/issue-20797.rs
|
||||
index 049e08d..30b9d2a 100644
|
||||
--- a/src/test/run-pass/issue-20797.rs
|
||||
+++ b/src/test/run-pass/issue-20797.rs
|
||||
@@ -90,5 +90,5 @@ impl<S: Strategy> Iterator for Subpaths<S> {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
- let mut walker: Subpaths<Recursive> = Subpaths::walk(&Path::new("/home")).unwrap();
|
||||
+ let mut walker: Subpaths<Recursive> = Subpaths::walk(&Path::new("/tmp")).unwrap();
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
diff --git a/src/librustc_back/archive.rs b/src/librustc_back/archive.rs
|
||||
index 7ea192b..cd5d01b 100644
|
||||
--- a/src/librustc_back/archive.rs
|
||||
+++ b/src/librustc_back/archive.rs
|
||||
@@ -54,7 +54,7 @@ fn run_ar(handler: &ErrorHandler, maybe_ar_prog: &Option<String>,
|
||||
paths: &[&Path]) -> ProcessOutput {
|
||||
let ar = match *maybe_ar_prog {
|
||||
Some(ref ar) => &ar[],
|
||||
- None => "ar"
|
||||
+ None => "@arPath@"
|
||||
};
|
||||
let mut cmd = Command::new(ar);
|
||||
|
||||
diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs
|
||||
index dacf620..815ce60 100644
|
||||
--- a/src/librustc_trans/back/link.rs
|
||||
+++ b/src/librustc_trans/back/link.rs
|
||||
@@ -348,8 +348,8 @@ pub fn mangle_internal_name_by_path_and_seq(path: PathElems, flav: &str) -> Stri
|
||||
|
||||
pub fn get_cc_prog(sess: &Session) -> String {
|
||||
match sess.opts.cg.linker {
|
||||
- Some(ref linker) => return linker.to_string(),
|
||||
- None => sess.target.target.options.linker.clone(),
|
||||
+ Some(ref linker) => linker.to_string(),
|
||||
+ None => "@ccPath@".to_string(),
|
||||
}
|
||||
}
|
||||
|
@ -1,16 +0,0 @@
|
||||
diff --git a/src/etc/local_stage0.sh b/src/etc/local_stage0.sh
|
||||
index e78f231..6b6773b 100755
|
||||
--- a/src/etc/local_stage0.sh
|
||||
+++ b/src/etc/local_stage0.sh
|
||||
@@ -53,11 +53,6 @@
|
||||
fi
|
||||
|
||||
cp ${PREFIX}/bin/rustc${BIN_SUF} ${TARG_DIR}/stage0/bin/
|
||||
-cp ${PREFIX}/${LIB_DIR}/${RUSTLIBDIR}/${TARG_DIR}/${LIB_DIR}/* ${TARG_DIR}/stage0/${LIB_DIR}/
|
||||
-cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}extra*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
|
||||
-cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}rust*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
|
||||
-cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}std*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
|
||||
-cp ${PREFIX}/${LIB_DIR}/${LIB_PREFIX}syntax*${LIB_SUF} ${TARG_DIR}/stage0/${LIB_DIR}/
|
||||
|
||||
# do not fail if one of the above fails, as all we need is a working rustc!
|
||||
exit 0
|
@ -4312,10 +4312,9 @@ let
|
||||
ocaml = ocaml_3_08_0;
|
||||
};
|
||||
|
||||
rustcAlpha = callPackage ../development/compilers/rustc/1.0.0-alpha.nix {};
|
||||
rustcAlpha2 = callPackage ../development/compilers/rustc/1.0.0-alpha2.nix {};
|
||||
rustcBeta = callPackage ../development/compilers/rustc/1.0.0-beta.nix {};
|
||||
rustcMaster = callPackage ../development/compilers/rustc/head.nix {};
|
||||
rustc = rustcAlpha2;
|
||||
rustc = rustcBeta;
|
||||
|
||||
|
||||
sbclBootstrap = callPackage ../development/compilers/sbcl/bootstrap.nix {};
|
||||
|
Loading…
Reference in New Issue
Block a user