3.9.0-7 Add valgrind-3.9.0-glibc-2.19.patch
This commit is contained in:
parent
81b3a08682
commit
77a7a40fa3
72
valgrind-3.9.0-glibc-2.19.patch
Normal file
72
valgrind-3.9.0-glibc-2.19.patch
Normal file
@ -0,0 +1,72 @@
|
||||
diff -ur valgrind-3.9.0.orig/config.h.in valgrind-3.9.0/config.h.in
|
||||
--- valgrind-3.9.0.orig/config.h.in 2014-02-21 22:35:28.368908710 +0100
|
||||
+++ valgrind-3.9.0/config.h.in 2014-02-21 22:36:09.000000000 +0100
|
||||
@@ -57,6 +57,9 @@
|
||||
/* Define to 1 if you're using glibc 2.18.x */
|
||||
#undef GLIBC_2_18
|
||||
|
||||
+/* Define to 1 if you're using glibc 2.19.x */
|
||||
+#undef GLIBC_2_19
|
||||
+
|
||||
/* Define to 1 if you're using glibc 2.2.x */
|
||||
#undef GLIBC_2_2
|
||||
|
||||
diff -ur valgrind-3.9.0.orig/configure valgrind-3.9.0/configure
|
||||
--- valgrind-3.9.0.orig/configure 2014-02-21 22:35:28.425909165 +0100
|
||||
+++ valgrind-3.9.0/configure 2014-02-21 23:20:33.425979851 +0100
|
||||
@@ -6689,6 +6689,16 @@
|
||||
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||
;;
|
||||
+ 2.19)
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.19 family" >&5
|
||||
+$as_echo "2.19 family" >&6; }
|
||||
+
|
||||
+$as_echo "#define GLIBC_2_19 1" >>confdefs.h
|
||||
+
|
||||
+ 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}"
|
||||
+ ;;
|
||||
darwin)
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
||||
$as_echo "Darwin" >&6; }
|
||||
@@ -6709,8 +6719,8 @@
|
||||
*)
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5
|
||||
$as_echo "unsupported version ${GLIBC_VERSION}" >&6; }
|
||||
- as_fn_error $? "Valgrind requires glibc version 2.2 - 2.17" "$LINENO" 5
|
||||
- as_fn_error $? "or Darwin libc" "$LINENO" 5
|
||||
+ as_fn_error $? "Valgrind requires glibc version 2.2 - 2.19" "$LINENO" 5
|
||||
+ as_fn_error $? "or Darwin or Bionic libc" "$LINENO" 5
|
||||
;;
|
||||
esac
|
||||
|
||||
diff -ur valgrind-3.9.0.orig/configure.ac valgrind-3.9.0/configure.ac
|
||||
--- valgrind-3.9.0.orig/configure.ac 2014-02-21 22:35:28.368908710 +0100
|
||||
+++ valgrind-3.9.0/configure.ac 2014-02-21 22:35:53.044106114 +0100
|
||||
@@ -918,6 +918,13 @@
|
||||
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
||||
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
||||
;;
|
||||
+ 2.19)
|
||||
+ AC_MSG_RESULT(2.19 family)
|
||||
+ AC_DEFINE([GLIBC_2_19], 1, [Define to 1 if you're using glibc 2.19.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}"
|
||||
+ ;;
|
||||
darwin)
|
||||
AC_MSG_RESULT(Darwin)
|
||||
AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin])
|
||||
@@ -931,8 +938,8 @@
|
||||
|
||||
*)
|
||||
AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
|
||||
- AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.17])
|
||||
- AC_MSG_ERROR([or Darwin libc])
|
||||
+ AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.19])
|
||||
+ AC_MSG_ERROR([or Darwin or Bionic libc])
|
||||
;;
|
||||
esac
|
||||
|
@ -3,7 +3,7 @@
|
||||
Summary: Tool for finding memory management bugs in programs
|
||||
Name: %{?scl_prefix}valgrind
|
||||
Version: 3.9.0
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Epoch: 1
|
||||
License: GPLv2+
|
||||
URL: http://www.valgrind.org/
|
||||
@ -59,6 +59,9 @@ Patch14: valgrind-3.9.0-s390-dup3.patch
|
||||
# KDE#331380 - Syscall param timer_create(evp) points to uninitialised byte(s)
|
||||
Patch15: valgrind-3.9.0-timer_create.patch
|
||||
|
||||
# Accept glibc 2.19 as valid (upstream valgrind svn r13829)
|
||||
Patch16: valgrind-3.9.0-glibc-2.19.patch
|
||||
|
||||
%ifarch x86_64 ppc64
|
||||
# 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
|
||||
@ -166,6 +169,7 @@ Valgrind User Manual for details.
|
||||
%patch13 -p1
|
||||
%patch14 -p1
|
||||
%patch15 -p1
|
||||
%patch16 -p1
|
||||
|
||||
%build
|
||||
# We need to use the software collection compiler and binutils if available.
|
||||
@ -319,6 +323,9 @@ echo ===============END TESTING===============
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Feb 21 2014 Mark Wielaard <mjw@redhat.com> - 3.9.0-7
|
||||
- Add valgrind-3.9.0-glibc-2.19.patch
|
||||
|
||||
* Fri Feb 21 2014 Mark Wielaard <mjw@redhat.com> - 3.9.0-6
|
||||
- Add valgrind-3.9.0-s390-dup3.patch
|
||||
- Add valgrind-3.9.0-timer_create.patch
|
||||
|
Loading…
Reference in New Issue
Block a user