GDB: Build with Expat support, to get syscall info.

svn path=/nixpkgs/trunk/; revision=18009
This commit is contained in:
Ludovic Courtès 2009-10-28 22:25:50 +00:00
parent f7947871a3
commit 4c5fcfb0a8
2 changed files with 12 additions and 9 deletions

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, ncurses, readline, gmp, mpfr, texinfo }: { fetchurl, stdenv, ncurses, readline, gmp, mpfr, expat, texinfo }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gdb-7.0"; name = "gdb-7.0";
@ -9,12 +9,15 @@ stdenv.mkDerivation rec {
}; };
# TODO: Add optional support for Python scripting. # TODO: Add optional support for Python scripting.
buildInputs = [ ncurses readline gmp mpfr texinfo ]; buildInputs = [ ncurses readline gmp mpfr expat texinfo ];
configureFlags = "--with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline"; configureFlags =
'' --with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline
--with-expat --with-libexpat-prefix=${expat}
'';
postInstall = '' postInstall =
# Remove Info files already provided by Binutils and other packages. '' # Remove Info files already provided by Binutils and other packages.
rm -v $out/share/info/{standards,configure,bfd}.info rm -v $out/share/info/{standards,configure,bfd}.info
''; '';
@ -32,6 +35,6 @@ stdenv.mkDerivation rec {
license = "GPLv3+"; license = "GPLv3+";
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.cygwin; platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.cygwin;
maintainers = stdenv.lib.maintainers.ludo; maintainers = [ stdenv.lib.maintainers.ludo ];
}; };
} }

View File

@ -2984,7 +2984,7 @@ let
}; };
gdb = import ../development/tools/misc/gdb { gdb = import ../development/tools/misc/gdb {
inherit fetchurl stdenv ncurses gmp mpfr texinfo; inherit fetchurl stdenv ncurses gmp mpfr expat texinfo;
readline = readline5; readline = readline5;
}; };