OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
4.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../valgrind/valgrind-3.5.0-glibc-2.11.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Description: Accept to build valgrind 3.50 against glibc 2.11
  17. Origin: http://pkgs.fedoraproject.org/gitweb/?p=valgrind.git;a=tree
  18. --- valgrind/configure.in.jj 2009-08-19 15:37:48.000000000 +0200
  19. +++ valgrind/configure.in 2009-11-04 08:37:09.820077680 +0100
  20. @@ -656,6 +656,16 @@ AC_EGREP_CPP([GLIBC_210], [
  21. ],
  22. GLIBC_VERSION="2.10")
  23. +AC_EGREP_CPP([GLIBC_211], [
  24. +#include <features.h>
  25. +#ifdef __GNU_LIBRARY__
  26. + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 11)
  27. + GLIBC_211
  28. + #endif
  29. +#endif
  30. +],
  31. +GLIBC_VERSION="2.11")
  32. +
  33. AC_EGREP_CPP([AIX5_LIBC], [
  34. #include <standards.h>
  35. #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
  36. @@ -742,6 +752,13 @@ case "${GLIBC_VERSION}" in
  37. DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
  38. DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
  39. ;;
  40. + 2.11)
  41. + AC_MSG_RESULT(2.11 family)
  42. + AC_DEFINE([GLIBC_2_11], 1, [Define to 1 if you're using glibc 2.11.x])
  43. + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
  44. + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
  45. + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
  46. + ;;
  47. aix5)
  48. AC_MSG_RESULT(AIX 5.1 or 5.2 or 5.3)
  49. AC_DEFINE([AIX5_LIBC], 1, [Define to 1 if you're using AIX 5.1 or 5.2 or 5.3])
  50. @@ -755,7 +772,7 @@ case "${GLIBC_VERSION}" in
  51. *)
  52. AC_MSG_RESULT(unsupported version)
  53. - AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.10])
  54. + AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.11])
  55. AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION])
  56. AC_MSG_ERROR([or Darwin libc])
  57. ;;
  58. --- valgrind/config.h.in.jj 2009-08-19 15:39:05.000000000 +0200
  59. +++ valgrind/config.h.in 2009-11-04 08:38:36.051072661 +0100
  60. @@ -15,6 +15,9 @@
  61. /* Define to 1 if you're using glibc 2.10.x */
  62. #undef GLIBC_2_10
  63. +/* Define to 1 if you're using glibc 2.11.x */
  64. +#undef GLIBC_2_11
  65. +
  66. /* Define to 1 if you're using glibc 2.2.x */
  67. #undef GLIBC_2_2
  68. --- valgrind/configure.jj 2009-08-19 15:44:07.000000000 +0200
  69. +++ valgrind/configure 2009-11-04 08:38:08.421433252 +0100
  70. @@ -5025,6 +5025,28 @@ cat confdefs.h >>conftest.$ac_ext
  71. cat >>conftest.$ac_ext <<_ACEOF
  72. /* end confdefs.h. */
  73. +#include <features.h>
  74. +#ifdef __GNU_LIBRARY__
  75. + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 11)
  76. + GLIBC_211
  77. + #endif
  78. +#endif
  79. +
  80. +_ACEOF
  81. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  82. + $EGREP "GLIBC_211" >/dev/null 2>&1; then
  83. + GLIBC_VERSION="2.11"
  84. +fi
  85. +rm -f conftest*
  86. +
  87. +
  88. +cat >conftest.$ac_ext <<_ACEOF
  89. +/* confdefs.h. */
  90. +_ACEOF
  91. +cat confdefs.h >>conftest.$ac_ext
  92. +cat >>conftest.$ac_ext <<_ACEOF
  93. +/* end confdefs.h. */
  94. +
  95. #include <standards.h>
  96. #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
  97. AIX5_LIBC
  98. @@ -5174,6 +5196,18 @@ _ACEOF
  99. DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
  100. DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
  101. ;;
  102. + 2.11)
  103. + echo "$as_me:$LINENO: result: 2.11 family" >&5
  104. +echo "${ECHO_T}2.11 family" >&6
  105. +
  106. +cat >>confdefs.h <<\_ACEOF
  107. +#define GLIBC_2_11 1
  108. +_ACEOF
  109. +
  110. + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
  111. + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
  112. + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
  113. + ;;
  114. aix5)
  115. echo "$as_me:$LINENO: result: AIX 5.1 or 5.2 or 5.3" >&5
  116. echo "${ECHO_T}AIX 5.1 or 5.2 or 5.3" >&6
  117. @@ -5198,8 +5232,8 @@ _ACEOF
  118. *)
  119. echo "$as_me:$LINENO: result: unsupported version" >&5
  120. echo "${ECHO_T}unsupported version" >&6
  121. - { { echo "$as_me:$LINENO: error: Valgrind requires glibc version 2.2 - 2.10" >&5
  122. -echo "$as_me: error: Valgrind requires glibc version 2.2 - 2.10" >&2;}
  123. + { { echo "$as_me:$LINENO: error: Valgrind requires glibc version 2.2 - 2.11" >&5
  124. +echo "$as_me: error: Valgrind requires glibc version 2.2 - 2.11" >&2;}
  125. { (exit 1); exit 1; }; }
  126. { { echo "$as_me:$LINENO: error: or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" >&5
  127. echo "$as_me: error: or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" >&2;}