fix build of procmail
svn path=/nixpkgs/trunk/; revision=19944
This commit is contained in:
parent
9501307305
commit
ec88f45c93
@ -4,11 +4,13 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ stdenv.gcc.libc ];
|
buildInputs = [ stdenv.gcc.libc ];
|
||||||
|
|
||||||
|
# getline is defined differently in glibc now. So rename it.
|
||||||
installPhase = "
|
installPhase = "
|
||||||
ensureDir \$out/bin
|
ensureDir \$out/bin
|
||||||
sed -e \"s%^RM.*$%RM=`type -f rm | awk '{print $3;}'` -f%\" -i Makefile
|
sed -e \"s%^RM.*$%RM=`type -f rm | awk '{print $3;}'` -f%\" -i Makefile
|
||||||
sed -e \"s%^BASENAME.*%\BASENAME=$out%\" -i Makefile
|
sed -e \"s%^BASENAME.*%\BASENAME=$out%\" -i Makefile
|
||||||
sed -e \"s%^LIBS=.*%LIBS=-lm%\" -i Makefile
|
sed -e \"s%^LIBS=.*%LIBS=-lm%\" -i Makefile
|
||||||
|
sed -e \"s%getline%thisgetline%g\" -i src/*.c src/*.h
|
||||||
make DESTDIR=\$out install
|
make DESTDIR=\$out install
|
||||||
";
|
";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user