/[gentoo-x86]/dev-util/valgrind/files/valgrind-3.6.0-glibc-2.13.patch
Gentoo

Contents of /dev-util/valgrind/files/valgrind-3.6.0-glibc-2.13.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 27 04:51:32 2011 UTC (3 years, 5 months ago) by ssuominen
Branch: MAIN
Fix compability with recent glibc release.

(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)

1 http://pkgs.fedoraproject.org/gitweb/?p=valgrind.git;a=summary
2
3 --- valgrind/configure.in
4 +++ valgrind/configure.in
5 @@ -649,6 +649,16 @@ _ACEOF
6 GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
7 fi
8
9 +AC_EGREP_CPP([GLIBC_213], [
10 +#include <features.h>
11 +#ifdef __GNU_LIBRARY__
12 + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 13)
13 + GLIBC_213
14 + #endif
15 +#endif
16 +],
17 +GLIBC_VERSION="2.13")
18 +
19 AC_EGREP_CPP([AIX5_LIBC], [
20 #include <standards.h>
21 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
22 @@ -749,6 +759,13 @@ case "${GLIBC_VERSION}" in
23 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
24 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
25 ;;
26 + 2.13)
27 + AC_MSG_RESULT(2.13 family)
28 + AC_DEFINE([GLIBC_2_13], 1, [Define to 1 if you're using glibc 2.13.x])
29 + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
30 + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
31 + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
32 + ;;
33 aix5)
34 AC_MSG_RESULT(AIX 5.1 or 5.2 or 5.3)
35 AC_DEFINE([AIX5_LIBC], 1, [Define to 1 if you're using AIX 5.1 or 5.2 or 5.3])
36 @@ -762,7 +779,7 @@ case "${GLIBC_VERSION}" in
37
38 *)
39 AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
40 - AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.12])
41 + AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.13])
42 AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION])
43 AC_MSG_ERROR([or Darwin libc])
44 ;;
45 --- valgrind/config.h.in
46 +++ valgrind/config.h.in
47 @@ -33,6 +33,9 @@
48 /* Define to 1 if you're using glibc 2.12.x */
49 #undef GLIBC_2_12
50
51 +/* Define to 1 if you're using glibc 2.13.x */
52 +#undef GLIBC_2_13
53 +
54 /* Define to 1 if you're using glibc 2.2.x */
55 #undef GLIBC_2_2
56

  ViewVC Help
Powered by ViewVC 1.1.20