1 |
commit: 4be377ae578ef0a9ed35b8293832b2fcf9ccbc53 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 17 04:06:38 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 17 04:07:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be377ae |
7 |
|
8 |
dev-util/valgrind: version bump to 3.14.0 |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
12 |
|
13 |
dev-util/valgrind/Manifest | 1 + |
14 |
dev-util/valgrind/valgrind-3.14.0.ebuild | 118 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 119 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/valgrind/Manifest b/dev-util/valgrind/Manifest |
18 |
index 10726c96eb2..c3d65f616f2 100644 |
19 |
--- a/dev-util/valgrind/Manifest |
20 |
+++ b/dev-util/valgrind/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST valgrind-3.12.0.tar.bz2 12788556 BLAKE2B aeebf9c29afb3cce683c6448a3dec8f4edb1e44b2043a8e159c57a28c75fee49c5dba144d7ae2d79d23fe5a6c5b2bbf01fc398909bf12eebc027f8a7d4d83009 SHA512 2c083f7c2e74dc58600397726d9d3af7a2cea40fe3d8733149886d1d77867e6c09996e5be1c58dd932f3662acf7363e04eeadbc0f9c8f0dac089e605024229be |
23 |
DIST valgrind-3.13.0.tar.bz2 14723076 BLAKE2B cdf92087575cc851d316e2136081441f528596048bc5d1e9c17539283085dd9accd0c1b3136f9768a62de27d1f1641b450305681a33d9ba9fdfe028a73c0cb99 SHA512 34e1013cd3815d30a459b86220e871bb0a6209cc9e87af968f347083693779f022e986f211bdf1a5184ad7370cde12ff2cfca8099967ff94732970bd04a97009 |
24 |
+DIST valgrind-3.14.0.tar.bz2 16602858 BLAKE2B 00d601593388180cc874cf2f0c78e79f705f145e45ea82996117cb91ba881e7888ef241fb7e45927f82f99666d76ed35cb5d451e9a3ef123c04a0dff233b2269 SHA512 68e548c42df31dc2b883a403e0faff7480c49b3054841870f5d2f742141ba199eca5d83c96bbf283115f0633f2bdb0860161d422f98e3ec720ec65760d250f97 |
25 |
|
26 |
diff --git a/dev-util/valgrind/valgrind-3.14.0.ebuild b/dev-util/valgrind/valgrind-3.14.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..e111e5fd3e2 |
29 |
--- /dev/null |
30 |
+++ b/dev-util/valgrind/valgrind-3.14.0.ebuild |
31 |
@@ -0,0 +1,118 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+inherit autotools flag-o-matic toolchain-funcs multilib pax-utils |
37 |
+ |
38 |
+DESCRIPTION="An open-source memory debugger for GNU/Linux" |
39 |
+HOMEPAGE="http://www.valgrind.org" |
40 |
+LICENSE="GPL-2" |
41 |
+SLOT="0" |
42 |
+IUSE="mpi" |
43 |
+ |
44 |
+if [[ ${PV} == "9999" ]]; then |
45 |
+ EGIT_REPO_URI="git://sourceware.org/git/${PN}.git/" |
46 |
+ inherit git-r3 |
47 |
+else |
48 |
+ SRC_URI="ftp://sourceware.org/pub/valgrind/${P}.tar.bz2" |
49 |
+ KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris" |
50 |
+fi |
51 |
+ |
52 |
+DEPEND="mpi? ( virtual/mpi )" |
53 |
+RDEPEND="${DEPEND}" |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ # Correct hard coded doc location |
57 |
+ sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die |
58 |
+ |
59 |
+ # Don't force multiarch stuff on OSX, bug #306467 |
60 |
+ sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die |
61 |
+ |
62 |
+ # Respect CFLAGS, LDFLAGS |
63 |
+ eapply "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch |
64 |
+ |
65 |
+ if [[ ${CHOST} == *-solaris* ]] ; then |
66 |
+ # upstream doesn't support this, but we don't build with |
67 |
+ # Sun/Oracle ld, we have a GNU toolchain, so get some things |
68 |
+ # working the Linux/GNU way |
69 |
+ find "${S}" -name "Makefile.am" -o -name "Makefile.tool.am" | xargs \ |
70 |
+ sed -i -e 's:-M,/usr/lib/ld/map.noexstk:-z,noexecstack:' || die |
71 |
+ cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in |
72 |
+ fi |
73 |
+ |
74 |
+ # Allow users to test their own patches |
75 |
+ eapply_user |
76 |
+ |
77 |
+ # Regenerate autotools files |
78 |
+ eautoreconf |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ local myconf=() |
83 |
+ |
84 |
+ # Respect ar, bug #468114 |
85 |
+ tc-export AR |
86 |
+ |
87 |
+ # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression" |
88 |
+ # while compiling insn_sse.c in none/tests/x86 |
89 |
+ # -fstack-protector more undefined references to __guard and __stack_smash_handler |
90 |
+ # because valgrind doesn't link to glibc (bug #114347) |
91 |
+ # -fstack-protector-all Fails same way as -fstack-protector/-fstack-protector-strong. |
92 |
+ # Note: -fstack-protector-explicit is a no-op for Valgrind, no need to strip it |
93 |
+ # -fstack-protector-strong See -fstack-protector (bug #620402) |
94 |
+ # -m64 -mx32 for multilib-portage, bug #398825 |
95 |
+ # -ggdb3 segmentation fault on startup |
96 |
+ filter-flags -fomit-frame-pointer |
97 |
+ filter-flags -fstack-protector |
98 |
+ filter-flags -fstack-protector-all |
99 |
+ filter-flags -fstack-protector-strong |
100 |
+ filter-flags -m64 -mx32 |
101 |
+ replace-flags -ggdb3 -ggdb2 |
102 |
+ |
103 |
+ if use amd64 || use ppc64; then |
104 |
+ ! has_multilib_profile && myconf+=("--enable-only64bit") |
105 |
+ fi |
106 |
+ |
107 |
+ # Force bitness on darwin, bug #306467 |
108 |
+ use x86-macos && myconf+=("--enable-only32bit") |
109 |
+ use x64-macos && myconf+=("--enable-only64bit") |
110 |
+ |
111 |
+ # Don't use mpicc unless the user asked for it (bug #258832) |
112 |
+ if ! use mpi; then |
113 |
+ myconf+=("--without-mpicc") |
114 |
+ fi |
115 |
+ |
116 |
+ econf "${myconf[@]}" |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ default |
121 |
+ |
122 |
+ if [[ ${PV} == "9999" ]]; then |
123 |
+ # Otherwise FAQ.txt won't exist: |
124 |
+ emake -C docs FAQ.txt |
125 |
+ mv docs/FAQ.txt . || die "Couldn't move FAQ.txt" |
126 |
+ fi |
127 |
+ |
128 |
+ dodoc FAQ.txt |
129 |
+ |
130 |
+ pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux |
131 |
+ |
132 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
133 |
+ # fix install_names on shared libraries, can't turn them into bundles, |
134 |
+ # as dyld won't load them any more then, bug #306467 |
135 |
+ local l |
136 |
+ for l in "${ED}"/usr/lib/valgrind/*.so ; do |
137 |
+ install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}" |
138 |
+ done |
139 |
+ fi |
140 |
+} |
141 |
+ |
142 |
+pkg_postinst() { |
143 |
+ elog "Valgrind will not work if glibc does not have debug symbols." |
144 |
+ elog "To fix this you can add splitdebug to FEATURES in make.conf" |
145 |
+ elog "and remerge glibc. See:" |
146 |
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=214065" |
147 |
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=274771" |
148 |
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=388703" |
149 |
+} |