[arch-commits] Commit in valgrind/trunk (PKGBUILD glibc211.diff)

andyrtr at archlinux.org andyrtr at archlinux.org
Sun Nov 1 19:31:05 UTC 2009


    Date: Sunday, November 1, 2009 @ 14:31:04
  Author: andyrtr
Revision: 57714

upgpkg: valgrind 3.5.0-3
    rebuild for new glibc, added a buildfix

Added:
  valgrind/trunk/glibc211.diff
Modified:
  valgrind/trunk/PKGBUILD

---------------+
 PKGBUILD      |   11 +++++++----
 glibc211.diff |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-01 19:02:07 UTC (rev 57713)
+++ PKGBUILD	2009-11-01 19:31:04 UTC (rev 57714)
@@ -4,19 +4,22 @@
 
 pkgname=valgrind
 pkgver=3.5.0
-pkgrel=2
+pkgrel=3
 pkgdesc="A tool to help find memory-management problems in programs"
 arch=('i686' 'x86_64')
 license=('GPL')
 url="http://valgrind.org/"
-depends=('glibc>=2.10.1' 'glibc<2.11' 'perl')
+depends=('glibc>=2.11' 'glibc<2.12' 'perl')
 makedepends=('gdb')
 options=(!emptydirs)
-source=(http://valgrind.org/downloads/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('f03522a4687cf76c676c9494fcc0a517')
+source=(http://valgrind.org/downloads/${pkgname}-${pkgver}.tar.bz2 glibc211.diff)
+md5sums=('f03522a4687cf76c676c9494fcc0a517'
+         'bb137ce7378b6a2d1ad203418da8b68f')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
+  patch -Np0 -i ${srcdir}/glibc211.diff || return 1
+  autoreconf
 
   # make sure our CFLAGS are respected
   sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in

Added: glibc211.diff
===================================================================
--- glibc211.diff	                        (rev 0)
+++ glibc211.diff	2009-11-01 19:31:04 UTC (rev 57714)
@@ -0,0 +1,33 @@
+--- configure.in	2009-08-19 13:37:48.000000000 +0000
++++ configure.in.new	2009-11-01 19:13:18.809940246 +0000
+@@ -656,6 +656,16 @@
+ ],
+ GLIBC_VERSION="2.10")
+ 
++AC_EGREP_CPP([GLIBC_211], [
++#include <features.h>
++#ifdef __GNU_LIBRARY__
++ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 11)
++  GLIBC_211
++ #endif
++#endif
++],
++GLIBC_VERSION="2.11")
++
+ AC_EGREP_CPP([AIX5_LIBC], [
+ #include <standards.h>
+ #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
+@@ -752,6 +752,13 @@
+ 	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
+ 	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
+ 	;;
++     2.11)
++	AC_MSG_RESULT(2.11 family)
++	AC_DEFINE([GLIBC_2_11], 1, [Define to 1 if you're using glibc 2.11.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])




More information about the arch-commits mailing list