Accepting request 303606 from devel:tools

1

OBS-URL: https://build.opensuse.org/request/show/303606
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/valgrind?expand=0&rev=94
This commit is contained in:
Stephan Kulow 2015-04-27 20:07:48 +00:00 committed by Git OBS Bridge
commit ca4eb9ffb9
3 changed files with 39 additions and 0 deletions

31
valgrind-linux-4.0.patch Normal file
View File

@ -0,0 +1,31 @@
Index: configure.ac
===================================================================
--- configure.ac (revision 14954)
+++ configure.ac (revision 14955)
@@ -325,20 +325,14 @@
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])
+ 0.*|1.*|2.0.*|2.1.*|2.2.*|2.3.*|2.4.*|2.5.*)
+ AC_MSG_RESULT([unsupported (${kernel})])
+ AC_MSG_ERROR([Valgrind needs a Linux kernel >= 2.6])
;;
- 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])
- ;;
-
- *)
- AC_MSG_RESULT([unsupported (${kernel})])
- AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
- ;;
+ *)
+ AC_MSG_RESULT([2.6 or later (${kernel})])
+ ;;
esac
;;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 24 07:08:01 UTC 2015 - dimstar@opensuse.org
- Add valgrind-linux-4.0.patch: Fix build with linux kernel 4.0+.
Taken from svn, rev 14955.
-------------------------------------------------------------------
Thu Apr 2 18:07:55 UTC 2015 - mpluskal@suse.com

View File

@ -38,6 +38,7 @@ Patch1: jit-register-unregister.diff
Patch2: armv6-support.diff
Patch3: glibc-version.patch
Patch4: gcc-version.patch
Patch5: valgrind-linux-4.0.patch
BuildRequires: automake
BuildRequires: docbook-xsl-stylesheets
BuildRequires: docbook_4
@ -113,6 +114,7 @@ but it has been successfully used to optimize several KDE applications.
%patch2
%patch3 -p1
%patch4
%patch5
%build
%ifarch %arm