3.5.0-18
This commit is contained in:
parent
7d17c10188
commit
9938e9fe0a
115
valgrind-3.5.0-glibc-2.12.patch
Normal file
115
valgrind-3.5.0-glibc-2.12.patch
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
--- valgrind/configure.in.jj 2010-05-04 17:19:22.000000000 -0400
|
||||||
|
+++ valgrind/configure.in 2010-05-04 17:23:06.691274000 -0400
|
||||||
|
@@ -666,6 +666,16 @@ AC_EGREP_CPP([GLIBC_211], [
|
||||||
|
],
|
||||||
|
GLIBC_VERSION="2.11")
|
||||||
|
|
||||||
|
+AC_EGREP_CPP([GLIBC_212], [
|
||||||
|
+#include <features.h>
|
||||||
|
+#ifdef __GNU_LIBRARY__
|
||||||
|
+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 12)
|
||||||
|
+ GLIBC_212
|
||||||
|
+ #endif
|
||||||
|
+#endif
|
||||||
|
+],
|
||||||
|
+GLIBC_VERSION="2.12")
|
||||||
|
+
|
||||||
|
AC_EGREP_CPP([AIX5_LIBC], [
|
||||||
|
#include <standards.h>
|
||||||
|
#if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
|
||||||
|
@@ -759,6 +769,13 @@ case "${GLIBC_VERSION}" in
|
||||||
|
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||||
|
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||||
|
;;
|
||||||
|
+ 2.12)
|
||||||
|
+ AC_MSG_RESULT(2.12 family)
|
||||||
|
+ AC_DEFINE([GLIBC_2_12], 1, [Define to 1 if you're using glibc 2.12.x])
|
||||||
|
+ DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
|
||||||
|
+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||||
|
+ DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||||
|
+ ;;
|
||||||
|
aix5)
|
||||||
|
AC_MSG_RESULT(AIX 5.1 or 5.2 or 5.3)
|
||||||
|
AC_DEFINE([AIX5_LIBC], 1, [Define to 1 if you're using AIX 5.1 or 5.2 or 5.3])
|
||||||
|
@@ -772,7 +789,7 @@ case "${GLIBC_VERSION}" in
|
||||||
|
|
||||||
|
*)
|
||||||
|
AC_MSG_RESULT(unsupported version)
|
||||||
|
- AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.11])
|
||||||
|
+ AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.12])
|
||||||
|
AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION])
|
||||||
|
AC_MSG_ERROR([or Darwin libc])
|
||||||
|
;;
|
||||||
|
--- valgrind/config.h.in.jj 2010-05-04 17:19:22.000000000 -0400
|
||||||
|
+++ valgrind/config.h.in 2010-05-04 17:23:37.788211000 -0400
|
||||||
|
@@ -18,6 +18,9 @@
|
||||||
|
/* Define to 1 if you're using glibc 2.11.x */
|
||||||
|
#undef GLIBC_2_11
|
||||||
|
|
||||||
|
+/* Define to 1 if you're using glibc 2.12.x */
|
||||||
|
+#undef GLIBC_2_12
|
||||||
|
+
|
||||||
|
/* Define to 1 if you're using glibc 2.2.x */
|
||||||
|
#undef GLIBC_2_2
|
||||||
|
|
||||||
|
--- valgrind/configure.jj 2010-05-04 17:19:22.000000000 -0400
|
||||||
|
+++ valgrind/configure 2010-05-04 17:24:45.271471000 -0400
|
||||||
|
@@ -5047,6 +5047,28 @@ cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
+#include <features.h>
|
||||||
|
+#ifdef __GNU_LIBRARY__
|
||||||
|
+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 12)
|
||||||
|
+ GLIBC_212
|
||||||
|
+ #endif
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+_ACEOF
|
||||||
|
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
|
+ $EGREP "GLIBC_212" >/dev/null 2>&1; then
|
||||||
|
+ GLIBC_VERSION="2.12"
|
||||||
|
+fi
|
||||||
|
+rm -f conftest*
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
+/* confdefs.h. */
|
||||||
|
+_ACEOF
|
||||||
|
+cat confdefs.h >>conftest.$ac_ext
|
||||||
|
+cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
+/* end confdefs.h. */
|
||||||
|
+
|
||||||
|
#include <standards.h>
|
||||||
|
#if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
|
||||||
|
AIX5_LIBC
|
||||||
|
@@ -5208,6 +5230,18 @@ _ACEOF
|
||||||
|
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||||
|
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||||
|
;;
|
||||||
|
+ 2.12)
|
||||||
|
+ echo "$as_me:$LINENO: result: 2.12 family" >&5
|
||||||
|
+echo "${ECHO_T}2.12 family" >&6
|
||||||
|
+
|
||||||
|
+cat >>confdefs.h <<\_ACEOF
|
||||||
|
+#define GLIBC_2_12 1
|
||||||
|
+_ACEOF
|
||||||
|
+
|
||||||
|
+ DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
|
||||||
|
+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||||
|
+ DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||||
|
+ ;;
|
||||||
|
aix5)
|
||||||
|
echo "$as_me:$LINENO: result: AIX 5.1 or 5.2 or 5.3" >&5
|
||||||
|
echo "${ECHO_T}AIX 5.1 or 5.2 or 5.3" >&6
|
||||||
|
@@ -5232,8 +5266,8 @@ _ACEOF
|
||||||
|
*)
|
||||||
|
echo "$as_me:$LINENO: result: unsupported version" >&5
|
||||||
|
echo "${ECHO_T}unsupported version" >&6
|
||||||
|
- { { echo "$as_me:$LINENO: error: Valgrind requires glibc version 2.2 - 2.11" >&5
|
||||||
|
-echo "$as_me: error: Valgrind requires glibc version 2.2 - 2.11" >&2;}
|
||||||
|
+ { { echo "$as_me:$LINENO: error: Valgrind requires glibc version 2.2 - 2.12" >&5
|
||||||
|
+echo "$as_me: error: Valgrind requires glibc version 2.2 - 2.12" >&2;}
|
||||||
|
{ (exit 1); exit 1; }; }
|
||||||
|
{ { echo "$as_me:$LINENO: error: or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" >&5
|
||||||
|
echo "$as_me: error: or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" >&2;}
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Tool for finding memory management bugs in programs
|
Summary: Tool for finding memory management bugs in programs
|
||||||
Name: valgrind
|
Name: valgrind
|
||||||
Version: 3.5.0
|
Version: 3.5.0
|
||||||
Release: 16%{?dist}
|
Release: 18%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Source0: http://www.valgrind.org/downloads/valgrind-%{version}.tar.bz2
|
Source0: http://www.valgrind.org/downloads/valgrind-%{version}.tar.bz2
|
||||||
Patch1: valgrind-3.5.0-cachegrind-improvements.patch
|
Patch1: valgrind-3.5.0-cachegrind-improvements.patch
|
||||||
@ -31,6 +31,7 @@ Patch24: valgrind-3.5.0-dwarf4.patch
|
|||||||
Patch25: valgrind-3.5.0-syscalls3.patch
|
Patch25: valgrind-3.5.0-syscalls3.patch
|
||||||
Patch26: valgrind-3.5.0-config_h.patch
|
Patch26: valgrind-3.5.0-config_h.patch
|
||||||
Patch27: valgrind-3.5.0-capget.patch
|
Patch27: valgrind-3.5.0-capget.patch
|
||||||
|
Patch28: valgrind-3.5.0-glibc-2.12.patch
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: http://www.valgrind.org/
|
URL: http://www.valgrind.org/
|
||||||
Group: Development/Debuggers
|
Group: Development/Debuggers
|
||||||
@ -40,7 +41,11 @@ Obsoletes: valgrind-callgrind
|
|||||||
# Ensure glibc{,-devel} is installed for both multilib arches
|
# Ensure glibc{,-devel} is installed for both multilib arches
|
||||||
BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
|
BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?fedora} >= 13 || 0%{?rhel} >= 6
|
||||||
|
BuildRequires: glibc-devel >= 2.12
|
||||||
|
%else
|
||||||
BuildRequires: glibc-devel >= 2.11
|
BuildRequires: glibc-devel >= 2.11
|
||||||
|
%endif
|
||||||
BuildRequires: openmpi-devel >= 1.3.3
|
BuildRequires: openmpi-devel >= 1.3.3
|
||||||
ExclusiveArch: %{ix86} x86_64 ppc ppc64
|
ExclusiveArch: %{ix86} x86_64 ppc ppc64
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
@ -121,6 +126,7 @@ for details.
|
|||||||
%patch24 -p1
|
%patch24 -p1
|
||||||
%patch25 -p1
|
%patch25 -p1
|
||||||
%patch27 -p1
|
%patch27 -p1
|
||||||
|
%patch28 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch x86_64 ppc64
|
%ifarch x86_64 ppc64
|
||||||
@ -216,6 +222,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/valgrind/libmpiwrap*.so
|
%{_libdir}/valgrind/libmpiwrap*.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 18 2010 Jakub Jelinek <jakub@redhat.com> 3.5.0-18
|
||||||
|
- rebuilt against glibc 2.12
|
||||||
|
|
||||||
* Mon Apr 12 2010 Jakub Jelinek <jakub@redhat.com> 3.5.0-16
|
* Mon Apr 12 2010 Jakub Jelinek <jakub@redhat.com> 3.5.0-16
|
||||||
- change pub_tool_basics.h not to include config.h (#579283)
|
- change pub_tool_basics.h not to include config.h (#579283)
|
||||||
- add valgrind-openmpi package for OpenMPI support (#565541)
|
- add valgrind-openmpi package for OpenMPI support (#565541)
|
||||||
|
Loading…
Reference in New Issue
Block a user