valgrind: patch build system to allow linux kernels of v4.x

This commit is contained in:
Cray Elliott 2015-04-21 20:40:15 -07:00
parent 447f1dcffb
commit e73921aee1
2 changed files with 13 additions and 1 deletions

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk"
+ "/valgrind-3.9.0-glibc-2.21.patch?h=packages/valgrind&id=41e87313b69";
sha256 = "14sgsvjjalbcqpcayyv5cndc9hfm5bigkp684b6cr6virksmlk19";
})];
}) ./linux-4.0.patch];
# Perl is needed for `cg_annotate'.
# GDB is needed to provide a sane default for `--db-command'.

View file

@ -0,0 +1,12 @@
diff -Naur valgrind-3.10.1/configure valgrind-3.10.1-patch/configure
--- valgrind-3.10.1/configure 2014-11-25 11:42:25.000000000 -0800
+++ valgrind-3.10.1-patch/configure 2015-04-21 09:45:37.656113841 -0700
@@ -5553,7 +5553,7 @@
kernel=`uname -r`
case "${kernel}" in
- 2.6.*|3.*)
+ 2.6.*|3.*|4.*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6.x/3.x family (${kernel})" >&5
$as_echo "2.6.x/3.x family (${kernel})" >&6; }