From b26aa99d9dbda8ef5e83625d88977aedb63f7443 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Wed, 23 Dec 2015 23:21:35 +0000 Subject: [PATCH] rustc: 1.4.0 -> 1.5.0 --- pkgs/development/compilers/rustc/default.nix | 7 +++--- pkgs/development/compilers/rustc/head.nix | 2 +- .../compilers/rustc/patches/grsec-head.patch | 24 ------------------- .../compilers/rustc/patches/grsec.patch | 16 +++++++++---- 4 files changed, 16 insertions(+), 33 deletions(-) delete mode 100644 pkgs/development/compilers/rustc/patches/grsec-head.patch diff --git a/pkgs/development/compilers/rustc/default.nix b/pkgs/development/compilers/rustc/default.nix index 19e746d7dbf3..1a2e9b1e4bb2 100644 --- a/pkgs/development/compilers/rustc/default.nix +++ b/pkgs/development/compilers/rustc/default.nix @@ -1,11 +1,11 @@ { stdenv, callPackage }: callPackage ./generic.nix { - shortVersion = "1.4.0"; + shortVersion = "1.5.0"; isRelease = true; - forceBundledLLVM = false; + forceBundledLLVM = true; configureFlags = [ "--release-channel=stable" ]; - srcSha = "13wpi9nb3h6wwck2mxhza85fahzcwgas00w8m25086v34dha4dp1"; + srcSha = "1vfpwx6a2f2rn528774cz9r7r82ppycn8z8ybll6bphdw7cyar1g"; /* Rust is bootstrapped from an earlier built version. We need to fetch these earlier versions, which vary per platform. @@ -22,7 +22,6 @@ callPackage ./generic.nix { snapshotDate = "2015-08-11"; snapshotRev = "1af31d4"; - # cc-ar-opts.patch should be removable in 1.4.0+ patches = [ ./patches/remove-uneeded-git.patch ] ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch; } diff --git a/pkgs/development/compilers/rustc/head.nix b/pkgs/development/compilers/rustc/head.nix index ac2323483286..ccbfc51b671a 100644 --- a/pkgs/development/compilers/rustc/head.nix +++ b/pkgs/development/compilers/rustc/head.nix @@ -23,6 +23,6 @@ callPackage ./generic.nix { snapshotRev = "1af31d4"; patches = [ ./patches/remove-uneeded-git.patch ] - ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec-head.patch; + ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch; } diff --git a/pkgs/development/compilers/rustc/patches/grsec-head.patch b/pkgs/development/compilers/rustc/patches/grsec-head.patch deleted file mode 100644 index b97b40c24091..000000000000 --- a/pkgs/development/compilers/rustc/patches/grsec-head.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/src/test/run-make/relocation-model/Makefile b/src/test/run-make/relocation-model/Makefile -index b22f34f..c6489bd 100644 ---- a/src/test/run-make/relocation-model/Makefile -+++ b/src/test/run-make/relocation-model/Makefile -@@ -2,9 +2,11 @@ - - all: others - $(RUSTC) -C relocation-model=dynamic-no-pic foo.rs -+ paxctl -czexm $(TMPDIR)/foo - $(call RUN,foo) - - $(RUSTC) -C relocation-model=default foo.rs -+ paxctl -czexm $(TMPDIR)/foo - $(call RUN,foo) - - $(RUSTC) -C relocation-model=default --crate-type=dylib foo.rs -@@ -16,6 +18,7 @@ others: - else - others: - $(RUSTC) -C relocation-model=static foo.rs -+ paxctl -czexm $(TMPDIR)/foo - $(call RUN,foo) - $(RUSTC) -C relocation-model=static --crate-type=dylib foo.rs - endif diff --git a/pkgs/development/compilers/rustc/patches/grsec.patch b/pkgs/development/compilers/rustc/patches/grsec.patch index 84582ab7d70f..b97b40c24091 100644 --- a/pkgs/development/compilers/rustc/patches/grsec.patch +++ b/pkgs/development/compilers/rustc/patches/grsec.patch @@ -1,16 +1,24 @@ diff --git a/src/test/run-make/relocation-model/Makefile b/src/test/run-make/relocation-model/Makefile -index 2fcdd32..2d9ddb0 100644 +index b22f34f..c6489bd 100644 --- a/src/test/run-make/relocation-model/Makefile +++ b/src/test/run-make/relocation-model/Makefile -@@ -5,9 +5,11 @@ all: +@@ -2,9 +2,11 @@ + + all: others + $(RUSTC) -C relocation-model=dynamic-no-pic foo.rs ++ paxctl -czexm $(TMPDIR)/foo $(call RUN,foo) $(RUSTC) -C relocation-model=default foo.rs + paxctl -czexm $(TMPDIR)/foo $(call RUN,foo) + $(RUSTC) -C relocation-model=default --crate-type=dylib foo.rs +@@ -16,6 +18,7 @@ others: + else + others: $(RUSTC) -C relocation-model=static foo.rs + paxctl -czexm $(TMPDIR)/foo $(call RUN,foo) - - $(RUSTC) -C relocation-model=default --crate-type=dylib foo.rs + $(RUSTC) -C relocation-model=static --crate-type=dylib foo.rs + endif