mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
patch the binaries to nuke paths to glibc. Ripped from stdenv/linux/scripts/fix-outpath.sh
svn path=/nixpkgs/trunk/; revision=6003
This commit is contained in:
parent
4dca405b3d
commit
2018e992be
@ -1,5 +1,12 @@
|
||||
source $stdenv/setup
|
||||
genericBuild
|
||||
cd $out/bin
|
||||
|
||||
find . -type f | while read fn; do
|
||||
cat $fn | sed "s|/nix/store/[a-z0-9]*-|/nix/store/ffffffffffffffffffffffffffffffff-|g" > $fn.tmp
|
||||
if test -x $fn; then chmod +x $fn.tmp; fi
|
||||
mv $fn.tmp $fn
|
||||
done
|
||||
|
||||
strip $out/bin/bash
|
||||
ln -s bash sh
|
||||
|
Loading…
Reference in New Issue
Block a user