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.9.0.ebuild ChangeLog
Date: Sat, 02 Nov 2013 23:59:24
Message-Id: 20131102235917.CCDD020035@flycatcher.gentoo.org
1 blueness 13/11/02 23:59:17
2
3 Modified: ChangeLog
4 Added: valgrind-3.9.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.172 dev-util/valgrind/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/ChangeLog?rev=1.172&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/ChangeLog?rev=1.172&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/ChangeLog?r1=1.171&r2=1.172
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/valgrind/ChangeLog,v
20 retrieving revision 1.171
21 retrieving revision 1.172
22 diff -u -r1.171 -r1.172
23 --- ChangeLog 18 Jun 2013 21:16:33 -0000 1.171
24 +++ ChangeLog 2 Nov 2013 23:59:17 -0000 1.172
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-util/valgrind
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/ChangeLog,v 1.171 2013/06/18 21:16:33 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/ChangeLog,v 1.172 2013/11/02 23:59:17 blueness Exp $
30 +
31 +*valgrind-3.9.0 (02 Nov 2013)
32 +
33 + 02 Nov 2013; Anthony G. Basile <blueness@g.o>
34 + +files/valgrind-3.9.0-non-exec-stack.patch, +valgrind-3.9.0.ebuild:
35 + Version bump
36
37 18 Jun 2013; Anthony G. Basile <blueness@g.o>
38 -files/valgrind-3.4.1-glibc-2.10.1.patch,
39
40
41
42 1.1 dev-util/valgrind/valgrind-3.9.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/valgrind-3.9.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/valgrind/valgrind-3.9.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: valgrind-3.9.0.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.9.0.ebuild,v 1.1 2013/11/02 23:59:17 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 ~x64-macos ~x86-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.9.0-non-exec-stack.patch
87
88 # Regenerate autotools files
89 eautoreconf
90 }
91
92 src_configure() {
93 local myconf
94
95 # Respect ar, bug #468114
96 tc-export AR
97
98 # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
99 # while compiling insn_sse.c in none/tests/x86
100 # -fpie valgrind seemingly hangs when built with pie on
101 # amd64 (bug #102157)
102 # -fstack-protector more undefined references to __guard and __stack_smash_handler
103 # because valgrind doesn't link to glibc (bug #114347)
104 # -m64 -mx32 for multilib-portage, bug #398825
105 # -ggdb3 segmentation fault on startup
106 filter-flags -fomit-frame-pointer
107 filter-flags -fpie
108 filter-flags -fstack-protector
109 filter-flags -m64 -mx32
110 replace-flags -ggdb3 -ggdb2
111
112 if use amd64 || use ppc64; then
113 ! has_multilib_profile && myconf="${myconf} --enable-only64bit"
114 fi
115
116 # Force bitness on darwin, bug #306467
117 use x86-macos && myconf="${myconf} --enable-only32bit"
118 use x64-macos && myconf="${myconf} --enable-only64bit"
119
120 # Don't use mpicc unless the user asked for it (bug #258832)
121 if ! use mpi; then
122 myconf="${myconf} --without-mpicc"
123 fi
124
125 econf ${myconf}
126 }
127
128 src_install() {
129 emake DESTDIR="${D}" install
130 dodoc AUTHORS FAQ.txt NEWS README*
131
132 pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux
133
134 if [[ ${CHOST} == *-darwin* ]] ; then
135 # fix install_names on shared libraries, can't turn them into bundles,
136 # as dyld won't load them any more then, bug #306467
137 local l
138 for l in "${ED}"/usr/lib/valgrind/*.so ; do
139 install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}"
140 done
141 fi
142 }
143
144 pkg_postinst() {
145 elog "Valgrind will not work if glibc does not have debug symbols."
146 elog "To fix this you can add splitdebug to FEATURES in make.conf"
147 elog "and remerge glibc. See:"
148 elog "https://bugs.gentoo.org/show_bug.cgi?id=214065"
149 elog "https://bugs.gentoo.org/show_bug.cgi?id=274771"
150 elog "https://bugs.gentoo.org/show_bug.cgi?id=388703"
151 }