Accepting request 75421 from home:a_jaeger:branches:openSUSE:Factory

Handle Linux kernel 3.x

OBS-URL: https://build.opensuse.org/request/show/75421
OBS-URL: https://build.opensuse.org/package/show/devel:tools/valgrind?expand=0&rev=34
This commit is contained in:
2011-07-06 19:47:20 +00:00
committed by Git OBS Bridge
parent 60a6e2f24d
commit 73ce4746ab
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
Index: valgrind-3.6.1/configure.in
===================================================================
--- valgrind-3.6.1.orig/configure.in
+++ valgrind-3.6.1/configure.in
@@ -220,7 +220,7 @@ case "${host_os}" in
kernel=`uname -r`
case "${kernel}" in
- 2.6.*)
+ 2.6.*|3.*)
AC_MSG_RESULT([2.6 family (${kernel})])
AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
;;

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 5 13:09:46 UTC 2011 - aj@suse.de
- Support Linux kernel 3.x
-------------------------------------------------------------------
Wed Jun 22 18:54:13 UTC 2011 - dmueller@suse.de

View File

@@ -51,6 +51,8 @@ Patch41: vg_bug267630_r2127.patch
Patch42: vg_bug270851_r2130.patch
Patch43: vg_bug270856_r2136.patch
Patch44: vg_bug270851_r2148.patch
Patch45: valgrind-3.6.1-kernel3.patch
%if %suse_version <= 1100
Provides: valgrind-devel = %version
%endif
@@ -164,6 +166,7 @@ cd ..
%patch42
%patch43
%patch44
%patch45 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"