1 |
commit: 952e9a293c1a5c2e1a7887843c0969936e30f841 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 29 08:10:19 2020 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 29 08:27:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=952e9a29 |
7 |
|
8 |
mail-client/balsa: security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/725910 |
11 |
Package-Manager: Portage-2.3.103, Repoman-2.3.20 |
12 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
13 |
|
14 |
mail-client/balsa/Manifest | 1 - |
15 |
mail-client/balsa/balsa-2.5.6-r1.ebuild | 71 ---------- |
16 |
.../files/balsa-2.5.6-fix-older-webkit1.patch | 156 --------------------- |
17 |
.../files/balsa-2.5.6-fix-older-webkit2.patch | 53 ------- |
18 |
mail-client/balsa/metadata.xml | 1 - |
19 |
5 files changed, 282 deletions(-) |
20 |
|
21 |
diff --git a/mail-client/balsa/Manifest b/mail-client/balsa/Manifest |
22 |
index 66b4d991a68..46a34d7a4ab 100644 |
23 |
--- a/mail-client/balsa/Manifest |
24 |
+++ b/mail-client/balsa/Manifest |
25 |
@@ -1,2 +1 @@ |
26 |
-DIST balsa-2.5.6.tar.bz2 4468877 BLAKE2B 1e7f678c69121fe3472bbba8dc3d2a62680e1969934580a8a85725e84676531f1efb8432380c2d537ca584001c5cecd5c76cd033a1c1e68a292fc765bbc15f8d SHA512 a9c8094ac48b9b1a0971fe45a4658b728f93ad170ad7884c9554420a4696a7b6f5b3661bde8ab070f6a5c14a80f67551745e1d40905881429ae1d8e5874e9a68 |
27 |
DIST balsa-2.6.1.tar.bz2 4535550 BLAKE2B eee4530fe9bdd0f9453178fb7a9e64584193221754dd8fc75703ec5f98214999a9d323357b415ead2fc218461adb4d0d082389f236c6f864b54a90790c889130 SHA512 242c93e698390647b93f7e163b547b326675a0600ff5c50c2db3f3e08cd045e32cec4bb69f8a44ef3443d4cf03cb194ac7971d2a0e55f7c84b273a2b627e2433 |
28 |
|
29 |
diff --git a/mail-client/balsa/balsa-2.5.6-r1.ebuild b/mail-client/balsa/balsa-2.5.6-r1.ebuild |
30 |
deleted file mode 100644 |
31 |
index b02520128ed..00000000000 |
32 |
--- a/mail-client/balsa/balsa-2.5.6-r1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,71 +0,0 @@ |
35 |
-# Copyright 1999-2018 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=6 |
39 |
-inherit gnome2 |
40 |
- |
41 |
-DESCRIPTION="Email client for GNOME" |
42 |
-HOMEPAGE="http://pawsa.fedorapeople.org/balsa/" |
43 |
-SRC_URI="http://pawsa.fedorapeople.org/${PN}/${P}.tar.bz2" |
44 |
- |
45 |
-LICENSE="GPL-2" |
46 |
-SLOT="0" |
47 |
-KEYWORDS="~alpha amd64 ~ppc ~sparc x86" |
48 |
- |
49 |
-IUSE="crypt gnome gnome-keyring kerberos ldap libnotify libressl rubrica sqlite webkit xface" |
50 |
- |
51 |
-# TODO: internal spell checking via enchant-2 instead of gtkspell/gspell? |
52 |
-RDEPEND=" |
53 |
- >=app-text/gspell-1.2:0= |
54 |
- >=dev-libs/glib-2.40.0:2 |
55 |
- net-libs/gnutls:= |
56 |
- >=x11-libs/gtk+-3.10.0:3 |
57 |
- dev-libs/gmime:2.6 |
58 |
- net-mail/mailbase |
59 |
- media-libs/libcanberra:=[gtk3] |
60 |
- x11-themes/hicolor-icon-theme |
61 |
- x11-themes/adwaita-icon-theme |
62 |
- crypt? ( >=app-crypt/gpgme-1.5.0:= ) |
63 |
- gnome? ( >=x11-libs/gtksourceview-3.2.0:3.0 ) |
64 |
- gnome-keyring? ( app-crypt/libsecret ) |
65 |
- sqlite? ( >=dev-db/sqlite-2.8:= ) |
66 |
- libnotify? ( >=x11-libs/libnotify-0.7:= ) |
67 |
- !libressl? ( dev-libs/openssl:0= ) |
68 |
- libressl? ( dev-libs/libressl:0= ) |
69 |
- kerberos? ( app-crypt/mit-krb5 ) |
70 |
- ldap? ( net-nds/openldap ) |
71 |
- rubrica? ( dev-libs/libxml2:2 ) |
72 |
- webkit? ( |
73 |
- net-libs/webkit-gtk:4 |
74 |
- app-text/html2text |
75 |
- ) |
76 |
- xface? ( >=media-libs/compface-1.5.1:= ) |
77 |
-" |
78 |
-DEPEND="${RDEPEND} |
79 |
- dev-util/gtk-update-icon-cache |
80 |
- app-text/yelp-tools |
81 |
- dev-util/intltool |
82 |
- virtual/pkgconfig |
83 |
- sys-devel/gettext |
84 |
- dev-libs/libxml2:2 |
85 |
-" |
86 |
- |
87 |
-PATCHES=( "$FILESDIR"/${P}-fix-older-webkit{1,2}.patch ) |
88 |
-DOCS="AUTHORS ChangeLog HACKING NEWS README TODO docs/*" |
89 |
- |
90 |
-src_configure() { |
91 |
- gnome2_src_configure \ |
92 |
- --with-canberra \ |
93 |
- --with-spell-checker=gspell \ |
94 |
- $(usex crypt --with-gpgme=gpgme-config --without-gpgme) \ |
95 |
- $(use_with gnome) \ |
96 |
- $(use_with gnome gtksourceview) \ |
97 |
- $(use_with gnome-keyring libsecret) \ |
98 |
- $(use_with kerberos gss) \ |
99 |
- $(use_with ldap) \ |
100 |
- $(use_with libnotify) \ |
101 |
- $(use_with rubrica) \ |
102 |
- $(use_with sqlite) \ |
103 |
- $(use_with xface compface) \ |
104 |
- $(usex webkit --with-html-widget=webkit2 --with-html-widget=no) |
105 |
-} |
106 |
|
107 |
diff --git a/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit1.patch b/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit1.patch |
108 |
deleted file mode 100644 |
109 |
index 227e2ac04b4..00000000000 |
110 |
--- a/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit1.patch |
111 |
+++ /dev/null |
112 |
@@ -1,156 +0,0 @@ |
113 |
-From ea37ea940dfbcc4e6bcf8327194857a7b306a278 Mon Sep 17 00:00:00 2001 |
114 |
-From: Peter Bloomfield |
115 |
-Date: Sat, 7 Jul 2018 14:44:26 -0400 |
116 |
-Subject: [PATCH] Use g_debug() instead of conditional compilation |
117 |
- |
118 |
-* libbalsa/html.c (lbh_navigation_policy_decision), |
119 |
- (lbh_new_window_policy_decision), (lbh_response_policy_decision), |
120 |
- (lbh_resource_notify_response_cb), (lbh_web_process_crashed_cb), |
121 |
- (lbh_cid_cb), (libbalsa_html_new): Use g_debug() instead of |
122 |
- conditionally compiled printing. |
123 |
---- |
124 |
- libbalsa/html.c | 52 ++++++++++++++++++++++++------------------------- |
125 |
- 2 files changed, 25 insertions(+), 27 deletions(-) |
126 |
- |
127 |
-diff --git a/libbalsa/html.c b/libbalsa/html.c |
128 |
-index 17f62789e..1e5e2f500 100644 |
129 |
---- a/libbalsa/html.c |
130 |
-+++ b/libbalsa/html.c |
131 |
-@@ -44,6 +44,11 @@ |
132 |
- #include <string.h> |
133 |
- #include <glib/gi18n.h> |
134 |
- |
135 |
-+#ifdef G_LOG_DOMAIN |
136 |
-+# undef G_LOG_DOMAIN |
137 |
-+#endif |
138 |
-+#define G_LOG_DOMAIN "html" |
139 |
-+ |
140 |
- #ifdef HAVE_HTML_WIDGET |
141 |
- |
142 |
- /* |
143 |
-@@ -141,13 +146,6 @@ html2text(gchar ** text, gsize len) |
144 |
- * Experimental support for WebKit2. |
145 |
- */ |
146 |
- |
147 |
--#define DEBUG_WEBKIT2 FALSE |
148 |
--#if DEBUG_WEBKIT2 |
149 |
--#define d(x) x |
150 |
--#else |
151 |
--#define d(x) |
152 |
--#endif |
153 |
-- |
154 |
- /* WebKitContextMenuItem uses GtkAction, which is deprecated. |
155 |
- * We don't use it, but it breaks the git-tree build, so we just mangle |
156 |
- * it: */ |
157 |
-@@ -280,10 +278,10 @@ lbh_navigation_policy_decision(WebKitPolicyDecision * decision, |
158 |
- |
159 |
- switch (navigation_type) { |
160 |
- case WEBKIT_NAVIGATION_TYPE_LINK_CLICKED: |
161 |
-- d(g_print("%s clicked %s\n", __func__, uri)); |
162 |
-+ g_debug("%s clicked %s", __func__, uri); |
163 |
- (*info->clicked_cb) (uri); |
164 |
- default: |
165 |
-- d(g_print("%s uri %s, type %d, ignored\n", __func__, uri, navigation_type)); |
166 |
-+ g_debug("%s uri %s, type %d, ignored", __func__, uri, navigation_type); |
167 |
- webkit_policy_decision_ignore(decision); |
168 |
- } |
169 |
- } |
170 |
-@@ -305,13 +303,13 @@ lbh_new_window_policy_decision(WebKitPolicyDecision * decision, |
171 |
- (navigation_action)) { |
172 |
- case WEBKIT_NAVIGATION_TYPE_LINK_CLICKED: |
173 |
- request = webkit_navigation_action_get_request(navigation_action); |
174 |
-- d(g_print("%s clicked %s\n", __func__, |
175 |
-- webkit_uri_request_get_uri(request))); |
176 |
-+ g_debug("%s clicked %s", __func__, |
177 |
-+ webkit_uri_request_get_uri(request)); |
178 |
- (*info->clicked_cb) (webkit_uri_request_get_uri(request)); |
179 |
- default: |
180 |
-- d(g_print("%s type %d, ignored\n", __func__, |
181 |
-- webkit_navigation_action_get_navigation_type |
182 |
-- (navigation_action))); |
183 |
-+ g_debug("%s type %d, ignored", __func__, |
184 |
-+ webkit_navigation_action_get_navigation_type |
185 |
-+ (navigation_action)); |
186 |
- |
187 |
- webkit_policy_decision_ignore(decision); |
188 |
- } |
189 |
-@@ -321,10 +319,10 @@ static void |
190 |
- lbh_response_policy_decision(WebKitPolicyDecision * decision, |
191 |
- gpointer data) |
192 |
- { |
193 |
-- d(g_print("%s uri %s, ignored\n", __func__, |
194 |
-- webkit_uri_request_get_uri |
195 |
-- (webkit_response_policy_decision_get_request |
196 |
-- (WEBKIT_RESPONSE_POLICY_DECISION(decision))))); |
197 |
-+ g_debug("%s uri %s, ignored", __func__, |
198 |
-+ webkit_uri_request_get_uri |
199 |
-+ (webkit_response_policy_decision_get_request |
200 |
-+ (WEBKIT_RESPONSE_POLICY_DECISION(decision)))); |
201 |
- webkit_policy_decision_ignore(decision); |
202 |
- } |
203 |
- |
204 |
-@@ -453,20 +451,20 @@ lbh_resource_notify_response_cb(WebKitWebResource * resource, |
205 |
- |
206 |
- response = webkit_web_resource_get_response(resource); |
207 |
- mime_type = webkit_uri_response_get_mime_type(response); |
208 |
-- d(g_print("%s mime-type %s\n", __func__, mime_type)); |
209 |
-+ g_debug("%s mime-type %s", __func__, mime_type); |
210 |
- if (g_ascii_strncasecmp(mime_type, "image/", 6) != 0) |
211 |
- return; |
212 |
- |
213 |
- if (info->info_bar) { |
214 |
-- d(g_print("%s %s destroy info_bar\n", __func__, |
215 |
-- webkit_web_resource_get_uri(resource))); |
216 |
-+ g_debug("%s %s destroy info_bar", __func__, |
217 |
-+ webkit_web_resource_get_uri(resource)); |
218 |
- /* web_view is loading an image from its cache, so we do not |
219 |
- * need to ask the user for permission to download */ |
220 |
- gtk_widget_destroy(info->info_bar); |
221 |
- info->info_bar = NULL; |
222 |
- } else { |
223 |
-- d(g_print("%s %s null info_bar\n", __func__, |
224 |
-- webkit_web_resource_get_uri(resource))); |
225 |
-+ g_debug("%s %s null info_bar", __func__, |
226 |
-+ webkit_web_resource_get_uri(resource)); |
227 |
- } |
228 |
- } |
229 |
- |
230 |
-@@ -493,7 +491,7 @@ static gboolean |
231 |
- lbh_web_process_crashed_cb(WebKitWebView * web_view, |
232 |
- gpointer data) |
233 |
- { |
234 |
-- d(g_print("%s\n", __func__)); |
235 |
-+ g_debug("%s", __func__); |
236 |
- return FALSE; |
237 |
- } |
238 |
- |
239 |
-@@ -509,7 +507,7 @@ lbh_cid_cb(WebKitURISchemeRequest * request, |
240 |
- LibBalsaMessageBody *body; |
241 |
- |
242 |
- path = webkit_uri_scheme_request_get_path(request); |
243 |
-- d(g_print("%s path %s\n", __func__, path)); |
244 |
-+ g_debug("%s path %s", __func__, path); |
245 |
- |
246 |
- if ((body = |
247 |
- libbalsa_message_get_part_by_id(info->body->message, path))) { |
248 |
-@@ -616,7 +614,7 @@ libbalsa_html_new(LibBalsaMessageBody * body, |
249 |
- webkit_web_context_register_uri_scheme(context, "cid", lbh_cid_cb, |
250 |
- &info, NULL); |
251 |
- have_registered_cid = TRUE; |
252 |
-- d(g_print("%s registered cid: scheme\n", __func__)); |
253 |
-+ g_debug("%s registered cid: scheme", __func__); |
254 |
- } |
255 |
- |
256 |
- settings = webkit_web_view_get_settings(web_view); |
257 |
-@@ -647,7 +645,7 @@ libbalsa_html_new(LibBalsaMessageBody * body, |
258 |
- if (g_regex_match_simple(src_regex, text, G_REGEX_CASELESS, 0)) { |
259 |
- info->info_bar = lbh_info_bar(info); |
260 |
- gtk_box_pack_start(GTK_BOX(vbox), info->info_bar, FALSE, FALSE, 0); |
261 |
-- d(g_print("%s shows info_bar\n", __func__)); |
262 |
-+ g_debug("%s shows info_bar", __func__); |
263 |
- } |
264 |
- |
265 |
- webkit_web_view_load_html(web_view, text, NULL); |
266 |
--- |
267 |
-2.17.1 |
268 |
- |
269 |
|
270 |
diff --git a/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit2.patch b/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit2.patch |
271 |
deleted file mode 100644 |
272 |
index d7b5eb74ba1..00000000000 |
273 |
--- a/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit2.patch |
274 |
+++ /dev/null |
275 |
@@ -1,53 +0,0 @@ |
276 |
-From 3423ca9bf48e675007b7fb1bd61b50aa97d14890 Mon Sep 17 00:00:00 2001 |
277 |
-From: =?UTF-8?q?Albrecht=20Dre=C3=9F?= |
278 |
-Date: Sat, 7 Jul 2018 16:36:49 -0400 |
279 |
-Subject: [PATCH] html: Fix HTML rendering with webkit2gtk-4.0 < 2.20 |
280 |
-MIME-Version: 1.0 |
281 |
-Content-Type: text/plain; charset=UTF-8 |
282 |
-Content-Transfer-Encoding: 8bit |
283 |
- |
284 |
-* README: document use of G_MESSAGES_DEBUG=… |
285 |
-* libbalsa/html.c (lbh_navigation_policy_decision): |
286 |
- allow the rendering of “about:blank”. |
287 |
---- |
288 |
- libbalsa/html.c | 12 ++++++++---- |
289 |
- 1 file changed, 8 insertions(+), 4 deletions(-) |
290 |
- |
291 |
-leio: trimmed out the G_MESSAGES_DEBUG doc changes |
292 |
-diff --git a/libbalsa/html.c b/libbalsa/html.c |
293 |
-index 1e5e2f500..307194e0a 100644 |
294 |
---- a/libbalsa/html.c |
295 |
-+++ b/libbalsa/html.c |
296 |
-@@ -44,13 +44,13 @@ |
297 |
- #include <string.h> |
298 |
- #include <glib/gi18n.h> |
299 |
- |
300 |
-+#ifdef HAVE_HTML_WIDGET |
301 |
-+ |
302 |
- #ifdef G_LOG_DOMAIN |
303 |
- # undef G_LOG_DOMAIN |
304 |
- #endif |
305 |
- #define G_LOG_DOMAIN "html" |
306 |
- |
307 |
--#ifdef HAVE_HTML_WIDGET |
308 |
-- |
309 |
- /* |
310 |
- * Used by all HTML widgets |
311 |
- * |
312 |
-@@ -281,8 +281,12 @@ lbh_navigation_policy_decision(WebKitPolicyDecision * decision, |
313 |
- g_debug("%s clicked %s", __func__, uri); |
314 |
- (*info->clicked_cb) (uri); |
315 |
- default: |
316 |
-- g_debug("%s uri %s, type %d, ignored", __func__, uri, navigation_type); |
317 |
-- webkit_policy_decision_ignore(decision); |
318 |
-+ if (g_ascii_strcasecmp(uri, "about:blank") != 0) { |
319 |
-+ g_debug("%s uri %s, type %d, ignored", __func__, uri, navigation_type); |
320 |
-+ webkit_policy_decision_ignore(decision); |
321 |
-+ } else { |
322 |
-+ g_debug("%s uri %s, type %d loaded", __func__, uri, navigation_type); |
323 |
-+ } |
324 |
- } |
325 |
- } |
326 |
- |
327 |
--- |
328 |
-2.17.1 |
329 |
|
330 |
diff --git a/mail-client/balsa/metadata.xml b/mail-client/balsa/metadata.xml |
331 |
index 3f5668996d9..41e5bdd6637 100644 |
332 |
--- a/mail-client/balsa/metadata.xml |
333 |
+++ b/mail-client/balsa/metadata.xml |
334 |
@@ -6,7 +6,6 @@ |
335 |
<name>Gentoo GNOME Desktop</name> |
336 |
</maintainer> |
337 |
<use> |
338 |
- <flag name="crypt">Adds support for GnuPG encryption</flag> |
339 |
<flag name="rubrica">Adds support for rubrica addressbook</flag> |
340 |
</use> |
341 |
</pkgmetadata> |