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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Jun 9 20:01:40 2006 UTC (8 years, 3 months ago) by griffon26
Branch: MAIN
Changes since 1.2: +4 -5 lines
Removed old valgrind ebuilds and fixed bug #131987
(Portage version: 2.1_rc4)

1 griffon26 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 griffon26 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-3.1.1.ebuild,v 1.2 2006/04/11 04:56:06 tsunam Exp $
4 griffon26 1.1
5 griffon26 1.3 inherit autotools eutils flag-o-matic
6 griffon26 1.1
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 tsunam 1.2 KEYWORDS="-* ~amd64 ~ppc x86"
14 griffon26 1.1 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     src_unpack() {
20     unpack ${A}
21     cd "${S}"
22    
23     # make sure our CFLAGS are respected
24     einfo "Changing configure.in to respect CFLAGS"
25     sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in
26    
27     # undefined references to __guard and __stack_smash_handler in VEX (bug #114347)
28     einfo "Changing Makefile.flags.am to disable SSP"
29     sed -i -e 's:^AM_CFLAGS_BASE = :AM_CFLAGS_BASE = -fno-stack-protector :' Makefile.flags.am
30    
31     # Correct hard coded doc location
32     sed -i -e "s:doc/valgrind/:doc/${P}/:" docs/Makefile.am
33    
34 griffon26 1.3 # Regenerate autotools files
35     eautoreconf
36 griffon26 1.1
37     # fix for amd64 no-multilib profile till valgrind 3.2.0 is out (bug #114407)
38     use amd64 && (has_multilib_profile || epatch "${FILESDIR}/valgrind-3.1.0-amd64-nomultilib-fix.patch")
39     }
40    
41     src_compile() {
42     local myconf
43    
44     # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
45     # while compiling insn_sse.c in none/tests/x86
46     # -fpie valgrind seemingly hangs when built with pie on
47     # amd64 (bug #102157)
48     # -fstack-protector more undefined references to __guard and __stack_smash_handler
49     # because valgrind doesn't link to glibc (bug #114347)
50     # -ggdb3 segmentation fault on startup
51     filter-flags -fomit-frame-pointer
52     filter-flags -fpie
53     filter-flags -fstack-protector
54     replace-flags -ggdb3 -ggdb2
55    
56     # Optionally build in X suppression files
57     use X && myconf="--with-x" || myconf="--with-x=no"
58    
59     econf ${myconf} || die "Configure failed!"
60     emake || die "Make failed!"
61     }
62    
63     src_install() {
64     make DESTDIR="${D}" install || die "Install failed!"
65     dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README*
66     }

  ViewVC Help
Powered by ViewVC 1.1.20