1 |
commit: 727a3c7b1f8094d1a66314e64077fe93dbe5dd2d |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Dec 20 07:10:04 2017 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 28 17:54:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=727a3c7b |
7 |
|
8 |
dev-util/valgrind: fix for --xml-socket option |
9 |
|
10 |
Fix for Qt Creator working. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/641790 |
13 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
14 |
|
15 |
.../files/valgrind-3.13.0-xml-socket.patch | 27 ++++++++++++++++++++++ |
16 |
...grind-9999.ebuild => valgrind-3.13.0-r2.ebuild} | 26 +++++++++++++-------- |
17 |
dev-util/valgrind/valgrind-9999.ebuild | 20 ++++++++-------- |
18 |
3 files changed, 53 insertions(+), 20 deletions(-) |
19 |
|
20 |
diff --git a/dev-util/valgrind/files/valgrind-3.13.0-xml-socket.patch b/dev-util/valgrind/files/valgrind-3.13.0-xml-socket.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..56039c48bc2 |
23 |
--- /dev/null |
24 |
+++ b/dev-util/valgrind/files/valgrind-3.13.0-xml-socket.patch |
25 |
@@ -0,0 +1,27 @@ |
26 |
+From: Ivo Raisr <ivosh@×××××.net> |
27 |
+Date: Thu, 3 Aug 2017 05:22:01 +0000 (+0000) |
28 |
+Subject: Fix handling command line option --xml-socket. |
29 |
+X-Git-Url: https://sourceware.org/git/?p=valgrind.git;a=commitdiff_plain;h=34dd8493de39314033509bb7ad62673f33dcf3db |
30 |
+ |
31 |
+Fix handling command line option --xml-socket. |
32 |
+Fixes BZ#382998 |
33 |
+Patch by: Orgad Shaneh <orgads@×××××.com> |
34 |
+ |
35 |
+ |
36 |
+ |
37 |
+git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16467 |
38 |
+--- |
39 |
+ |
40 |
+diff --git a/coregrind/m_libcprint.c b/coregrind/m_libcprint.c |
41 |
+index d66c67d..f6ba202 100644 |
42 |
+--- a/coregrind/m_libcprint.c |
43 |
++++ b/coregrind/m_libcprint.c |
44 |
+@@ -526,7 +526,7 @@ void VG_(init_log_xml_sinks)(VgLogTo log_to, VgLogTo xml_to, |
45 |
+ break; |
46 |
+ |
47 |
+ case VgLogTo_Socket: |
48 |
+- log_fd = prepare_sink_socket(VG_(clo_xml_fname_unexpanded), |
49 |
++ xml_fd = prepare_sink_socket(VG_(clo_xml_fname_unexpanded), |
50 |
+ &VG_(xml_output_sink), True); |
51 |
+ break; |
52 |
+ } |
53 |
|
54 |
diff --git a/dev-util/valgrind/valgrind-9999.ebuild b/dev-util/valgrind/valgrind-3.13.0-r2.ebuild |
55 |
similarity index 85% |
56 |
copy from dev-util/valgrind/valgrind-9999.ebuild |
57 |
copy to dev-util/valgrind/valgrind-3.13.0-r2.ebuild |
58 |
index 855bd8a16c2..f509e509703 100644 |
59 |
--- a/dev-util/valgrind/valgrind-9999.ebuild |
60 |
+++ b/dev-util/valgrind/valgrind-3.13.0-r2.ebuild |
61 |
@@ -1,7 +1,7 @@ |
62 |
-# Copyright 1999-2017 Gentoo Foundation |
63 |
+# Copyright 1999-2018 Gentoo Foundation |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
|
66 |
-EAPI="6" |
67 |
+EAPI=6 |
68 |
inherit autotools flag-o-matic toolchain-funcs multilib pax-utils |
69 |
|
70 |
DESCRIPTION="An open-source memory debugger for GNU/Linux" |
71 |
@@ -31,6 +31,12 @@ src_prepare() { |
72 |
# Respect CFLAGS, LDFLAGS |
73 |
eapply "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch |
74 |
|
75 |
+ # Fix test failures on glibc-2.26 |
76 |
+ eapply "${FILESDIR}"/${P}-test-fixes.patch |
77 |
+ |
78 |
+ # Fix --xml-socket command line option (qt-creator), bug #641790 |
79 |
+ eapply "${FILESDIR}"/${P}-xml-socket.patch |
80 |
+ |
81 |
# Allow users to test their own patches |
82 |
eapply_user |
83 |
|
84 |
@@ -39,7 +45,7 @@ src_prepare() { |
85 |
} |
86 |
|
87 |
src_configure() { |
88 |
- local myconf |
89 |
+ local myconf=() |
90 |
|
91 |
# Respect ar, bug #468114 |
92 |
tc-export AR |
93 |
@@ -61,23 +67,23 @@ src_configure() { |
94 |
replace-flags -ggdb3 -ggdb2 |
95 |
|
96 |
if use amd64 || use ppc64; then |
97 |
- ! has_multilib_profile && myconf="${myconf} --enable-only64bit" |
98 |
+ ! has_multilib_profile && myconf+=("--enable-only64bit") |
99 |
fi |
100 |
|
101 |
# Force bitness on darwin, bug #306467 |
102 |
- use x86-macos && myconf="${myconf} --enable-only32bit" |
103 |
- use x64-macos && myconf="${myconf} --enable-only64bit" |
104 |
+ use x86-macos && myconf+=("--enable-only32bit") |
105 |
+ use x64-macos && myconf+=("--enable-only64bit") |
106 |
|
107 |
# Don't use mpicc unless the user asked for it (bug #258832) |
108 |
if ! use mpi; then |
109 |
- myconf="${myconf} --without-mpicc" |
110 |
+ myconf+=("--without-mpicc") |
111 |
fi |
112 |
|
113 |
- econf ${myconf} |
114 |
+ econf "${myconf[@]}" |
115 |
} |
116 |
|
117 |
src_install() { |
118 |
- emake DESTDIR="${D}" install |
119 |
+ default |
120 |
|
121 |
if [[ ${PV} == "9999" ]]; then |
122 |
# Otherwise FAQ.txt won't exist: |
123 |
@@ -85,7 +91,7 @@ src_install() { |
124 |
mv docs/FAQ.txt . || die "Couldn't move FAQ.txt" |
125 |
fi |
126 |
|
127 |
- dodoc AUTHORS FAQ.txt NEWS README* |
128 |
+ dodoc FAQ.txt |
129 |
|
130 |
pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux |
131 |
|
132 |
|
133 |
diff --git a/dev-util/valgrind/valgrind-9999.ebuild b/dev-util/valgrind/valgrind-9999.ebuild |
134 |
index 855bd8a16c2..2b96d5f5150 100644 |
135 |
--- a/dev-util/valgrind/valgrind-9999.ebuild |
136 |
+++ b/dev-util/valgrind/valgrind-9999.ebuild |
137 |
@@ -1,7 +1,7 @@ |
138 |
-# Copyright 1999-2017 Gentoo Foundation |
139 |
+# Copyright 1999-2018 Gentoo Foundation |
140 |
# Distributed under the terms of the GNU General Public License v2 |
141 |
|
142 |
-EAPI="6" |
143 |
+EAPI=6 |
144 |
inherit autotools flag-o-matic toolchain-funcs multilib pax-utils |
145 |
|
146 |
DESCRIPTION="An open-source memory debugger for GNU/Linux" |
147 |
@@ -39,7 +39,7 @@ src_prepare() { |
148 |
} |
149 |
|
150 |
src_configure() { |
151 |
- local myconf |
152 |
+ local myconf=() |
153 |
|
154 |
# Respect ar, bug #468114 |
155 |
tc-export AR |
156 |
@@ -61,23 +61,23 @@ src_configure() { |
157 |
replace-flags -ggdb3 -ggdb2 |
158 |
|
159 |
if use amd64 || use ppc64; then |
160 |
- ! has_multilib_profile && myconf="${myconf} --enable-only64bit" |
161 |
+ ! has_multilib_profile && myconf+=("--enable-only64bit") |
162 |
fi |
163 |
|
164 |
# Force bitness on darwin, bug #306467 |
165 |
- use x86-macos && myconf="${myconf} --enable-only32bit" |
166 |
- use x64-macos && myconf="${myconf} --enable-only64bit" |
167 |
+ use x86-macos && myconf+=("--enable-only32bit") |
168 |
+ use x64-macos && myconf+=("--enable-only64bit") |
169 |
|
170 |
# Don't use mpicc unless the user asked for it (bug #258832) |
171 |
if ! use mpi; then |
172 |
- myconf="${myconf} --without-mpicc" |
173 |
+ myconf+=("--without-mpicc") |
174 |
fi |
175 |
|
176 |
- econf ${myconf} |
177 |
+ econf "${myconf[@]}" |
178 |
} |
179 |
|
180 |
src_install() { |
181 |
- emake DESTDIR="${D}" install |
182 |
+ default |
183 |
|
184 |
if [[ ${PV} == "9999" ]]; then |
185 |
# Otherwise FAQ.txt won't exist: |
186 |
@@ -85,7 +85,7 @@ src_install() { |
187 |
mv docs/FAQ.txt . || die "Couldn't move FAQ.txt" |
188 |
fi |
189 |
|
190 |
- dodoc AUTHORS FAQ.txt NEWS README* |
191 |
+ dodoc FAQ.txt |
192 |
|
193 |
pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux |