From 1c3f49e06f1e52b89095961d51352626ea54892a Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sun, 21 Jun 2009 18:37:54 +0000 Subject: [PATCH] * Changed version of gcc to 4.0.1 - 5484 on darwin * Added dsymutil to gcc wrapper env on darwin * turned off make check for gnugrep on darwin * added --enable-bsd=libs configure flag for gnugrep on darwin svn path=/nixpkgs/trunk/; revision=16014 --- pkgs/build-support/native-darwin-cctools-wrapper/builder.sh | 2 +- pkgs/development/compilers/gcc-apple/default.nix | 6 +++--- pkgs/os-specific/linux/e2fsprogs/1.41.5.nix | 4 ++-- pkgs/tools/text/gnugrep/default.nix | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/build-support/native-darwin-cctools-wrapper/builder.sh b/pkgs/build-support/native-darwin-cctools-wrapper/builder.sh index 16575fc1cdcf..411cb867a98b 100644 --- a/pkgs/build-support/native-darwin-cctools-wrapper/builder.sh +++ b/pkgs/build-support/native-darwin-cctools-wrapper/builder.sh @@ -1,6 +1,6 @@ source $stdenv/setup ensureDir $out/bin -for i in ar as c++filt gprof ld nm nmedit ranlib size strings strip; do +for i in ar as c++filt gprof ld nm nmedit ranlib size strings strip dsymutil; do ln -s /usr/bin/$i $out/bin/ done diff --git a/pkgs/development/compilers/gcc-apple/default.nix b/pkgs/development/compilers/gcc-apple/default.nix index 815f97695c52..1af4fb046703 100644 --- a/pkgs/development/compilers/gcc-apple/default.nix +++ b/pkgs/development/compilers/gcc-apple/default.nix @@ -9,11 +9,11 @@ assert stdenv.isDarwin; assert langF77 -> gmp != null; stdenv.mkDerivation ({ - name = "gcc-4.2.1-apple-5531"; + name = "gcc-4.0.1-apple-5484"; builder = ./builder.sh; src = fetchurl { - url = http://www.opensource.apple.com/tarballs/gcc_42/gcc_42-5531.tar.gz ; - sha256 = "0bk37axx202x0ll1f8q00p233n3j8zga09ljxia1g89g17i64j4j"; + url = http://www.opensource.apple.com/tarballs/gcc/gcc-5484.tar.gz ; + sha256 = "1cxz9mamb1673b73wywy9v28js04ay73lflpqk78zny5n07c2gv1"; }; patches = [./pass-cxxcpp.patch] diff --git a/pkgs/os-specific/linux/e2fsprogs/1.41.5.nix b/pkgs/os-specific/linux/e2fsprogs/1.41.5.nix index 1d123fdebaa6..8d72e9fc439e 100644 --- a/pkgs/os-specific/linux/e2fsprogs/1.41.5.nix +++ b/pkgs/os-specific/linux/e2fsprogs/1.41.5.nix @@ -9,9 +9,9 @@ stdenv.mkDerivation rec { }; configureFlags = - if stdenv ? isDietLibC + (if stdenv ? isDietLibC then "--with-diet-libc" - else "--enable-elf-shlibs"; + else (if stdenv.system == "i686-darwin" then " --enable-bsd-shlibs" else "--enable-elf-shlibs" ) ) ; preBuild = if stdenv ? isDietLibC then '' sed -e 's/-lpthread//' -i Makefile */Makefile */*/Makefile diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix index 4f44d61108ed..dc1820c48d3a 100644 --- a/pkgs/tools/text/gnugrep/default.nix +++ b/pkgs/tools/text/gnugrep/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation { buildInputs = [pcre]; - doCheck = true; + doCheck = if stdenv.system == "i686-darwin" then false else true; # On Mac OS X, force use of mkdir -p, since Grep's fallback # (./install-sh) is broken.