From 5c72ac825226909201f8a494cad4b52b8bb336d7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 11 Apr 2005 08:55:05 +0000 Subject: [PATCH] * Valgrind updated to 2.4.0. svn path=/nixpkgs/trunk/; revision=2520 --- .../tools/misc/valgrind/default.nix | 18 +++------- .../tools/misc/valgrind/pgoff_t.patch | 34 ------------------- 2 files changed, 4 insertions(+), 48 deletions(-) delete mode 100644 pkgs/development/tools/misc/valgrind/pgoff_t.patch diff --git a/pkgs/development/tools/misc/valgrind/default.nix b/pkgs/development/tools/misc/valgrind/default.nix index 820868ca8e7..6163426d777 100644 --- a/pkgs/development/tools/misc/valgrind/default.nix +++ b/pkgs/development/tools/misc/valgrind/default.nix @@ -3,23 +3,13 @@ # Note: I added the Perl dependency for Valgrind 2.1.1. It's needed # to generate some files. Maybe in stable releases we won't need # Perl. -# Update: 2.2.0 still needs it. +# Update: 2.4.0 still needs it. stdenv.mkDerivation { - name = "valgrind-2.2.0"; + name = "valgrind-2.4.0"; src = fetchurl { - url = http://catamaran.labs.cs.uu.nl/dist/tarballs/valgrind-2.2.0.tar.bz2; - md5 = "30dc51f6fc94751b90b04af9c2e2c656"; + url = http://valgrind.org/downloads/valgrind-2.4.0.tar.bz2; + md5 = "1d0bd81d368789946d32d18a468ea0cf"; }; buildInputs = [perl]; - - # Hack to get Valgrind to compile with Linux 2.6.10 headers. The - # file `include/asm/processor.h' indirectly needs - # CONFIG_X86_L1_CACHE_SHIFT (for the alignment of some type that - # probably isn't relevant here anyway). - # !!! maybe this should be done in linux-headers? - NIX_CFLAGS_COMPILE = "-DCONFIG_X86_L1_CACHE_SHIFT=7"; - - # Another kernel header problem. - patches = [./pgoff_t.patch]; } diff --git a/pkgs/development/tools/misc/valgrind/pgoff_t.patch b/pkgs/development/tools/misc/valgrind/pgoff_t.patch deleted file mode 100644 index 94dfd0e28dd..00000000000 --- a/pkgs/development/tools/misc/valgrind/pgoff_t.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff -rc valgrind-orig/coregrind/vg_unsafe.h valgrind-2.2.0/coregrind/vg_unsafe.h -*** valgrind-orig/coregrind/vg_unsafe.h 2004-08-29 23:02:28.000000000 +0200 ---- valgrind-2.2.0/coregrind/vg_unsafe.h 2005-02-23 21:39:25.000000000 +0100 -*************** -*** 31,36 **** ---- 31,40 ---- - */ - - -+ #ifndef pgoff_t -+ #define pgoff_t unsigned long -+ #endif -+ - /* These includes are only used for making sense of the args for - system calls. */ - #include "vg_unistd.h" /* for system call numbers */ -*************** -*** 47,53 **** - #include /* for struct msghdr */ - #include /* for SIOCOUTQ */ - #include /* for sockaddr_un */ -! #include /* for struct ifreq et al */ - #include /* for struct arpreq */ - #include /* for struct rtentry */ - #ifdef HAVE_LINUX_COMPILER_H ---- 51,58 ---- - #include /* for struct msghdr */ - #include /* for SIOCOUTQ */ - #include /* for sockaddr_un */ -! /* hack - should be fixed in CVS */ -! //#include /* for struct ifreq et al */ - #include /* for struct arpreq */ - #include /* for struct rtentry */ - #ifdef HAVE_LINUX_COMPILER_H