* Purity fixes in kdelibs/kdebase: configure looks for pkg-config and

freetype-config in /usr/bin *before* looking $PATH, possibly causing
  it to fail on non-NixOS machines.

svn path=/nixpkgs/trunk/; revision=11287
This commit is contained in:
Eelco Dolstra 2008-03-26 09:53:04 +00:00
parent b5da9e1d55
commit 2f79d64089
2 changed files with 25 additions and 1 deletions

View file

@ -27,9 +27,23 @@ stdenv.mkDerivation {
--with-extra-includes=${libjpeg}/include
";
# Prevent configure from looking for pkg-config and freetype-config
# in the wrong location (it looks in /usr/bin etc. *before* looking
# in $PATH).
preConfigure = ''
substituteInPlace configure \
--replace /usr/bin /no-such-path \
--replace /usr/local/bin /no-such-path \
--replace /opt/local/bin /no-such-path
'';
# Quick hack to work around a faulty dependency in
# konqueror/keditbookmarks/Makefile.am (${includedir} should be
# ${kdelibs} or so).
preBuild = "ensureDir $out/include; ln -s ${kdelibs}/include/kbookmarknotifier.h $out/include/";
preBuild = ''
ensureDir $out/include
ln -s ${kdelibs}/include/kbookmarknotifier.h $out/include/
'';
postInstall = "rm $out/include/kbookmarknotifier.h";
}

View file

@ -21,6 +21,16 @@ stdenv.mkDerivation {
libtool freetype bzip2 cups
];
# Prevent configure from looking for pkg-config and freetype-config
# in the wrong location (it looks in /usr/bin etc. *before* looking
# in $PATH).
preConfigure = ''
substituteInPlace configure \
--replace /usr/bin /no-such-path \
--replace /usr/local/bin /no-such-path \
--replace /opt/local/bin /no-such-path
'';
configureFlags = "
--without-arts
--with-ssl-dir=${openssl}