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