* Use patchelf 0.5.

svn path=/nixpkgs/branches/stdenv-updates/; revision=19548
This commit is contained in:
Eelco Dolstra
2010-01-19 17:15:47 +00:00
parent 8cd183f062
commit 4e65c8aa2a
4 changed files with 7 additions and 28 deletions
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, glibc, mesa, freetype, glib, libSM, libICE, libXi, libXv,
libXrender, libXrandr, libXfixes, libXcursor, libXinerama, libXext, libX11,
zlib, patchelf05 }:
zlib }:
/* I haven't found any x86_64 package from them */
assert stdenv.system == "i686-linux";
@@ -55,12 +55,12 @@ stdenv.mkDerivation {
fullPath=$fullPath:$i/lib
done
${patchelf05}/bin/patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath $fullPath \
$out/opt/googleearth/googleearth-bin
for a in $out/opt/googleearth/*.so* ; do
${patchelf05}/bin/patchelf --set-rpath $fullPath $a
patchelf --set-rpath $fullPath $a
done
'';