about summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-3
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2005-11-12 19:07:37 +0000
committerArmijn Hemel <armijn@gpl-violations.org>2005-11-12 19:07:37 +0000
commitdae499bd6dda0a8543218da3a329e8a232e223eb (patch)
tree6fe06d86ddd226778fe19a37428699dc88cd9c2c /pkgs/development/libraries/qt-3
parentcedeeb31e8fc5de25268479ff77a10b7574cf9df (diff)
add a patch which removes a dependency on /bin/pwd so it can be built on
NixOS. It also prevents the following warning:

./configure: line 19: /bin/pwd: No such file or directory
./configure: line 21: /bin/pwd: No such file or directory
The LICENSE, LICENSE.QPL, or LICENSE.GPL file shipped with
this software has disappeared.

Sorry, you are not licensed to use this software.
Try re-installing.

:D

svn path=/nixpkgs/trunk/; revision=4272
Diffstat (limited to 'pkgs/development/libraries/qt-3')
-rw-r--r--pkgs/development/libraries/qt-3/default.nix2
-rw-r--r--pkgs/development/libraries/qt-3/qt-pwd.patch15
2 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/development/libraries/qt-3/default.nix b/pkgs/development/libraries/qt-3/default.nix
index 1a9c22ed3ee65..efee20dbb56ed 100644
--- a/pkgs/development/libraries/qt-3/default.nix
+++ b/pkgs/development/libraries/qt-3/default.nix
@@ -24,7 +24,7 @@ stdenv.mkDerivation {
   buildInputs = [x11 libXft libXrender zlib libjpeg libpng which];
 
   # Don't strip everything so we can get useful backtraces.
-  patches = [./strip.patch];
+  patches = [./strip.patch ./qt-pwd.patch];
   
   inherit threadSupport xftSupport libXft xrenderSupport libXrender;
   inherit mysqlSupport;
diff --git a/pkgs/development/libraries/qt-3/qt-pwd.patch b/pkgs/development/libraries/qt-3/qt-pwd.patch
new file mode 100644
index 0000000000000..763f785726b7c
--- /dev/null
+++ b/pkgs/development/libraries/qt-3/qt-pwd.patch
@@ -0,0 +1,15 @@
+diff -ruN qt-x11-free-3.3.3/configure qt-x11-free-3.3.3.new/configure
+--- qt-x11-free-3.3.3/configure	2004-06-14 11:18:55.000000000 +0200
++++ qt-x11-free-3.3.3.new/configure	2005-11-12 19:39:43.000000000 +0100
+@@ -16,9 +16,9 @@
+ relconf=`basename $0`
+ # the directory of this script is the "source tree"
+ relpath=`dirname $0`
+-relpath=`(cd $relpath; /bin/pwd)`
++relpath=`(cd $relpath; pwd)`
+ # the current directory is the "build tree" or "object tree"
+-outpath=`/bin/pwd`
++outpath=`pwd`
+ 
+ # later cache the command line in config.status
+ OPT_CMDLINE=`echo $@ | sed "s,-v ,,g; s,-v$,,g"`