* 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 --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 # Quick hack to work around a faulty dependency in
# konqueror/keditbookmarks/Makefile.am (${includedir} should be # konqueror/keditbookmarks/Makefile.am (${includedir} should be
# ${kdelibs} or so). # ${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"; postInstall = "rm $out/include/kbookmarknotifier.h";
} }

View File

@ -21,6 +21,16 @@ stdenv.mkDerivation {
libtool freetype bzip2 cups 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 = " configureFlags = "
--without-arts --without-arts
--with-ssl-dir=${openssl} --with-ssl-dir=${openssl}