summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice van der Pot <griffon26@gentoo.org>2008-12-13 10:57:06 +0000
committerMaurice van der Pot <griffon26@gentoo.org>2008-12-13 10:57:06 +0000
commite7b5db227b5b96c71b7e8f4db6239fec273d955c (patch)
treeac78d4e0e3bf42bdd11b160d7a57dbb50f77ec02 /dev-util
parentDeclare i var as local (diff)
downloadhistorical-e7b5db227b5b96c71b7e8f4db6239fec273d955c.tar.gz
historical-e7b5db227b5b96c71b7e8f4db6239fec273d955c.tar.bz2
historical-e7b5db227b5b96c71b7e8f4db6239fec273d955c.zip
Added patch valgrind to support glibc 2.9 (bug #250570).
Package-Manager: portage-2.1.6/cvs/Linux 2.6.26.2 x86_64
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/valgrind/ChangeLog9
-rw-r--r--dev-util/valgrind/Manifest14
-rw-r--r--dev-util/valgrind/files/valgrind-3.3.1-glibc-2.9.patch141
-rw-r--r--dev-util/valgrind/valgrind-3.3.1-r1.ebuild98
4 files changed, 260 insertions, 2 deletions
diff --git a/dev-util/valgrind/ChangeLog b/dev-util/valgrind/ChangeLog
index 6a42668382ee..604b5fd776a0 100644
--- a/dev-util/valgrind/ChangeLog
+++ b/dev-util/valgrind/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-util/valgrind
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/ChangeLog,v 1.93 2008/08/24 11:41:59 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/ChangeLog,v 1.94 2008/12/13 10:57:06 griffon26 Exp $
+
+*valgrind-3.3.1-r1 (13 Dec 2008)
+
+ 13 Dec 2008; Maurice van der Pot <griffon26@gentoo.org>
+ +files/valgrind-3.3.1-glibc-2.9.patch, +valgrind-3.3.1-r1.ebuild:
+ Added patch to support glibc-2.9, submitted by Bartosz Szreder
+ <cfiend@talent.edu.pl> in bug #250570.
24 Aug 2008; Markus Rothe <corsair@gentoo.org> valgrind-3.3.1.ebuild:
Stable on ppc64; bug #234526
diff --git a/dev-util/valgrind/Manifest b/dev-util/valgrind/Manifest
index 036238a6cd63..67fccb2a4abb 100644
--- a/dev-util/valgrind/Manifest
+++ b/dev-util/valgrind/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX valgrind-3.2.1-only64bit.patch 560 RMD160 d7203e51c4bc6be4003f0715c779e9b384beff06 SHA1 e5f27e95f1608c611b599140f2e175769a47bb80 SHA256 f4100efb266b49503ab198f5540ad05e4a9defe19d579348e5c7edcad0ffae63
AUX valgrind-3.2.3-glibc-2.6.patch 5825 RMD160 52e5c472eeeb418ea77ef1f3f3e4489d4d4f5031 SHA1 46d07bb66518a43795d0cee06ae5a5e58331b4ee SHA256 23bd0d40098d6a16f09152e77ba61bd97332be499b1a106e9bae9000ab200c29
AUX valgrind-3.2.3-glibc-2.7.patch 5555 RMD160 24671cce520a45804eac0ce3ecf5c11d8d7bd30e SHA1 338ba61a195ba49e646dc1860a792517298d8b17 SHA256 9d32c2690fa0663ffeeacc7c971c3b9953202d4c279e15d8977740417dfd32d7
@@ -5,6 +8,7 @@ AUX valgrind-3.2.3-pkg-config.patch 670 RMD160 26d8f37182da50110e4c40c5be0ec9d06
AUX valgrind-3.2.3-unhandled-instr-amd64.patch 503 RMD160 e132a92f4f36b4019e86018e665d97eef2c1af00 SHA1 8cf0b4a7db85c3ab4b97beee7b6e02081a1c8497 SHA256 a5666ee374f5c0c4d57e6aed73a6765036c659dc4eeeebbd969ea1c1f1cbd2cd
AUX valgrind-3.3.0-massif-cplusplus.patch 2918 RMD160 4a9d372385a83ce4b6cf43ea249a3736eeedb37e SHA1 f009a2b6d9905af18908cee355977fdbfec7e1f1 SHA256 1308e02e9b5600bc3d88e705efd59ff2e0d0294679d7455849094f9f52c8b0ca
AUX valgrind-3.3.0-only64bit.patch 580 RMD160 f4304ad005586541400e6c1466dabf8cdaac2b72 SHA1 7c890914ec0fd53b8de662783b230ec78e57e345 SHA256 23485d4b03c66db3c58f3a7e9d0aca439a50b87ea60f2edaaf94229b54a80ee9
+AUX valgrind-3.3.1-glibc-2.9.patch 3428 RMD160 43564fd811561a8857a7a63cf960c234547e80e3 SHA1 fe2c4e880c4778b74715926fb1b978d8f26de917 SHA256 19c1dff2e83c876cdd49facb1308c6442b516a8c9d5f68750d6fc025ba38af14
AUX valgrind-3.3.1-local-labels.patch 1186 RMD160 3eeb3a847f85b2b68e32ce5966539067103b12c1 SHA1 07c6afbc4eb2565404ffe12aa8cd0357fd736ab4 SHA256 79a0e65903ce1b7ec0c0759c4face9a23bd9724831bf0b8c201dced2dc7dbb71
DIST valgrind-3.2.3.tar.bz2 4016265 RMD160 62579fc7f1f3c39038b32467b2d098eeb8f77c79 SHA1 550195a913997ff15f12eea484bd3fe636b25472 SHA256 1bca920527f43fd0c68e8f8eb16a7996b34f415e73af54de0f2cd43a8247c441
DIST valgrind-3.3.0.tar.bz2 4519551 RMD160 ea969a421163010c263a67fb0a2797d3f6cca62c SHA1 e2d0f3bcb4e6dd4638ceeddc9da8603b32efdf11 SHA256 5af08229d77fe55437a6c558aee9babcff23f28c8a9c8f1f0a7d152754e9947a
@@ -13,6 +17,14 @@ EBUILD valgrind-3.2.3-r1.ebuild 3093 RMD160 42e6d59be58e517fcd96d7cf82ca67df81ec
EBUILD valgrind-3.2.3.ebuild 3045 RMD160 f6477fea15734de984994306e19c6222a64ad0b3 SHA1 898f6bce8fde85ed9a77b745ff080b9766b8b93f SHA256 8a6b3c69d44c6b56f8fbe987a78782ef1165c347aa4be2b623de0f088556d11f
EBUILD valgrind-3.3.0-r1.ebuild 3213 RMD160 3f57761ab3f21eef8f65f4b06c5ee2d3b43d6f7c SHA1 46decd0f419a3fe03bebed01d77c81bd31abe7bd SHA256 86362a8584f2914702d63da253c2487b12fb30e50beabe29580c09950b5a9c6c
EBUILD valgrind-3.3.0.ebuild 3079 RMD160 da4102371fa30a15df1566d0958ea40ebe09dfb9 SHA1 72e0b01a128b2782190926aecc9be01c101c4a90 SHA256 9ce02a5699592dd7c91b9ae7cbadb0622c5c3cd9b4c2e5b0d7ffc201e63eef23
+EBUILD valgrind-3.3.1-r1.ebuild 3385 RMD160 d1c102300788ba35b15a565817c44a053ecc65a9 SHA1 7f48f883bbbdc7f083fa3429c3522906829ecd38 SHA256 8eb9036a730fa488a92e207551b2443d6dd5846e96b8d76febb3c6abcbf6c793
EBUILD valgrind-3.3.1.ebuild 3252 RMD160 43b41c41747035258ae2d745823e48658426ed90 SHA1 5c085791efd179327ab0f317ec8f09a08e36cef1 SHA256 399f4bd21c1cce2c3c4bab5b96cd0886f74481bce8c6f6750e6bee78242d850b
-MISC ChangeLog 14326 RMD160 ca20ef08f66e7648267a837283fc78de6db26ff8 SHA1 6fe3c124c1b0003b96fab338f594e3ca146ed52c SHA256 83e07bcf5b2b8eb434a693c48517d02be198d5305df091d435b7c658d62d3b58
+MISC ChangeLog 14595 RMD160 e35df01bea22ce399687278438e05f7256250983 SHA1 6fc182efdec402e05cce495fd5e1bb08a2d27669 SHA256 06a0edf6cfae092593a44353165b76818e50708def675ae2deb83f2df69bfa91
MISC metadata.xml 1003 RMD160 e8ef4473e3545a4b98d46101edb49923112ac9e0 SHA1 f76bd7adb86b156832175f968d60c6372fcf8968 SHA256 2bf62ba94d772ac968485392127cf4f4303cccf5a1e6d0733d80507005ca7847
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAklDlQsACgkQMGnpIbeahxztfwCguCScz2A+NZhj8hTScC5OOnQE
+TOUAn00nIHg7MkZOoxj5AIYrAOyJ2LvR
+=l16s
+-----END PGP SIGNATURE-----
diff --git a/dev-util/valgrind/files/valgrind-3.3.1-glibc-2.9.patch b/dev-util/valgrind/files/valgrind-3.3.1-glibc-2.9.patch
new file mode 100644
index 000000000000..bbae3ab2e52f
--- /dev/null
+++ b/dev-util/valgrind/files/valgrind-3.3.1-glibc-2.9.patch
@@ -0,0 +1,141 @@
+diff -ruN valgrind-3.3.1/configure.in valgrind-3.3.1-fixed/configure.in
+--- valgrind-3.3.1/configure.in 2008-12-13 11:41:07.000000000 +0100
++++ valgrind-3.3.1-fixed/configure.in 2008-12-13 11:43:06.000000000 +0100
+@@ -479,6 +479,16 @@
+ ],
+ libc="2.8")
+
++AC_EGREP_CPP([GLIBC_29], [
++#include <features.h>
++#ifdef __GNU_LIBRARY__
++ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 9)
++ GLIBC_29
++ #endif
++#endif
++],
++libc="2.9")
++
+ AC_EGREP_CPP([AIX5_LIBC], [
+ #include <standards.h>
+ #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
+@@ -535,6 +545,12 @@
+ DEFAULT_SUPP="glibc-2.8.supp ${DEFAULT_SUPP}"
+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
+ ;;
++ 2.9)
++ AC_MSG_RESULT(2.9 family)
++ AC_DEFINE([GLIBC_2_9], 1, [Define to 1 if you're using glibc 2.9.x])
++ DEFAULT_SUPP="glibc-2.9.supp ${DEFAULT_SUPP}"
++ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.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])
+@@ -543,7 +559,7 @@
+
+ *)
+ AC_MSG_RESULT(unsupported version)
+- AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.7])
++ AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.9])
+ AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 libc])
+ ;;
+ esac
+diff -ruN valgrind-3.3.1/glibc-2.9.supp valgrind-3.3.1-fixed/glibc-2.9.supp
+--- valgrind-3.3.1/glibc-2.9.supp 1970-01-01 01:00:00.000000000 +0100
++++ valgrind-3.3.1-fixed/glibc-2.9.supp 2008-12-13 11:38:58.000000000 +0100
+@@ -0,0 +1,95 @@
++
++# Errors to suppress by default with glibc 2.9.x
++
++# Format of this file is:
++# {
++# name_of_suppression
++# tool_name:supp_kind
++# (optional extra info for some suppression types)
++# caller0 name, or /name/of/so/file.so
++# caller1 name, or ditto
++# (optionally: caller2 name)
++# (optionally: caller3 name)
++# }
++#
++# For Memcheck, the supp_kinds are:
++#
++# Param Value1 Value2 Value4 Value8 Value16 Jump
++# Free Addr1 Addr2 Addr4 Addr8 Addr16
++# Cond (previously known as Value0)
++#
++# and the optional extra info is:
++# if Param: name of system call param
++
++{
++ dl-hack3-cond-1
++ Memcheck:Cond
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/ld-2.9*.so*
++}
++{
++ dl-hack3-cond-2
++ Memcheck:Cond
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/libc-2.9*.so*
++}
++{
++ dl-hack3-cond-3
++ Memcheck:Cond
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/libc-2.9*.so*
++ obj:/lib*/libc-2.9*.so*
++}
++{
++ dl-hack3-cond-4
++ Memcheck:Cond
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/libdl-2.9*.so*
++}
++
++{
++ dl-hack4-64bit-addr-1
++ Memcheck:Addr8
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/ld-2.9*.so*
++}
++{
++ dl-hack4-64bit-addr-2
++ Memcheck:Addr8
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/libc-2.9*.so*
++}
++{
++ dl-hack4-64bit-addr-3
++ Memcheck:Addr8
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/ld-2.9*.so*
++ obj:/lib*/libdl-2.9*.so*
++}
++
++{
++ dl-hack5-32bit-addr-1
++ Memcheck:Addr4
++ obj:/lib/ld-2.9*.so
++ obj:/lib/ld-2.9*.so
++ obj:/lib/ld-2.9*.so
++}
++{
++ dl-hack5-32bit-addr-3
++ Memcheck:Addr4
++ obj:/lib/ld-2.9*.so
++ obj:/lib/ld-2.9*.so
++ obj:/lib/libdl-2.9*.so*
++}
++{
++ dl-hack5-32bit-addr-4
++ Memcheck:Addr4
++ obj:/lib/ld-2.9*.so
++ obj:/lib/libdl-2.9*.so*
++ obj:/lib/ld-2.9*.so
++}
diff --git a/dev-util/valgrind/valgrind-3.3.1-r1.ebuild b/dev-util/valgrind/valgrind-3.3.1-r1.ebuild
new file mode 100644
index 000000000000..802e2b5511c3
--- /dev/null
+++ b/dev-util/valgrind/valgrind-3.3.1-r1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-3.3.1-r1.ebuild,v 1.1 2008/12/13 10:57:06 griffon26 Exp $
+
+inherit autotools eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="An open-source memory debugger for GNU/Linux"
+HOMEPAGE="http://www.valgrind.org"
+SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
+IUSE="X"
+
+RDEPEND="!dev-util/callgrind"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # make sure our CFLAGS are respected
+ einfo "Changing configure.in to respect CFLAGS"
+ sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in
+
+ # undefined references to __guard and __stack_smash_handler in VEX (bug #114347)
+ einfo "Changing Makefile.flags.am to disable SSP"
+ sed -i -e 's:^AM_CFLAGS_BASE = :AM_CFLAGS_BASE = -fno-stack-protector :' Makefile.flags.am
+
+ # Correct hard coded doc location
+ sed -i -e "s:doc/valgrind:doc/${P}:" docs/Makefile.am
+
+ # Fix incorrect --libs output in valgrind.pc (bug #147904)
+ epatch "${FILESDIR}/${PN}-3.2.3-pkg-config.patch"
+
+ # Remove defaulting to ppc32-linux on ppc64 without multilib
+ # "valgrind: failed to start tool 'memcheck' for platform 'ppc32-linux':
+ # No such file or directory"
+ if use ppc64 && ! has_multilib_profile; then
+ epatch "${FILESDIR}/valgrind-3.3.0-only64bit.patch"
+ fi
+
+ # Use local labels in inline asm to prevent 'symbol already defined' errors
+ # when optimisation is on (bug #234644).
+ epatch "${FILESDIR}/valgrind-3.3.1-local-labels.patch"
+
+ # Add suppression file for glibc 2.9 and don't bail out on configure
+ epatch "${FILESDIR}/valgrind-3.3.1-glibc-2.9.patch"
+
+ # Regenerate autotools files
+ eautoreconf
+}
+
+src_compile() {
+ local myconf
+
+ # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
+ # while compiling insn_sse.c in none/tests/x86
+ # -fpie valgrind seemingly hangs when built with pie on
+ # amd64 (bug #102157)
+ # -fstack-protector more undefined references to __guard and __stack_smash_handler
+ # because valgrind doesn't link to glibc (bug #114347)
+ # -ggdb3 segmentation fault on startup
+ filter-flags -fomit-frame-pointer
+ filter-flags -fpie
+ filter-flags -fstack-protector
+ replace-flags -ggdb3 -ggdb2
+
+ # gcc 3.3.x fails to compile valgrind with -O3 (bug #129776)
+ if [ "$(gcc-version)" == "3.3" ] && is-flagq -O3; then
+ ewarn "GCC 3.3 cannot compile valgrind with -O3 in CFLAGS, using -O2 instead."
+ replace-flags -O3 -O2
+ fi
+
+ # Optionally build in X suppression files
+ use X && myconf="--with-x" || myconf="--with-x=no"
+
+ if use amd64 || use ppc64; then
+ ! has_multilib_profile && myconf="${myconf} --enable-only64bit"
+ fi
+
+ econf ${myconf} --without-mpicc || die "Configure failed!"
+ emake || die "Make failed!"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "Install failed!"
+ dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README*
+}
+
+pkg_postinst() {
+ if use ppc || use ppc64 ; then
+ ewarn "Valgrind will not work on ppc or ppc64 if glibc does not have"
+ ewarn "debug symbols (see https://bugs.gentoo.org/show_bug.cgi?id=214065)"
+ ewarn "To fix this you can add splitdebug to FEATURES in make.conf and"
+ ewarn "remerge glibc."
+ fi
+}