Accepting request 285796 from devel:tools

- gcc-version.patch: Add support for GCC 5. (forwarded request 285793 from rguenther)

OBS-URL: https://build.opensuse.org/request/show/285796
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/valgrind?expand=0&rev=92
This commit is contained in:
Dominique Leuenberger 2015-02-20 11:00:17 +00:00 committed by Git OBS Bridge
commit f16fb0301a
3 changed files with 21 additions and 1 deletions

13
gcc-version.patch Normal file
View File

@ -0,0 +1,13 @@
Index: configure.ac
===================================================================
--- configure.ac.orig 2015-02-12 12:44:54.171760724 +0100
+++ configure.ac 2015-02-12 12:45:05.779894998 +0100
@@ -138,7 +138,7 @@ case "${is_clang}-${gcc_version}" in
notclang-4.*)
AC_MSG_RESULT([ok (${gcc_version})])
;;
- notclang-5.*)
+ notclang-5*)
AC_MSG_RESULT([ok (${gcc_version})])
;;
clang-2.9|clang-3.*|clang-4.*)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 12 11:46:20 UTC 2015 - rguenther@suse.com
- gcc-version.patch: Add support for GCC 5.
-------------------------------------------------------------------
Mon Feb 9 13:41:38 UTC 2015 - schwab@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package valgrind
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -41,6 +41,7 @@ Source0: http://valgrind.org/downloads/%{name}-%{version}.tar.bz2
Patch1: jit-register-unregister.diff
Patch2: armv6-support.diff
Patch3: glibc-version.patch
Patch4: gcc-version.patch
# during building the major version of glibc is built into the suppression file
%define glibc_main_version %(getconf GNU_LIBC_VERSION | cut -d' ' -f2 | cut -d. -f1)
%define glibc_major_version %(getconf GNU_LIBC_VERSION | cut -d' ' -f2 | cut -d. -f2)
@ -138,6 +139,7 @@ Authors:
%patch1
%patch2
%patch3 -p1
%patch4
%build
%ifarch %arm