packages: valgrind/valgrind.spec, valgrind/valgrind-glibc211.patch (NEW) - ...

charles charles at pld-linux.org
Sat Mar 27 18:06:00 CET 2010


Author: charles                      Date: Sat Mar 27 17:06:00 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- glibc 2.11 fix

---- Files affected:
packages/valgrind:
   valgrind.spec (1.73 -> 1.74) , valgrind-glibc211.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/valgrind/valgrind.spec
diff -u packages/valgrind/valgrind.spec:1.73 packages/valgrind/valgrind.spec:1.74
--- packages/valgrind/valgrind.spec:1.73	Fri Aug 21 22:58:39 2009
+++ packages/valgrind/valgrind.spec	Sat Mar 27 18:05:53 2010
@@ -9,6 +9,7 @@
 Source0:	http://valgrind.org/downloads/%{name}-%{version}.tar.bz2
 # Source0-md5:	f03522a4687cf76c676c9494fcc0a517
 Patch0:		%{name}-debuginfo.patch
+Patch1:		%{name}-glibc211.patch
 URL:		http://valgrind.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -42,6 +43,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in
 
@@ -91,6 +93,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.74  2010/03/27 17:05:53  charles
+- glibc 2.11 fix
+
 Revision 1.73  2009/08/21 20:58:39  arekm
 - rel 2; doc fixed
 

================================================================
Index: packages/valgrind/valgrind-glibc211.patch
diff -u /dev/null packages/valgrind/valgrind-glibc211.patch:1.1
--- /dev/null	Sat Mar 27 18:06:00 2010
+++ packages/valgrind/valgrind-glibc211.patch	Sat Mar 27 18:05:53 2010
@@ -0,0 +1,50 @@
+Submitted By: Agathoklis Hatzimanikas <ag at linuxfromscratch dot org>
+Date: 2010-01-06
+Initial Package Version: 3.5.0
+Upstream Status: Uknown
+Origin: Gentoo
+Description: Allows Valgring to build with glibc-2.11
+
+diff -ruN valgrind-3.5.0/configure.in valgrind-3.5.0-fixed/configure.in
+--- valgrind-3.5.0/configure.in	2009-11-07 23:34:37.000000000 +0100
++++ valgrind-3.5.0-fixed/configure.in	2009-11-07 23:38:14.000000000 +0100
+@@ -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)
+@@ -742,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])
+@@ -755,7 +772,7 @@
+ 
+      *)
+ 	AC_MSG_RESULT(unsupported version)
+-	AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.10])
++	AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.11])
+ 	AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION])
+ 	AC_MSG_ERROR([or Darwin libc])
+ 	;;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/valgrind/valgrind.spec?r1=1.73&r2=1.74&f=u



More information about the pld-cvs-commit mailing list