summaryrefslogtreecommitdiff
path: root/valgrind
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@crux.nu>2010-08-23 21:29:54 +0200
committerTilman Sauerbeck <tilman@crux.nu>2010-08-23 21:29:54 +0200
commit16ec146a0ec8caecd9a4f9487e0c041d0219043d (patch)
tree7f3a665d46fd0b54647d6f89496c3eaa73df583f /valgrind
parent284632641d745f039bb3e655f98cf25006c8ca72 (diff)
downloadopt-16ec146a0ec8caecd9a4f9487e0c041d0219043d.tar.gz
opt-16ec146a0ec8caecd9a4f9487e0c041d0219043d.tar.xz
valgrind: fixed the build with glibc 2.12.
Diffstat (limited to 'valgrind')
-rw-r--r--valgrind/.md5sum1
-rw-r--r--valgrind/Pkgfile15
-rw-r--r--valgrind/valgrind.diff101
3 files changed, 113 insertions, 4 deletions
diff --git a/valgrind/.md5sum b/valgrind/.md5sum
index 72a93674e..9a5d93f35 100644
--- a/valgrind/.md5sum
+++ b/valgrind/.md5sum
@@ -1 +1,2 @@
f03522a4687cf76c676c9494fcc0a517 valgrind-3.5.0.tar.bz2
+8b0788b46041139c3563d1475e3e13f3 valgrind.diff
diff --git a/valgrind/Pkgfile b/valgrind/Pkgfile
index fb0ca4510..a49f06b44 100644
--- a/valgrind/Pkgfile
+++ b/valgrind/Pkgfile
@@ -4,14 +4,21 @@
name=valgrind
version=3.5.0
-release=1
-source=(http://$name.org/downloads/$name-$version.tar.bz2)
+release=2
+source=(http://$name.org/downloads/$name-$version.tar.bz2
+ $name.diff)
build() {
cd $name-$version
- ./configure --prefix=/usr
+ # Add support for glibc 2.12:
+ patch -p0 -i $SRC/$name.diff
+ autoreconf -if
+
+ ./configure --prefix=/usr --mandir=/usr/man
make
make DESTDIR=$PKG install
- rm -rf $PKG/usr/share
+
+ rm -rf $PKG/usr/share/doc
+ rmdir $PKG/usr/share
}
diff --git a/valgrind/valgrind.diff b/valgrind/valgrind.diff
new file mode 100644
index 000000000..eb2859656
--- /dev/null
+++ b/valgrind/valgrind.diff
@@ -0,0 +1,101 @@
+http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-util/valgrind/files/valgrind-3.5.0-glibc-2.12.patch?revision=1.1
+http://cvs.fedoraproject.org/viewvc/rpms/valgrind/devel/valgrind-3.5.0-glibc-2.12.patch?view=log
+
+http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-util/valgrind/files/valgrind-3.5.0-stat_h.patch?revision=1.1
+http://cvs.fedoraproject.org/viewvc/rpms/valgrind/devel/valgrind-3.5.0-stat_h.patch?view=log
+
+--- configure.in
++++ configure.in
+@@ -666,6 +666,16 @@ AC_EGREP_CPP([GLIBC_211], [
+ ],
+ GLIBC_VERSION="2.11")
+
++AC_EGREP_CPP([GLIBC_212], [
++#include <features.h>
++#ifdef __GNU_LIBRARY__
++ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 12)
++ GLIBC_212
++ #endif
++#endif
++],
++GLIBC_VERSION="2.12")
++
+ AC_EGREP_CPP([AIX5_LIBC], [
+ #include <standards.h>
+ #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
+@@ -759,6 +769,13 @@ case "${GLIBC_VERSION}" in
+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
+ DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
+ ;;
++ 2.12)
++ AC_MSG_RESULT(2.12 family)
++ AC_DEFINE([GLIBC_2_12], 1, [Define to 1 if you're using glibc 2.12.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])
+--- config.h.in
++++ config.h.in
+@@ -18,6 +18,9 @@
+ /* Define to 1 if you're using glibc 2.11.x */
+ #undef GLIBC_2_11
+
++/* Define to 1 if you're using glibc 2.12.x */
++#undef GLIBC_2_12
++
+ /* Define to 1 if you're using glibc 2.2.x */
+ #undef GLIBC_2_2
+
+
+--- include/vki/vki-amd64-linux.h
++++ include/vki/vki-amd64-linux.h
+@@ -310,6 +310,9 @@ struct vki_stat {
+ long st_blksize;
+ long st_blocks; /* Number 512-byte blocks allocated. */
+
++#undef st_atime
++#undef st_mtime
++#undef st_ctime
+ unsigned long st_atime;
+ unsigned long st_atime_nsec;
+ unsigned long st_mtime;
+--- include/vki/vki-x86-linux.h
++++ include/vki/vki-x86-linux.h
+@@ -348,6 +348,9 @@ struct vki_stat {
+ unsigned long st_size;
+ unsigned long st_blksize;
+ unsigned long st_blocks;
++#undef st_atime
++#undef st_mtime
++#undef st_ctime
+ unsigned long st_atime;
+ unsigned long st_atime_nsec;
+ unsigned long st_mtime;
+--- include/vki/vki-ppc32-linux.h
++++ include/vki/vki-ppc32-linux.h
+@@ -392,6 +392,9 @@ struct vki_stat {
+ long st_size;
+ unsigned long st_blksize;
+ unsigned long st_blocks;
++#undef st_atime
++#undef st_mtime
++#undef st_ctime
+ unsigned long st_atime;
+ unsigned long st_atime_nsec;
+ unsigned long st_mtime;
+--- include/vki/vki-ppc64-linux.h
++++ include/vki/vki-ppc64-linux.h
+@@ -428,6 +428,9 @@ struct vki_stat {
+ long st_size;
+ unsigned long st_blksize;
+ unsigned long st_blocks;
++#undef st_atime
++#undef st_mtime
++#undef st_ctime
+ unsigned long st_atime;
+ unsigned long st_atime_nsec;
+ unsigned long st_mtime;
+

Generated by cgit