diff options
author | Maurice van der Pot <griffon26@gentoo.org> | 2005-02-13 15:55:25 +0000 |
---|---|---|
committer | Maurice van der Pot <griffon26@gentoo.org> | 2005-02-13 15:55:25 +0000 |
commit | 1acc05e43f520ef3fafedce0ff5e627a107381a7 (patch) | |
tree | 2c6363a39546744c9a3b709f4a3b9dc2871d8f32 /dev-util/valgrind/valgrind-2.2.0-r2.ebuild | |
parent | Version bump. (diff) | |
download | historical-1acc05e43f520ef3fafedce0ff5e627a107381a7.tar.gz historical-1acc05e43f520ef3fafedce0ff5e627a107381a7.tar.bz2 historical-1acc05e43f520ef3fafedce0ff5e627a107381a7.zip |
Made valgrind build with hardened gcc
Package-Manager: portage-2.0.51.16
Diffstat (limited to 'dev-util/valgrind/valgrind-2.2.0-r2.ebuild')
-rw-r--r-- | dev-util/valgrind/valgrind-2.2.0-r2.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-util/valgrind/valgrind-2.2.0-r2.ebuild b/dev-util/valgrind/valgrind-2.2.0-r2.ebuild new file mode 100644 index 000000000000..59c9b03b6894 --- /dev/null +++ b/dev-util/valgrind/valgrind-2.2.0-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-2.2.0-r2.ebuild,v 1.1 2005/02/13 15:55:25 griffon26 Exp $ + +inherit flag-o-matic eutils + +DESCRIPTION="An open-source memory debugger for x86-GNU/Linux and ppc-GNU/Linux" +HOMEPAGE="http://valgrind.kde.org" +SRC_URI="x86? ( http://developer.kde.org/~sewardj/${P}.tar.bz2 ) + ppc? ( http://ozlabs.org/~paulus/${P}-ppc.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~x86 ~ppc" +IUSE="X" +RESTRICT="nostrip" + +RDEPEND="virtual/libc + X? ( virtual/x11 )" +DEPEND="${RDEPEND} + sys-devel/autoconf" + +src_unpack() { + unpack ${A} + use ppc && cd "${WORKDIR}/${P}-ppc" || cd ${S} + + #ugly but working workaround + if has_version '>=virtual/os-headers-2.6.7' ; then + einfo "Removing net/if.h from the includes in vg_unsafe.h" + sed -i -e "s:#include <net/if.h>::" \ + coregrind/vg_unsafe.h ||die + fi + + epatch "${FILESDIR}/${P}-no-exec-stack.patch" + + # make sure our CFLAGS are respected + einfo "Changing configure to respect CFLAGS" + sed -i -e 's:CFLAGS="":#CFLAGS="":' configure +} + +src_compile() { + use ppc && cd "${WORKDIR}/${P}-ppc" + + local myconf + + filter-flags -fPIC -fstack-protector -fomit-frame-pointer + + use X && myconf="--with-x" || myconf="--with-x=no" + # note: it does not appear safe to play with CFLAGS + econf ${myconf} || die + emake || die "emake failed" +} + +src_install() { + use ppc && cd "${WORKDIR}/${P}-ppc" + einstall docdir="${D}/usr/share/doc/${PF}/html" || die + dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README* TODO +} |