add a patch that replaces /bin/pwd with pwd and rely on stdenv to supply pwd

svn path=/nixpkgs/trunk/; revision=4125
This commit is contained in:
Armijn Hemel 2005-10-24 16:36:03 +00:00
parent 5c6e1efa41
commit e4453149f9
2 changed files with 15 additions and 0 deletions

View file

@ -6,4 +6,5 @@ stdenv.mkDerivation {
url = http://www.nl.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-0.80.tar.bz2;
md5 = "ccff87fe639efdfc22b1ba4a0f08ec57";
};
patches = [./pam-pwd.patch];
}

View file

@ -0,0 +1,14 @@
diff -ruN Linux-PAM-0.80/configure Linux-PAM-0.80.new/configure
--- Linux-PAM-0.80/configure 2005-07-04 14:09:55.000000000 +0200
+++ Linux-PAM-0.80.new/configure 2005-10-24 18:33:30.000000000 +0200
@@ -1336,8 +1336,8 @@
-LOCALSRCDIR=`/bin/pwd` ;
-LOCALOBJDIR=`/bin/pwd` ;
+LOCALSRCDIR=`pwd` ;
+LOCALOBJDIR=`pwd` ;
OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`