* coreutils won't build with dietlibc on ppc.
svn path=/nixpkgs/trunk/; revision=6858
This commit is contained in:
parent
29f9225a9d
commit
554ea561dd
@ -25,14 +25,18 @@ let
|
|||||||
builder = ./make-bootstrap-tools.sh;
|
builder = ./make-bootstrap-tools.sh;
|
||||||
|
|
||||||
inherit (pkgsDiet)
|
inherit (pkgsDiet)
|
||||||
coreutils findutils diffutils gnugrep
|
gnugrep gzip bzip2 gnumake bash patch binutils;
|
||||||
gzip bzip2 gnumake bash patch binutils;
|
|
||||||
|
|
||||||
gnused = pkgsDiet.gnused412; # 4.1.5 gives "Memory exhausted" errors
|
gnused = pkgsDiet.gnused412; # 4.1.5 gives "Memory exhausted" errors
|
||||||
|
|
||||||
# patchelf is C++, won't work with dietlibc.
|
# patchelf is C++, won't work with dietlibc.
|
||||||
inherit (pkgsStatic) patchelf;
|
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 =
|
gnutar =
|
||||||
# Tar seems to be broken on dietlibc on x86_64.
|
# Tar seems to be broken on dietlibc on x86_64.
|
||||||
if pkgs.stdenv.system == "i686-linux"
|
if pkgs.stdenv.system == "i686-linux"
|
||||||
|
@ -26,6 +26,10 @@ cp $coreutils/bin/cp $out/in-nixpkgs
|
|||||||
cp $gnutar/bin/tar $out/in-nixpkgs
|
cp $gnutar/bin/tar $out/in-nixpkgs
|
||||||
nukeRefs $out/in-nixpkgs/tar
|
nukeRefs $out/in-nixpkgs/tar
|
||||||
|
|
||||||
|
if test "$system" = "powerpc-linux"; then
|
||||||
|
nukeRefs $out/in-nixpkgs/cp
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Create the tools tarball.
|
# Create the tools tarball.
|
||||||
mkdir tools
|
mkdir tools
|
||||||
@ -58,6 +62,12 @@ nukeRefs tools/bin/grep
|
|||||||
nukeRefs tools/bin/patchelf
|
nukeRefs tools/bin/patchelf
|
||||||
nukeRefs tools/bin/make
|
nukeRefs tools/bin/make
|
||||||
|
|
||||||
|
if test "$system" = "powerpc-linux"; then
|
||||||
|
for i in tools/bin/*; do
|
||||||
|
nukeRefs $i
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Create the binutils tarball.
|
# Create the binutils tarball.
|
||||||
mkdir binutils
|
mkdir binutils
|
||||||
|
Loading…
x
Reference in New Issue
Block a user