1 |
commit: dd942bac9ee9fa0739c109ca2e929691aeb63ee7 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Sep 1 22:58:06 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Sep 1 22:58:06 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=dd942bac |
7 |
|
8 |
gnome-extra/evolution-data-server: 3.1.90 → 3.1.90-r1 |
9 |
|
10 |
Add important upstream patches fixing introspection problems, preventing |
11 |
passwords from being exposed in logs, and adapting to API changes in |
12 |
glib-2.29.19. |
13 |
|
14 |
--- |
15 |
...uild => evolution-data-server-3.1.90-r1.ebuild} | 6 ++ |
16 |
...volution-data-server-3.1.90-g_unix_signal.patch | 45 +++++++++++++++ |
17 |
....1.90-introspection-e_source_set_property.patch | 21 +++++++ |
18 |
...ion-data-server-3.1.90-introspection-ecal.patch | 22 +++++++ |
19 |
...ution-data-server-3.1.90-password-in-logs.patch | 60 ++++++++++++++++++++ |
20 |
5 files changed, 154 insertions(+), 0 deletions(-) |
21 |
|
22 |
diff --git a/gnome-extra/evolution-data-server/evolution-data-server-3.1.90.ebuild b/gnome-extra/evolution-data-server/evolution-data-server-3.1.90-r1.ebuild |
23 |
similarity index 94% |
24 |
rename from gnome-extra/evolution-data-server/evolution-data-server-3.1.90.ebuild |
25 |
rename to gnome-extra/evolution-data-server/evolution-data-server-3.1.90-r1.ebuild |
26 |
index 96f7bc4..a835b18 100644 |
27 |
--- a/gnome-extra/evolution-data-server/evolution-data-server-3.1.90.ebuild |
28 |
+++ b/gnome-extra/evolution-data-server/evolution-data-server-3.1.90-r1.ebuild |
29 |
@@ -94,6 +94,12 @@ pkg_setup() { |
30 |
src_prepare() { |
31 |
gnome2_src_prepare |
32 |
|
33 |
+ # Important upstream patches, will be in next release |
34 |
+ epatch "${FILESDIR}/${P}-password-in-logs.patch" |
35 |
+ epatch "${FILESDIR}/${P}-introspection-ecal.patch" |
36 |
+ epatch "${FILESDIR}/${P}-introspection-e_source_set_property.patch" |
37 |
+ epatch "${FILESDIR}/${P}-g_unix_signal.patch" |
38 |
+ |
39 |
# GNOME bug 611353 (skips failing test atm) |
40 |
# XXX: uncomment when there's a proper fix |
41 |
#epatch "${FILESDIR}/e-d-s-camel-skip-failing-test.patch" |
42 |
|
43 |
diff --git a/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-g_unix_signal.patch b/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-g_unix_signal.patch |
44 |
new file mode 100644 |
45 |
index 0000000..6ddd54e |
46 |
--- /dev/null |
47 |
+++ b/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-g_unix_signal.patch |
48 |
@@ -0,0 +1,45 @@ |
49 |
+From e318b8164aa52b804057c35ccfea49bfb06ed77c Mon Sep 17 00:00:00 2001 |
50 |
+From: Denis Washington <denisw@××××××.de> |
51 |
+Date: Wed, 31 Aug 2011 16:27:08 +0000 |
52 |
+Subject: Bug 657836 - Work around g_unix_signal API changes. |
53 |
+ |
54 |
+Work around GLib API churn with regard to registering UNIX signal |
55 |
+callbacks on the main loop. GLib >= 2.29.5 calls the function one |
56 |
+thing, GLib >= 2.29.19 calls it another. |
57 |
+--- |
58 |
+diff --git a/addressbook/libedata-book/e-data-book-factory.c b/addressbook/libedata-book/e-data-book-factory.c |
59 |
+index d0a4546..f53ddf8 100644 |
60 |
+--- a/addressbook/libedata-book/e-data-book-factory.c |
61 |
++++ b/addressbook/libedata-book/e-data-book-factory.c |
62 |
+@@ -844,7 +844,11 @@ main (gint argc, gchar **argv) |
63 |
+ e_data_book_migrate_basedir (); |
64 |
+ |
65 |
+ #ifdef G_OS_UNIX |
66 |
+-#if GLIB_CHECK_VERSION(2,29,5) |
67 |
++#if GLIB_CHECK_VERSION(2,29,19) |
68 |
++ g_unix_signal_add_full ( |
69 |
++ G_PRIORITY_DEFAULT, SIGTERM, |
70 |
++ handle_term_signal, NULL, NULL); |
71 |
++#elif GLIB_CHECK_VERSION(2,29,5) |
72 |
+ g_unix_signal_add_watch_full ( |
73 |
+ SIGTERM, G_PRIORITY_DEFAULT, |
74 |
+ handle_term_signal, NULL, NULL); |
75 |
+diff --git a/calendar/libedata-cal/e-data-cal-factory.c b/calendar/libedata-cal/e-data-cal-factory.c |
76 |
+index 32771e1..d1f63b4 100644 |
77 |
+--- a/calendar/libedata-cal/e-data-cal-factory.c |
78 |
++++ b/calendar/libedata-cal/e-data-cal-factory.c |
79 |
+@@ -1070,7 +1070,11 @@ main (gint argc, gchar **argv) |
80 |
+ e_data_cal_migrate_basedir (); |
81 |
+ |
82 |
+ #ifdef G_OS_UNIX |
83 |
+-#if GLIB_CHECK_VERSION(2,29,5) |
84 |
++#if GLIB_CHECK_VERSION(2,29,19) |
85 |
++ g_unix_signal_add_full ( |
86 |
++ G_PRIORITY_DEFAULT, SIGTERM, |
87 |
++ handle_term_signal, NULL, NULL); |
88 |
++#elif GLIB_CHECK_VERSION(2,29,5) |
89 |
+ g_unix_signal_add_watch_full ( |
90 |
+ SIGTERM, G_PRIORITY_DEFAULT, |
91 |
+ handle_term_signal, NULL, NULL); |
92 |
+-- |
93 |
+cgit v0.9.0.2 |
94 |
|
95 |
diff --git a/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-introspection-e_source_set_property.patch b/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-introspection-e_source_set_property.patch |
96 |
new file mode 100644 |
97 |
index 0000000..d5f130b |
98 |
--- /dev/null |
99 |
+++ b/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-introspection-e_source_set_property.patch |
100 |
@@ -0,0 +1,21 @@ |
101 |
+From 1f27a7fb4ccc8b119e60c8281a71f1e3309fd959 Mon Sep 17 00:00:00 2001 |
102 |
+From: Raul Gutierrez Segales <rgs@××××××××××××.uk> |
103 |
+Date: Thu, 01 Sep 2011 16:19:58 +0000 |
104 |
+Subject: Introspection: e_source_set_proproperty's property_value param can be null |
105 |
+ |
106 |
+--- |
107 |
+diff --git a/libedataserver/e-source.c b/libedataserver/e-source.c |
108 |
+index bbcaad4..971ec5a 100644 |
109 |
+--- a/libedataserver/e-source.c |
110 |
++++ b/libedataserver/e-source.c |
111 |
+@@ -1135,7 +1135,7 @@ e_source_get_duped_property (ESource *source, |
112 |
+ * e_source_set_property: |
113 |
+ * @source: an #ESource |
114 |
+ * @property_name: a custom property name |
115 |
+- * @property_value: a new value for the property, or %NULL |
116 |
++ * @property_value: (allow-none): a new value for the property, or %NULL |
117 |
+ * |
118 |
+ * Create a new custom #ESource property or replaces an existing one. If |
119 |
+ * @property_value is %NULL, the property is removed from @source. This |
120 |
+-- |
121 |
+cgit v0.9.0.2 |
122 |
|
123 |
diff --git a/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-introspection-ecal.patch b/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-introspection-ecal.patch |
124 |
new file mode 100644 |
125 |
index 0000000..ad58f02 |
126 |
--- /dev/null |
127 |
+++ b/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-introspection-ecal.patch |
128 |
@@ -0,0 +1,22 @@ |
129 |
+From a3ba2ff92fd84d89d0fd97dce77cfad71bef1aa8 Mon Sep 17 00:00:00 2001 |
130 |
+From: Raul Gutierrez Segales <rgs@××××××××××××.uk> |
131 |
+Date: Wed, 31 Aug 2011 09:49:44 +0000 |
132 |
+Subject: Introspection: add the correct header to libecal's GIR file |
133 |
+ |
134 |
+--- |
135 |
+diff --git a/calendar/libecal/Makefile.am b/calendar/libecal/Makefile.am |
136 |
+index 1ae10ad..de74a1e 100644 |
137 |
+--- a/calendar/libecal/Makefile.am |
138 |
++++ b/calendar/libecal/Makefile.am |
139 |
+@@ -72,7 +72,8 @@ DISTCLEANFILES = $(pkgconfig_DATA) |
140 |
+ |
141 |
+ -include $(INTROSPECTION_MAKEFILE) |
142 |
+ INTROSPECTION_GIRS = |
143 |
+-INTROSPECTION_SCANNER_ARGS = --add-include-path=$(top_builddir)/libedataserver --identifier-prefix E --pkg-export libecal-1.2 |
144 |
++INTROSPECTION_SCANNER_ARGS = --add-include-path=$(top_builddir)/libedataserver --identifier-prefix E --pkg-export libecal-1.2 \ |
145 |
++ --c-include="libecal/e-cal.h" |
146 |
+ INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/libedataserver |
147 |
+ |
148 |
+ if HAVE_INTROSPECTION |
149 |
+-- |
150 |
+cgit v0.9.0.2 |
151 |
|
152 |
diff --git a/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-password-in-logs.patch b/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-password-in-logs.patch |
153 |
new file mode 100644 |
154 |
index 0000000..455e512 |
155 |
--- /dev/null |
156 |
+++ b/gnome-extra/evolution-data-server/files/evolution-data-server-3.1.90-password-in-logs.patch |
157 |
@@ -0,0 +1,60 @@ |
158 |
+From bbe1f6ced61be92019d6d7f85ee765ca3166517d Mon Sep 17 00:00:00 2001 |
159 |
+From: Milan Crha <mcrha@××××××.com> |
160 |
+Date: Tue, 30 Aug 2011 14:46:56 +0000 |
161 |
+Subject: Do not expose password in imapx log |
162 |
+ |
163 |
+--- |
164 |
+diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c |
165 |
+index 4a859d8..15ca8ef 100644 |
166 |
+--- a/camel/providers/imapx/camel-imapx-server.c |
167 |
++++ b/camel/providers/imapx/camel-imapx-server.c |
168 |
+@@ -629,7 +629,7 @@ imapx_command_addv (CamelIMAPXCommand *ic, const gchar *fmt, va_list ap) |
169 |
+ break; |
170 |
+ case 's': /* simple string */ |
171 |
+ s = va_arg (ap, gchar *); |
172 |
+- c(ic->is->tagprefix, "got string '%s'\n", s); |
173 |
++ c(ic->is->tagprefix, "got string '%s'\n", g_str_has_prefix (fmt, "LOGIN") ? "***" : s); |
174 |
+ output_string: |
175 |
+ if (*s) { |
176 |
+ guchar mask = imapx_is_mask (s); |
177 |
+@@ -832,7 +832,11 @@ camel_imapx_command_close (CamelIMAPXCommand *ic) |
178 |
+ |
179 |
+ byte_array = camel_stream_mem_get_byte_array (ic->mem); |
180 |
+ |
181 |
+- c(ic->is->tagprefix, "completing command buffer is [%d] '%.*s'\n", byte_array->len, (gint)byte_array->len, byte_array->data); |
182 |
++ if (g_str_has_prefix ((const gchar *) byte_array->data, "LOGIN")) { |
183 |
++ c(ic->is->tagprefix, "completing command buffer is [%d] 'LOGIN...'\n", byte_array->len); |
184 |
++ } else { |
185 |
++ c(ic->is->tagprefix, "completing command buffer is [%d] '%.*s'\n", byte_array->len, (gint)byte_array->len, byte_array->data); |
186 |
++ } |
187 |
+ if (byte_array->len > 0) |
188 |
+ imapx_command_add_part (ic, CAMEL_IMAPX_COMMAND_SIMPLE, NULL); |
189 |
+ |
190 |
+@@ -863,7 +867,7 @@ imapx_command_start (CamelIMAPXServer *imap, CamelIMAPXCommand *ic) |
191 |
+ |
192 |
+ g_static_rec_mutex_lock (&imap->ostream_lock); |
193 |
+ |
194 |
+- c(imap->tagprefix, "Starting command (active=%d,%s) %c%05u %s\r\n", camel_dlist_length(&imap->active), imap->literal?" literal":"", imap->tagprefix, ic->tag, cp->data); |
195 |
++ c(imap->tagprefix, "Starting command (active=%d,%s) %c%05u %s\r\n", camel_dlist_length(&imap->active), imap->literal?" literal":"", imap->tagprefix, ic->tag, cp->data && g_str_has_prefix (cp->data, "LOGIN") ? "LOGIN..." : cp->data); |
196 |
+ if (imap->stream != NULL) { |
197 |
+ gchar *string; |
198 |
+ |
199 |
+diff --git a/camel/providers/imapx/camel-imapx-stream.c b/camel/providers/imapx/camel-imapx-stream.c |
200 |
+index 72b0888..d3b74e6 100644 |
201 |
+--- a/camel/providers/imapx/camel-imapx-stream.c |
202 |
++++ b/camel/providers/imapx/camel-imapx-stream.c |
203 |
+@@ -149,7 +149,11 @@ imapx_stream_write (CamelStream *stream, |
204 |
+ { |
205 |
+ CamelIMAPXStream *is = (CamelIMAPXStream *) stream; |
206 |
+ |
207 |
+- io(is->tagprefix, "camel_imapx_write: '%.*s'\n", (gint)n, buffer); |
208 |
++ if (g_strstr_len (buffer, n, "LOGIN")) { |
209 |
++ io(is->tagprefix, "camel_imapx_write: 'LOGIN...'\n"); |
210 |
++ } else { |
211 |
++ io(is->tagprefix, "camel_imapx_write: '%.*s'\n", (gint)n, buffer); |
212 |
++ } |
213 |
+ |
214 |
+ return camel_stream_write (is->source, buffer, n, cancellable, error); |
215 |
+ } |
216 |
+-- |
217 |
+cgit v0.9.0.2 |