* coreutils won't build with dietlibc on ppc.

svn path=/nixpkgs/trunk/; revision=6858
This commit is contained in:
Eelco Dolstra 2006-10-26 15:02:16 +00:00
parent 29f9225a9d
commit 554ea561dd
2 changed files with 16 additions and 2 deletions

View File

@ -25,14 +25,18 @@ let
builder = ./make-bootstrap-tools.sh;
inherit (pkgsDiet)
coreutils findutils diffutils gnugrep
gzip bzip2 gnumake bash patch binutils;
gnugrep gzip bzip2 gnumake bash patch binutils;
gnused = pkgsDiet.gnused412; # 4.1.5 gives "Memory exhausted" errors
# patchelf is C++, won't work with dietlibc.
inherit (pkgsStatic) patchelf;
# Coreutils won't build on dietlibc on x86_64 (and by extension,
# findutils and diffutils).
inherit (if pkgs.stdenv.system == "powerpc-linux" then pkgsStatic else pkgsDiet)
coreutils findutils diffutils;
gnutar =
# Tar seems to be broken on dietlibc on x86_64.
if pkgs.stdenv.system == "i686-linux"

View File

@ -26,6 +26,10 @@ cp $coreutils/bin/cp $out/in-nixpkgs
cp $gnutar/bin/tar $out/in-nixpkgs
nukeRefs $out/in-nixpkgs/tar
if test "$system" = "powerpc-linux"; then
nukeRefs $out/in-nixpkgs/cp
fi
# Create the tools tarball.
mkdir tools
@ -58,6 +62,12 @@ nukeRefs tools/bin/grep
nukeRefs tools/bin/patchelf
nukeRefs tools/bin/make
if test "$system" = "powerpc-linux"; then
for i in tools/bin/*; do
nukeRefs $i
done
fi
# Create the binutils tarball.
mkdir binutils