/[gentoo-x86]/dev-util/valgrind/valgrind-3.2.0.ebuild
Gentoo

Contents of /dev-util/valgrind/valgrind-3.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Dec 13 20:50:50 2007 UTC (6 years, 4 months ago) by griffon26
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Bumped version of valgrind to 3.3.0 and removed old ebuilds
(Portage version: 2.1.3.19)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-3.2.0.ebuild,v 1.6 2007/06/25 21:59:52 mr_bones_ Exp $
4
5 inherit autotools eutils flag-o-matic toolchain-funcs
6
7 DESCRIPTION="An open-source memory debugger for GNU/Linux"
8 HOMEPAGE="http://www.valgrind.org"
9 SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="-* amd64 ~ppc x86"
14 IUSE="X"
15
16 # bug #49147 (bogus stacktrace in gdb with --db-attach=yes) does not seem to be applicable anymore
17 #RESTRICT="strip"
18
19 RDEPEND="!dev-util/callgrind"
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24
25 # make sure our CFLAGS are respected
26 einfo "Changing configure.in to respect CFLAGS"
27 sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in
28
29 # undefined references to __guard and __stack_smash_handler in VEX (bug #114347)
30 einfo "Changing Makefile.flags.am to disable SSP"
31 sed -i -e 's:^AM_CFLAGS_BASE = :AM_CFLAGS_BASE = -fno-stack-protector :' Makefile.flags.am
32
33 # Correct hard coded doc location
34 sed -i -e "s:doc/valgrind:doc/${P}:" docs/Makefile.am
35
36 # Regenerate autotools files
37 eautoreconf
38 }
39
40 src_compile() {
41 local myconf
42
43 # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
44 # while compiling insn_sse.c in none/tests/x86
45 # -fpie valgrind seemingly hangs when built with pie on
46 # amd64 (bug #102157)
47 # -fstack-protector more undefined references to __guard and __stack_smash_handler
48 # because valgrind doesn't link to glibc (bug #114347)
49 # -ggdb3 segmentation fault on startup
50 filter-flags -fomit-frame-pointer
51 filter-flags -fpie
52 filter-flags -fstack-protector
53 replace-flags -ggdb3 -ggdb2
54
55 # gcc 3.3.x fails to compile valgrind with -O3 (bug #129776)
56 if [ "$(gcc-version)" == "3.3" ] && is-flagq -O3; then
57 ewarn "GCC 3.3 cannot compile valgrind with -O3 in CFLAGS, using -O2 instead."
58 replace-flags -O3 -O2
59 fi
60
61 # Optionally build in X suppression files
62 use X && myconf="--with-x" || myconf="--with-x=no"
63
64 if use amd64 && ! has_multilib_profile; then
65 myconf="${myconf} --enable-only64bit"
66 fi
67
68 econf ${myconf} || die "Configure failed!"
69 emake || die "Make failed!"
70 }
71
72 src_install() {
73 make DESTDIR="${D}" install || die "Install failed!"
74 dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README*
75 }

  ViewVC Help
Powered by ViewVC 1.1.20