All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Backport valgrind patch to fix build on 4.0 host kernels
@ 2015-05-06 17:26 Christian Artin
  2015-05-07 20:36 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Artin @ 2015-05-06 17:26 UTC (permalink / raw)
  To: buildroot

Valgrind fails to build when the host kernel is >=4.0. This patch
backports the commit from upstream that fixes the kernel version
verification. This verification is pointless for buildroot anyway, but
it fixes the building process.

Signed-off-by: Christian Artin <christian@gridshowsystems.com>
---
 ...01-Fix-configure-for-Linux-kernel-4.0-rc1.patch | 46 ++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 package/valgrind/0001-Fix-configure-for-Linux-kernel-4.0-rc1.patch

diff --git a/package/valgrind/0001-Fix-configure-for-Linux-kernel-4.0-rc1.patch b/package/valgrind/0001-Fix-configure-for-Linux-kernel-4.0-rc1.patch
new file mode 100644
index 0000000..4b33d63
--- /dev/null
+++ b/package/valgrind/0001-Fix-configure-for-Linux-kernel-4.0-rc1.patch
@@ -0,0 +1,46 @@
+From 8e958577f01e2e877fb1dbdca09718ef6ea0c748 Mon Sep 17 00:00:00 2001
+From: cborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9>
+Date: Mon, 23 Feb 2015 20:19:03 +0000
+Subject: [PATCH] Fix configure for Linux kernel >= 4.0-rc1 In addition raise
+ the minimal Linux version to 2.6 as there is almost no test coverage for 2.4
+ and 2.6 was released in 2003.
+
+git-svn-id: svn://svn.valgrind.org/valgrind/trunk at 14955 a5019735-40e9-0310-863c-91ae7b9d1cf9
+---
+ configure.ac | 18 ++++++------------
+ 1 file changed, 6 insertions(+), 12 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index bdf5f22..136f49a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -325,20 +325,14 @@ case "${host_os}" in
+         kernel=`uname -r`
+ 
+         case "${kernel}" in
+-             2.6.*|3.*) 
+-        	    AC_MSG_RESULT([2.6.x/3.x family (${kernel})])
+-        	    AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x])
+-        	    ;;
+-
+-             2.4.*) 
+-        	    AC_MSG_RESULT([2.4 family (${kernel})])
+-        	    AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
+-        	    ;;
+-
+-             *) 
++             0.*|1.*|2.0.*|2.1.*|2.2.*|2.3.*|2.4.*|2.5.*) 
+         	    AC_MSG_RESULT([unsupported (${kernel})])
+-        	    AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
++        	    AC_MSG_ERROR([Valgrind needs a Linux kernel >= 2.6])
+         	    ;;
++
++             *)
++        	    AC_MSG_RESULT([2.6 or later (${kernel})])
++                    ;;
+         esac
+ 
+         ;;
+-- 
+2.3.7
+
-- 
2.3.7

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] Backport valgrind patch to fix build on 4.0 host kernels
  2015-05-06 17:26 [Buildroot] [PATCH] Backport valgrind patch to fix build on 4.0 host kernels Christian Artin
@ 2015-05-07 20:36 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2015-05-07 20:36 UTC (permalink / raw)
  To: buildroot

>>>>> "Christian" == Christian Artin <christian@gridshowsystems.com> writes:

 > Valgrind fails to build when the host kernel is >=4.0. This patch
 > backports the commit from upstream that fixes the kernel version
 > verification. This verification is pointless for buildroot anyway, but
 > it fixes the building process.

 > Signed-off-by: Christian Artin <christian@gridshowsystems.com>

Thanks, committed with a few minor fixes:

- We already have a 0001-.. patch for valgrind, so renamed to 0002-Fix..
- Added your Signed-off-by to the patch as well.
- Reworded title so it starts with valgrind:

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-07 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-06 17:26 [Buildroot] [PATCH] Backport valgrind patch to fix build on 4.0 host kernels Christian Artin
2015-05-07 20:36 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.