bootstrap env: disable stackprotector hardening until gcc >=4.9

This commit is contained in:
Robin Gloster 2016-02-22 18:32:53 +00:00
parent 57d6a38ed5
commit 402d57ee8e
20 changed files with 60 additions and 2 deletions

View File

@ -220,6 +220,8 @@ stdenv.mkDerivation ({
inherit patches; inherit patches;
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
hardening_format = false; hardening_format = false;
postPatch = postPatch =

View File

@ -30,6 +30,9 @@ stdenv.mkDerivation rec {
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
patches = patches =
[ # Do not look in /usr etc. for dependencies. [ # Do not look in /usr etc. for dependencies.
./no-sys-dirs.patch ./no-sys-dirs.patch

View File

@ -18,6 +18,9 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
meta = { meta = {
description = "Library that generates loops for scanning polyhedra"; description = "Library that generates loops for scanning polyhedra";

View File

@ -11,6 +11,8 @@ stdenv.mkDerivation (rec {
outputs = [ "out" "doc" ]; outputs = [ "out" "doc" ];
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
hardening_format = false; hardening_format = false;
LDFLAGS = if stdenv.isSunOS then "-lm -lmd -lmp -luutil -lnvpair -lnsl -lidmap -lavl -lsec" else ""; LDFLAGS = if stdenv.isSunOS then "-lm -lmd -lmp -luutil -lnvpair -lnsl -lidmap -lavl -lsec" else "";

View File

@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ m4 ]; nativeBuildInputs = [ m4 ];
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
patches = if stdenv.isDarwin then [ ./need-size-t.patch ] else null; patches = if stdenv.isDarwin then [ ./need-size-t.patch ] else null;
configureFlags = configureFlags =

View File

@ -13,6 +13,9 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
meta = { meta = {
homepage = http://www.kotnet.org/~skimo/isl/; homepage = http://www.kotnet.org/~skimo/isl/;
license = stdenv.lib.licenses.lgpl21; license = stdenv.lib.licenses.lgpl21;

View File

@ -10,6 +10,9 @@ stdenv.mkDerivation (rec {
doCheck = true; doCheck = true;
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
# For cross-compiling, native glibc is needed for the "gencat" program. # For cross-compiling, native glibc is needed for the "gencat" program.
crossAttrs = { crossAttrs = {
nativeBuildInputs = [ glibc ]; nativeBuildInputs = [ glibc ];

View File

@ -16,6 +16,9 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
meta = { meta = {
description = "Library for multiprecision complex arithmetic with exact rounding"; description = "Library for multiprecision complex arithmetic with exact rounding";

View File

@ -13,6 +13,9 @@ stdenv.mkDerivation rec {
# mpfr.h requires gmp.h # mpfr.h requires gmp.h
propagatedBuildInputs = [ gmp ]; propagatedBuildInputs = [ gmp ];
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
configureFlags = configureFlags =
stdenv.lib.optional stdenv.isSunOS "--disable-thread-safe" ++ stdenv.lib.optional stdenv.isSunOS "--disable-thread-safe" ++
stdenv.lib.optional stdenv.is64bit "--with-pic"; stdenv.lib.optional stdenv.is64bit "--with-pic";

View File

@ -29,6 +29,9 @@ stdenv.mkDerivation (rec {
fi fi
''; '';
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
# As zlib takes part in the stdenv building, we don't want references # As zlib takes part in the stdenv building, we don't want references
# to the bootstrap-tools libgcc (as uses to happen on arm/mips) # to the bootstrap-tools libgcc (as uses to happen on arm/mips)
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.isDarwin) "-static-libgcc"; NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.isDarwin) "-static-libgcc";

View File

@ -39,6 +39,9 @@ stdenv.mkDerivation rec {
inherit noSysDirs; inherit noSysDirs;
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
preConfigure = '' preConfigure = ''
# Clear the default library search path. # Clear the default library search path.
if test "$noSysDirs" = "1"; then if test "$noSysDirs" = "1"; then

View File

@ -18,6 +18,9 @@ stdenv.mkDerivation rec {
# Upstream is aware of it; it may be in the next release. # Upstream is aware of it; it may be in the next release.
patches = [ ./s_isdir.patch ]; patches = [ ./s_isdir.patch ];
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
meta = { meta = {
homepage = http://www.gnu.org/software/m4/; homepage = http://www.gnu.org/software/m4/;
description = "GNU M4, a macro processor"; description = "GNU M4, a macro processor";

View File

@ -10,6 +10,9 @@ stdenv.mkDerivation rec {
setupHook = [ ./setup-hook.sh ]; setupHook = [ ./setup-hook.sh ];
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
meta = { meta = {
homepage = http://nixos.org/patchelf.html; homepage = http://nixos.org/patchelf.html;
license = "GPL"; license = "GPL";

View File

@ -17,6 +17,9 @@ stdenv.mkDerivation rec {
configureFlags = stdenv.lib.optional stdenv.isSunOS "AWK=${gawk}/bin/awk"; configureFlags = stdenv.lib.optional stdenv.isSunOS "AWK=${gawk}/bin/awk";
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
preInstall = '' preInstall = ''
installFlags="TEXMF=$out/texmf-dist"; installFlags="TEXMF=$out/texmf-dist";
installTargets="install install-tex"; installTargets="install install-tex";

View File

@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ m4 perl ] ++ stdenv.lib.optional stdenv.isSunOS help2man; nativeBuildInputs = [ m4 perl ] ++ stdenv.lib.optional stdenv.isSunOS help2man;
propagatedBuildInputs = [ m4 ]; propagatedBuildInputs = [ m4 ];
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
meta = { meta = {
homepage = "http://www.gnu.org/software/bison/"; homepage = "http://www.gnu.org/software/bison/";
description = "Yacc-compatible parser generator"; description = "Yacc-compatible parser generator";

View File

@ -34,6 +34,9 @@ stdenv.mkDerivation {
buildInputs = [perl]; buildInputs = [perl];
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
extraIncludeDirs = extraIncludeDirs =
if cross != null then if cross != null then
(if cross.arch == "powerpc" then ["ppc"] else []) (if cross.arch == "powerpc" then ["ppc"] else [])

View File

@ -18,6 +18,9 @@ stdenv.mkDerivation rec {
"MANDIR=share/man/man1" "MANDIR=share/man/man1"
]; ];
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
postInstall = "rm -rf $out/share/doc"; postInstall = "rm -rf $out/share/doc";
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://tukaani.org/xz/; homepage = http://tukaani.org/xz/;
description = "XZ, general-purpose data compression software, successor of LZMA"; description = "XZ, general-purpose data compression software, successor of LZMA";

View File

@ -20,6 +20,9 @@ let
sha256 = "0w11jw3fb5sslf0f72kxy7llxgk1ia3a6bcw0c9kmvxrlj355mx2"; sha256 = "0w11jw3fb5sslf0f72kxy7llxgk1ia3a6bcw0c9kmvxrlj355mx2";
}; };
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
patches = if stdenv.isCygwin then ./coreutils-8.23-4.cygwin.patch else patches = if stdenv.isCygwin then ./coreutils-8.23-4.cygwin.patch else
(if stdenv.isArm then (fetchurl { (if stdenv.isArm then (fetchurl {
url = "http://git.savannah.gnu.org/cgit/coreutils.git/patch/?id=3ba68f9e64fa2eb8af22d510437a0c6441feb5e0"; url = "http://git.savannah.gnu.org/cgit/coreutils.git/patch/?id=3ba68f9e64fa2eb8af22d510437a0c6441feb5e0";

View File

@ -8,6 +8,9 @@ stdenv.mkDerivation rec {
sha256 = "1bgafvy3ypbhhfznwjv1lxmd6mci3x1byilnnkc7gcr486wlb8pl"; sha256 = "1bgafvy3ypbhhfznwjv1lxmd6mci3x1byilnnkc7gcr486wlb8pl";
}; };
# FIXME needs gcc 4.9 in bootstrap tools
hardening_stackprotector = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://ftp.gnu.org/gnu/which/; homepage = http://ftp.gnu.org/gnu/which/;
platforms = platforms.all; platforms = platforms.all;