Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/valgrind: valgrind-3.7.0-r4.ebuild ChangeLog
Date: Tue, 01 May 2012 13:03:39
Message-Id: 20120501130329.2C6C02004B@flycatcher.gentoo.org
1 blueness 12/05/01 13:03:29
2
3 Modified: ChangeLog
4 Added: valgrind-3.7.0-r4.ebuild
5 Log:
6 Add OSX support, bug #359993
7
8 (Portage version: 2.1.10.49/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.143 dev-util/valgrind/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/ChangeLog?rev=1.143&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/ChangeLog?rev=1.143&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/ChangeLog?r1=1.142&r2=1.143
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/valgrind/ChangeLog,v
20 retrieving revision 1.142
21 retrieving revision 1.143
22 diff -u -r1.142 -r1.143
23 --- ChangeLog 28 Apr 2012 16:50:42 -0000 1.142
24 +++ ChangeLog 1 May 2012 13:03:29 -0000 1.143
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-util/valgrind
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/ChangeLog,v 1.142 2012/04/28 16:50:42 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/ChangeLog,v 1.143 2012/05/01 13:03:29 blueness Exp $
30 +
31 +*valgrind-3.7.0-r4 (01 May 2012)
32 +
33 + 01 May 2012; Anthony G. Basile <blueness@g.o>
34 + +valgrind-3.7.0-r4.ebuild, +files/valgrind-3.7.0-non-exec-darwin.patch:
35 + Add OSX support, bug #359993
36
37 28 Apr 2012; Anthony G. Basile <blueness@g.o> valgrind-3.4.0.ebuild,
38 valgrind-3.4.1.ebuild, valgrind-3.4.1-r1.ebuild, valgrind-3.5.0.ebuild,
39
40
41
42 1.1 dev-util/valgrind/valgrind-3.7.0-r4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/valgrind-3.7.0-r4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/valgrind-3.7.0-r4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: valgrind-3.7.0-r4.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-3.7.0-r4.ebuild,v 1.1 2012/05/01 13:03:29 blueness Exp $
52
53 EAPI="4"
54 inherit autotools eutils flag-o-matic toolchain-funcs multilib pax-utils
55
56 DESCRIPTION="An open-source memory debugger for GNU/Linux"
57 HOMEPAGE="http://www.valgrind.org"
58 SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="-* ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x64-macos"
63 IUSE="mpi"
64
65 DEPEND="mpi? ( virtual/mpi )"
66 RDEPEND="${DEPEND}"
67
68 src_prepare() {
69 # Correct hard coded doc location
70 sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die
71
72 # Don't force multiarch stuff on OSX, bug #306467
73 sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die
74
75 # Respect CFLAGS, LDFLAGS
76 epatch "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch
77
78 # Changing Makefile.all.am to disable SSP
79 epatch "${FILESDIR}"/${PN}-3.7.0-fno-stack-protector.patch
80
81 # Yet more local labels, this time for ppc32 & ppc64
82 epatch "${FILESDIR}"/${PN}-3.6.0-local-labels.patch
83
84 # Don't build in empty assembly files for other platforms or we'll get a QA
85 # warning about executable stacks.
86 epatch "${FILESDIR}"/${PN}-3.7.0-non-exec-stack.patch
87
88 # Fix the regex to get gcc's version
89 epatch "${FILESDIR}"/${PN}-3.7.0-fix-gcc-regex.patch
90
91 # Fix stricter use of dir variables, bug #397429
92 epatch "${FILESDIR}"/${PN}-3.7.0-automake-1.11.2.patch
93
94 # Fix for glibc 2.15, bug #398921
95 epatch "${FILESDIR}"/${PN}-3.7.0-glibc-2.15.patch
96
97 # Regenerate autotools files
98 eautoreconf
99 }
100
101 src_configure() {
102 local myconf
103
104 # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
105 # while compiling insn_sse.c in none/tests/x86
106 # -fpie valgrind seemingly hangs when built with pie on
107 # amd64 (bug #102157)
108 # -fstack-protector more undefined references to __guard and __stack_smash_handler
109 # because valgrind doesn't link to glibc (bug #114347)
110 # -m64 -mx32 for multilib-portage, bug #398825
111 # -ggdb3 segmentation fault on startup
112 filter-flags -fomit-frame-pointer
113 filter-flags -fpie
114 filter-flags -fstack-protector
115 filter-flags -m64 -mx32
116 replace-flags -ggdb3 -ggdb2
117
118 if use amd64 || use ppc64; then
119 ! has_multilib_profile && myconf="${myconf} --enable-only64bit"
120 fi
121
122 # Force bitness on darwin, bug #306467
123 use x86-macos && myconf="${myconf} --enable-only32bit"
124 use x64-macos && myconf="${myconf} --enable-only64bit"
125
126 # Don't use mpicc unless the user asked for it (bug #258832)
127 if ! use mpi; then
128 myconf="${myconf} --without-mpicc"
129 fi
130
131 econf ${myconf}
132 }
133
134 src_install() {
135 emake DESTDIR="${ED}" install
136 dodoc AUTHORS FAQ.txt NEWS README*
137
138 pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux
139
140 if [[ ${CHOST} == *-darwin* ]] ; then
141 # fix install_names on shared libraries, can't turn them into bundles,
142 # as dyld won't load them any more then, bug #306467
143 local l
144 for l in "${ED}"/usr/lib/valgrind/*.so ; do
145 install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}"
146 done
147 fi
148 }
149
150 pkg_postinst() {
151 ewarn "Valgrind will not work if glibc does not have debug symbols."
152 ewarn "To fix this you can add splitdebug to FEATURES in make.conf"
153 ewarn "and remerge glibc. See:"
154 ewarn "https://bugs.gentoo.org/show_bug.cgi?id=214065"
155 ewarn "https://bugs.gentoo.org/show_bug.cgi?id=274771"
156 ewarn "https://bugs.gentoo.org/show_bug.cgi?id=388703"
157 }