The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / valgrind / 0002-Fix-configure-for-Linux-kernel-4.0-rc1.patch
1 From 8e958577f01e2e877fb1dbdca09718ef6ea0c748 Mon Sep 17 00:00:00 2001
2 From: cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9>
3 Date: Mon, 23 Feb 2015 20:19:03 +0000
4 Subject: [PATCH] Fix configure for Linux kernel >= 4.0-rc1 In addition raise
5  the minimal Linux version to 2.6 as there is almost no test coverage for 2.4
6  and 2.6 was released in 2003.
7
8 Signed-off-by: Christian Artin <christian@gridshowsystems.com>
9
10 git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14955 a5019735-40e9-0310-863c-91ae7b9d1cf9
11 ---
12  configure.ac | 18 ++++++------------
13  1 file changed, 6 insertions(+), 12 deletions(-)
14
15 diff --git a/configure.ac b/configure.ac
16 index bdf5f22..136f49a 100644
17 --- a/configure.ac
18 +++ b/configure.ac
19 @@ -325,20 +325,14 @@ case "${host_os}" in
20          kernel=`uname -r`
21  
22          case "${kernel}" in
23 -             2.6.*|3.*) 
24 -                   AC_MSG_RESULT([2.6.x/3.x family (${kernel})])
25 -                   AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x])
26 -                   ;;
27 -
28 -             2.4.*) 
29 -                   AC_MSG_RESULT([2.4 family (${kernel})])
30 -                   AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
31 -                   ;;
32 -
33 -             *) 
34 +             0.*|1.*|2.0.*|2.1.*|2.2.*|2.3.*|2.4.*|2.5.*) 
35                     AC_MSG_RESULT([unsupported (${kernel})])
36 -                   AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
37 +                   AC_MSG_ERROR([Valgrind needs a Linux kernel >= 2.6])
38                     ;;
39 +
40 +             *)
41 +                   AC_MSG_RESULT([2.6 or later (${kernel})])
42 +                    ;;
43          esac
44  
45          ;;
46 -- 
47 2.3.7
48