lol

stdenv: Remove unpack-bootstrap-tools-arm.sh

This file was using the 'double patchelf' hack, which hasn't been needed
for a while, after the original patchelf bug was fixed:

https://github.com/NixOS/patchelf/commit/65a4dc6aa982191b11c739c4c9b802c7fa4cbebb

authored by

Tuomas Tynkkynen and committed by
Tuomas Tynkkynen
8d62f62a 584b667e

+1 -68
+1 -4
pkgs/stdenv/linux/default.nix
··· 42 42 43 43 builder = bootstrapFiles.busybox; 44 44 45 - args = if system == "armv5tel-linux" then 46 - [ "ash" "-e" ./scripts/unpack-bootstrap-tools-arm.sh ] 47 - else 48 - [ "ash" "-e" ./scripts/unpack-bootstrap-tools.sh ]; 45 + args = [ "ash" "-e" ./scripts/unpack-bootstrap-tools.sh ]; 49 46 50 47 tarball = bootstrapFiles.bootstrapTools; 51 48
-64
pkgs/stdenv/linux/scripts/unpack-bootstrap-tools-arm.sh
··· 1 - set -e 2 - 3 - # Unpack the bootstrap tools tarball. 4 - echo Unpacking the bootstrap tools... 5 - $builder mkdir $out 6 - < $tarball $builder unxz | $builder tar x -C $out 7 - 8 - # Set the ELF interpreter / RPATH in the bootstrap binaries. 9 - echo Patching the bootstrap tools... 10 - 11 - # On x86_64, ld-linux-x86-64.so.2 barfs on patchelf'ed programs. So 12 - # use a copy of patchelf. 13 - LD_LIBRARY_PATH=$out/lib $out/lib/ld-linux*.so.? $out/bin/cp $out/bin/patchelf . 14 - 15 - for i in $out/bin/* $out/libexec/gcc/*/*/* $out/lib/librt*; do 16 - if test ${i%.la} != $i; then continue; fi 17 - if test ${i%*.so*} != $i; then continue; fi 18 - if ! test -f $i; then continue; fi 19 - if test -L $i; then continue; fi 20 - echo patching $i 21 - LD_LIBRARY_PATH=$out/lib $out/lib/ld-linux*.so.? \ 22 - $out/bin/patchelf --set-interpreter $out/lib/ld-linux*.so.? --set-rpath $out/lib --force-rpath $i 23 - LD_LIBRARY_PATH=$out/lib $out/lib/ld-linux*.so.? \ 24 - $out/bin/patchelf --set-interpreter $out/lib/ld-linux*.so.? --set-rpath $out/lib --force-rpath $i 25 - done 26 - for i in $out/lib/librt* $out/lib/libcloog* $out/lib/libppl* $out/lib/libgmp* $out/lib/libpcre*; do 27 - if ! test -f $i; then continue; fi 28 - if test -L $i; then continue; fi 29 - echo patching $i 30 - LD_LIBRARY_PATH=$out/lib $out/lib/ld-linux*.so.? \ 31 - $out/bin/patchelf --set-rpath $out/lib --force-rpath $i 32 - LD_LIBRARY_PATH=$out/lib $out/lib/ld-linux*.so.? \ 33 - $out/bin/patchelf --set-rpath $out/lib --force-rpath $i 34 - done 35 - 36 - # Fix the libc linker script. 37 - export PATH=$out/bin 38 - cat $out/lib/libc.so | sed "s|/nix/store/e*-[^/]*/|$out/|g" > $out/lib/libc.so.tmp 39 - mv $out/lib/libc.so.tmp $out/lib/libc.so 40 - cat $out/lib/libpthread.so | sed "s|/nix/store/e*-[^/]*/|$out/|g" > $out/lib/libpthread.so.tmp 41 - mv $out/lib/libpthread.so.tmp $out/lib/libpthread.so 42 - 43 - # Provide some additional symlinks. 44 - ln -s bash $out/bin/sh 45 - ln -s bzip2 $out/bin/bunzip2 46 - 47 - # Provide a gunzip script 48 - cat > $out/bin/gunzip <<EOF 49 - #!$out/bin/sh 50 - exec $out/bin/gzip -d "\$@" 51 - EOF 52 - chmod +x $out/bin/gunzip 53 - 54 - # Provide fgrep/egrep. 55 - echo "#! $out/bin/sh" > $out/bin/egrep 56 - echo "exec $out/bin/grep -E \"\$@\"" >> $out/bin/egrep 57 - echo "#! $out/bin/sh" > $out/bin/fgrep 58 - echo "exec $out/bin/grep -F \"\$@\"" >> $out/bin/fgrep 59 - 60 - # Provide xz (actually only xz -d will work). 61 - echo "#! $out/bin/sh" > $out/bin/xz 62 - echo "exec $builder unxz \"\$@\"" >> $out/bin/xz 63 - 64 - chmod +x $out/bin/egrep $out/bin/fgrep $out/bin/xz