Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgdata/, dev-libs/libgdata/files/
Date: Fri, 07 Jul 2017 21:20:53
Message-Id: 1499462358.74aac669fba62ce2a3ca70f0224fe299ee7ea5ce.leio@gentoo
1 commit: 74aac669fba62ce2a3ca70f0224fe299ee7ea5ce
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 7 20:28:02 2017 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 7 21:19:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74aac669
7
8 dev-libs/libgdata: remove old
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-libs/libgdata/Manifest | 2 -
13 dev-libs/libgdata/files/0.17.7-fix-x86-tests.patch | 29 ---
14 .../files/0.17.7-streams-https-tests.patch | 204 ---------------------
15 dev-libs/libgdata/libgdata-0.17.6.ebuild | 62 -------
16 dev-libs/libgdata/libgdata-0.17.7.ebuild | 69 -------
17 5 files changed, 366 deletions(-)
18
19 diff --git a/dev-libs/libgdata/Manifest b/dev-libs/libgdata/Manifest
20 index 9aa58d6fa85..98cc2607b4e 100644
21 --- a/dev-libs/libgdata/Manifest
22 +++ b/dev-libs/libgdata/Manifest
23 @@ -1,3 +1 @@
24 -DIST libgdata-0.17.6.tar.xz 1526804 SHA256 8b6a3ff1db23bd9e5ebbcc958b29b769a898f892eed4798222d562ba69df30b0 SHA512 940e5155b0cda0604e09efcdeabbfcb54ebe97b40d1086823802d3a49fdb7fcfc97749ae218c15d30e4981d01e34d1ae3bed01c1ee9a283063761527a9405731 WHIRLPOOL d3d36ae14e2e6502a42766f3efd75001d50c8376cfe4c3e3addbbe30e2455323f399f813eb18d78f88a83353507f01fe0d8e312e8f05dc6bf2d28a38e5ba73f0
25 -DIST libgdata-0.17.7.tar.xz 1448528 SHA256 8a663ef314a6d20b73c762072e0c1353fa7ec1ca3c2dee6fb85927cbda0d44fd SHA512 92ded8480262f59b6b2f8271fbb77b9b75905ca53f80a24bcf239fd06ead219ffa8af4b576b38368297c1a4f49722b3960202b8ea2b03011781d5fdfa77bbfd6 WHIRLPOOL 73ca7fad7c444f9bd8fe0e31082f79c99bf7091aa142071df70384fdc48649b15ff1b4d772dafdcdc1ec702cda2ad49cec3a67c4e80a56cd0a11ea05aff3cea7
26 DIST libgdata-0.17.8.tar.xz 1464812 SHA256 e5e735bfac219c6cbe4a14df481cb3cb4b1c4b8b5e70f9a105a884035bc3a161 SHA512 dfc4c825a7053a6fd7659d04c7077bed8539b4cf3ef3da1d5ece4da3ce17941900e960a300a50b284010ed890dcab87e4c4726403f04481c672832fd34b975b0 WHIRLPOOL e0772008cdf0816efe118f69f9bcc86d85de2a26fc2fd5127bcdb942af264536764da130ccb194a01f0bb97ad9bb070eec84c659e9e82b64a4f7eeb6b0602797
27
28 diff --git a/dev-libs/libgdata/files/0.17.7-fix-x86-tests.patch b/dev-libs/libgdata/files/0.17.7-fix-x86-tests.patch
29 deleted file mode 100644
30 index fc74f44c07b..00000000000
31 --- a/dev-libs/libgdata/files/0.17.7-fix-x86-tests.patch
32 +++ /dev/null
33 @@ -1,29 +0,0 @@
34 -From 2e1bd073426b42a7e207314f1cef1402509ce12a Mon Sep 17 00:00:00 2001
35 -From: "Jan Alexander Steffens (heftig)" <jan.steffens@×××××.com>
36 -Date: Mon, 6 Mar 2017 06:28:32 +0100
37 -Subject: tests: Fix setting properties on i686
38 -
39 -Without the cast, an integer literal will have to wrong size for a
40 -64-bit integer parameter.
41 -
42 -https://bugzilla.gnome.org/show_bug.cgi?id=779641
43 ----
44 - gdata/tests/general.c | 2 +-
45 - 1 file changed, 1 insertion(+), 1 deletion(-)
46 -
47 -diff --git a/gdata/tests/general.c b/gdata/tests/general.c
48 -index 6b41f25..75232de 100644
49 ---- a/gdata/tests/general.c
50 -+++ b/gdata/tests/general.c
51 -@@ -1309,7 +1309,7 @@ test_query_properties (void)
52 - g_assert_##cmptype (gdata_query_get_##name_underscores (query), ==, new_val); \
53 - \
54 - notification_received = FALSE; \
55 -- g_object_set (query, name_hyphens, new_val2, NULL); \
56 -+ g_object_set (query, name_hyphens, (val_type) new_val2, NULL); \
57 - g_assert (notification_received == TRUE); \
58 - \
59 - g_assert_##cmptype (gdata_query_get_##name_underscores (query), ==, new_val2); \
60 ---
61 -cgit v0.12
62 -
63
64 diff --git a/dev-libs/libgdata/files/0.17.7-streams-https-tests.patch b/dev-libs/libgdata/files/0.17.7-streams-https-tests.patch
65 deleted file mode 100644
66 index 3d958a79f58..00000000000
67 --- a/dev-libs/libgdata/files/0.17.7-streams-https-tests.patch
68 +++ /dev/null
69 @@ -1,204 +0,0 @@
70 -From 106937d394fe3b8edbfb506273ae429d7ded2c2c Mon Sep 17 00:00:00 2001
71 -From: Philip Withnall <philip.withnall@××××××××××××.uk>
72 -Date: Tue, 20 Sep 2016 17:04:33 -0700
73 -Subject: core: Assert that all downloads, uploads and queries are HTTPS
74 -MIME-Version: 1.0
75 -Content-Type: text/plain; charset=UTF-8
76 -Content-Transfer-Encoding: 8bit
77 -
78 -All callers should be using HTTPS already — for peace of mind, let’s
79 -assert that’s the case.
80 ----
81 - gdata/gdata-download-stream.c | 7 ++++---
82 - gdata/gdata-service.c | 4 +++-
83 - gdata/gdata-upload-stream.c | 10 ++++++++--
84 - gdata/tests/general.c | 6 +++---
85 - gdata/tests/streams.c | 26 ++++++++++++++++++++------
86 - 5 files changed, 38 insertions(+), 15 deletions(-)
87 -
88 -diff --git a/gdata/gdata-download-stream.c b/gdata/gdata-download-stream.c
89 -index 67a3514..7613fd2 100644
90 ---- a/gdata/gdata-download-stream.c
91 -+++ b/gdata/gdata-download-stream.c
92 -@@ -233,7 +233,7 @@ gdata_download_stream_class_init (GDataDownloadStreamClass *klass)
93 - /**
94 - * GDataDownloadStream:download-uri:
95 - *
96 -- * The URI of the file to download.
97 -+ * The URI of the file to download. This must be HTTPS.
98 - *
99 - * Since: 0.5.0
100 - **/
101 -@@ -355,9 +355,10 @@ gdata_download_stream_constructor (GType type, guint n_construct_params, GObject
102 - priv->cancellable = g_cancellable_new ();
103 - priv->network_cancellable_id = g_cancellable_connect (priv->cancellable, (GCallback) cancellable_cancel_cb, priv->network_cancellable, NULL);
104 -
105 -- /* Build the message */
106 -+ /* Build the message. The URI must be HTTPS. */
107 - _uri = soup_uri_new (priv->download_uri);
108 - soup_uri_set_port (_uri, _gdata_service_get_https_port ());
109 -+ g_assert_cmpstr (soup_uri_get_scheme (_uri), ==, SOUP_URI_SCHEME_HTTPS);
110 - priv->message = soup_message_new_from_uri (SOUP_METHOD_GET, _uri);
111 - soup_uri_free (_uri);
112 -
113 -@@ -928,7 +929,7 @@ reset_network_thread (GDataDownloadStream *self)
114 - * gdata_download_stream_new:
115 - * @service: a #GDataService
116 - * @domain: (allow-none): the #GDataAuthorizationDomain to authorize the download, or %NULL
117 -- * @download_uri: the URI to download
118 -+ * @download_uri: the URI to download; this must be HTTPS
119 - * @cancellable: (allow-none): a #GCancellable for the entire download stream, or %NULL
120 - *
121 - * Creates a new #GDataDownloadStream, allowing a file to be downloaded from a GData service using standard #GInputStream API.
122 -diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
123 -index 2433339..9db75ba 100644
124 ---- a/gdata/gdata-service.c
125 -+++ b/gdata/gdata-service.c
126 -@@ -581,9 +581,11 @@ _gdata_service_build_message (GDataService *self, GDataAuthorizationDomain *doma
127 - GDataServiceClass *klass;
128 - SoupURI *_uri;
129 -
130 -- /* Create the message. Allow changing the HTTPS port just for testing. */
131 -+ /* Create the message. Allow changing the HTTPS port just for testing,
132 -+ * but require that the URI is always HTTPS for privacy. */
133 - _uri = soup_uri_new (uri);
134 - soup_uri_set_port (_uri, _gdata_service_get_https_port ());
135 -+ g_assert_cmpstr (soup_uri_get_scheme (_uri), ==, SOUP_URI_SCHEME_HTTPS);
136 - message = soup_message_new_from_uri (method, _uri);
137 - soup_uri_free (_uri);
138 -
139 -diff --git a/gdata/gdata-upload-stream.c b/gdata/gdata-upload-stream.c
140 -index bb52ac8..c8340be 100644
141 ---- a/gdata/gdata-upload-stream.c
142 -+++ b/gdata/gdata-upload-stream.c
143 -@@ -307,7 +307,7 @@ gdata_upload_stream_class_init (GDataUploadStreamClass *klass)
144 - /**
145 - * GDataUploadStream:upload-uri:
146 - *
147 -- * The URI to upload the data and metadata to.
148 -+ * The URI to upload the data and metadata to. This must be HTTPS.
149 - *
150 - * Since: 0.5.0
151 - **/
152 -@@ -428,11 +428,17 @@ gdata_upload_stream_constructed (GObject *object)
153 - {
154 - GDataUploadStreamPrivate *priv;
155 - GDataServiceClass *service_klass;
156 -+ SoupURI *uri = NULL;
157 -
158 - /* Chain up to the parent class */
159 - G_OBJECT_CLASS (gdata_upload_stream_parent_class)->constructed (object);
160 - priv = GDATA_UPLOAD_STREAM (object)->priv;
161 -
162 -+ /* The upload URI must be HTTPS. */
163 -+ uri = soup_uri_new (priv->upload_uri);
164 -+ g_assert_cmpstr (soup_uri_get_scheme (uri), ==, SOUP_URI_SCHEME_HTTPS);
165 -+ soup_uri_free (uri);
166 -+
167 - /* Create a #GCancellable for the entire upload operation if one wasn't specified for #GDataUploadStream:cancellable during construction */
168 - if (priv->cancellable == NULL)
169 - priv->cancellable = g_cancellable_new ();
170 -@@ -1300,7 +1306,7 @@ create_network_thread (GDataUploadStream *self, GError **error)
171 - * @service: a #GDataService
172 - * @domain: (allow-none): the #GDataAuthorizationDomain to authorize the upload, or %NULL
173 - * @method: the HTTP method to use
174 -- * @upload_uri: the URI to upload
175 -+ * @upload_uri: the URI to upload, which must be HTTPS
176 - * @entry: (allow-none): the entry to upload as metadata, or %NULL
177 - * @slug: the file's slug (filename)
178 - * @content_type: the content type of the file being uploaded
179 -diff --git a/gdata/tests/general.c b/gdata/tests/general.c
180 -index 070d34c..2420629 100644
181 ---- a/gdata/tests/general.c
182 -+++ b/gdata/tests/general.c
183 -@@ -1425,7 +1425,7 @@ test_service_network_error (void)
184 - service = g_object_new (GDATA_TYPE_SERVICE, NULL);
185 -
186 - /* Try a query which should always fail due to errors resolving the hostname */
187 -- g_assert (gdata_service_query (service, NULL, "http://thisshouldnotexist.invalid", NULL, GDATA_TYPE_ENTRY,
188 -+ g_assert (gdata_service_query (service, NULL, "https://thisshouldnotexist.invalid", NULL, GDATA_TYPE_ENTRY,
189 - NULL, NULL, NULL, &error) == NULL);
190 - g_assert_error (error, GDATA_SERVICE_ERROR, GDATA_SERVICE_ERROR_NETWORK_ERROR);
191 - g_clear_error (&error);
192 -@@ -1434,11 +1434,11 @@ test_service_network_error (void)
193 - * Filed as bgo#632354. */
194 - #if 0
195 - /* Try one with a bad proxy set */
196 -- proxy_uri = soup_uri_new ("http://thisshouldalsonotexist.invalid/proxy");
197 -+ proxy_uri = soup_uri_new ("https://thisshouldalsonotexist.invalid/proxy");
198 - gdata_service_set_proxy_uri (service, proxy_uri);
199 - soup_uri_free (proxy_uri);
200 -
201 -- g_assert (gdata_service_query (service, "http://google.com", NULL, GDATA_TYPE_ENTRY, NULL, NULL, NULL, &error) == NULL);
202 -+ g_assert (gdata_service_query (service, "https://google.com", NULL, GDATA_TYPE_ENTRY, NULL, NULL, NULL, &error) == NULL);
203 - g_assert_error (error, GDATA_SERVICE_ERROR, GDATA_SERVICE_ERROR_PROXY_ERROR);
204 - g_clear_error (&error);
205 - #endif
206 -diff --git a/gdata/tests/streams.c b/gdata/tests/streams.c
207 -index 91b35c6..1de8e50 100644
208 ---- a/gdata/tests/streams.c
209 -+++ b/gdata/tests/streams.c
210 -@@ -161,6 +161,7 @@ create_server (SoupServerCallback callback, gpointer user_data, GMainLoop **main
211 - GMainContext *context;
212 - SoupServer *server;
213 - #ifdef HAVE_LIBSOUP_2_47_3
214 -+ gchar *cert_path = NULL, *key_path = NULL;
215 - GError *error = NULL;
216 - #else /* if !HAVE_LIBSOUP_2_47_3 */
217 - union {
218 -@@ -178,12 +179,21 @@ create_server (SoupServerCallback callback, gpointer user_data, GMainLoop **main
219 - #ifdef HAVE_LIBSOUP_2_47_3
220 - server = soup_server_new (NULL, NULL);
221 -
222 -+ cert_path = g_test_build_filename (G_TEST_DIST, "cert.pem", NULL);
223 -+ key_path = g_test_build_filename (G_TEST_DIST, "key.pem", NULL);
224 -+
225 -+ soup_server_set_ssl_cert_file (server, cert_path, key_path, &error);
226 -+ g_assert_no_error (error);
227 -+
228 -+ g_free (key_path);
229 -+ g_free (cert_path);
230 -+
231 - soup_server_add_handler (server, NULL, callback, user_data, NULL);
232 -
233 - g_main_context_push_thread_default (context);
234 -
235 - soup_server_listen_local (server, 0 /* random port */,
236 -- 0 /* no options */, &error);
237 -+ SOUP_SERVER_LISTEN_HTTPS, &error);
238 - g_assert_no_error (error);
239 -
240 - g_main_context_pop_thread_default (context);
241 -@@ -216,20 +226,24 @@ build_server_uri (SoupServer *server)
242 - {
243 - #ifdef HAVE_LIBSOUP_2_47_3
244 - GSList *uris; /* owned */
245 -+ GSList *l; /* unowned */
246 - gchar *retval = NULL; /* owned */
247 -
248 - uris = soup_server_get_uris (server);
249 -- if (uris == NULL) {
250 -- return NULL;
251 -- }
252 -
253 -- retval = soup_uri_to_string (uris->data, FALSE);
254 -+ for (l = uris; l != NULL && retval == NULL; l = l->next) {
255 -+ if (soup_uri_get_scheme (l->data) == SOUP_URI_SCHEME_HTTPS) {
256 -+ retval = soup_uri_to_string (l->data, FALSE);
257 -+ }
258 -+ }
259 -
260 - g_slist_free_full (uris, (GDestroyNotify) soup_uri_free);
261 -
262 -+ g_assert (retval != NULL);
263 -+
264 - return retval;
265 - #else /* if !HAVE_LIBSOUP_2_47_3 */
266 -- return g_strdup_printf ("http://%s:%u/",
267 -+ return g_strdup_printf ("https://%s:%u/",
268 - soup_address_get_physical (soup_socket_get_local_address (soup_server_get_listener (server))),
269 - soup_server_get_port (server));
270 - #endif /* !HAVE_LIBSOUP_2_47_3 */
271 ---
272 -cgit v0.12
273 -
274
275 diff --git a/dev-libs/libgdata/libgdata-0.17.6.ebuild b/dev-libs/libgdata/libgdata-0.17.6.ebuild
276 deleted file mode 100644
277 index 6fba2b2023c..00000000000
278 --- a/dev-libs/libgdata/libgdata-0.17.6.ebuild
279 +++ /dev/null
280 @@ -1,62 +0,0 @@
281 -# Copyright 1999-2017 Gentoo Foundation
282 -# Distributed under the terms of the GNU General Public License v2
283 -
284 -EAPI=6
285 -VALA_USE_DEPEND="vapigen"
286 -
287 -inherit gnome2 vala
288 -
289 -DESCRIPTION="GLib-based library for accessing online service APIs using the GData protocol"
290 -HOMEPAGE="https://wiki.gnome.org/Projects/libgdata"
291 -
292 -LICENSE="LGPL-2.1+"
293 -SLOT="0/22" # subslot = libgdata soname version
294 -
295 -IUSE="+crypt gnome-online-accounts +introspection static-libs test vala"
296 -REQUIRED_USE="
297 - gnome-online-accounts? ( crypt )
298 - vala? ( introspection )
299 -"
300 -
301 -KEYWORDS="alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 sparc x86"
302 -
303 -# configure checks for gtk:3, but only uses it for demos which are not installed
304 -RDEPEND="
305 - >=dev-libs/glib-2.32:2
306 - >=dev-libs/json-glib-0.15
307 - >=dev-libs/libxml2-2:2
308 - >=net-libs/liboauth-0.9.4
309 - >=net-libs/libsoup-2.42.0:2.4[introspection?]
310 - >=x11-libs/gdk-pixbuf-2.14:2
311 - crypt? ( app-crypt/gcr:= )
312 - gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.8:= )
313 - introspection? ( >=dev-libs/gobject-introspection-0.9.7:= )
314 -"
315 -DEPEND="${RDEPEND}
316 - >=dev-util/gtk-doc-am-1.14
317 - >=dev-util/intltool-0.40
318 - virtual/pkgconfig
319 - test? ( >=net-libs/uhttpmock-0.5 )
320 - vala? ( $(vala_depend) )
321 -"
322 -
323 -src_prepare() {
324 - use vala && vala_src_prepare
325 - gnome2_src_prepare
326 -}
327 -
328 -src_configure() {
329 - gnome2_src_configure \
330 - $(use_enable crypt gnome) \
331 - $(use_enable gnome-online-accounts goa) \
332 - $(use_enable introspection) \
333 - $(use_enable vala) \
334 - $(use_enable static-libs static) \
335 - $(use_enable test always-build-tests)
336 -}
337 -
338 -src_test() {
339 - unset ORBIT_SOCKETDIR
340 - export GSETTINGS_BACKEND="memory" #486412
341 - dbus-launch emake check
342 -}
343
344 diff --git a/dev-libs/libgdata/libgdata-0.17.7.ebuild b/dev-libs/libgdata/libgdata-0.17.7.ebuild
345 deleted file mode 100644
346 index 6497d8b043b..00000000000
347 --- a/dev-libs/libgdata/libgdata-0.17.7.ebuild
348 +++ /dev/null
349 @@ -1,69 +0,0 @@
350 -# Copyright 1999-2017 Gentoo Foundation
351 -# Distributed under the terms of the GNU General Public License v2
352 -
353 -EAPI=6
354 -VALA_USE_DEPEND="vapigen"
355 -
356 -inherit gnome2 vala
357 -
358 -DESCRIPTION="GLib-based library for accessing online service APIs using the GData protocol"
359 -HOMEPAGE="https://wiki.gnome.org/Projects/libgdata"
360 -
361 -LICENSE="LGPL-2.1+"
362 -SLOT="0/22" # subslot = libgdata soname version
363 -
364 -IUSE="+crypt gnome-online-accounts +introspection static-libs test vala"
365 -REQUIRED_USE="
366 - gnome-online-accounts? ( crypt )
367 - vala? ( introspection )
368 -"
369 -
370 -KEYWORDS="alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
371 -
372 -# configure checks for gtk:3, but only uses it for demos which are not installed
373 -RDEPEND="
374 - >=dev-libs/glib-2.32:2
375 - >=dev-libs/json-glib-0.15
376 - >=dev-libs/libxml2-2:2
377 - >=net-libs/liboauth-0.9.4
378 - >=net-libs/libsoup-2.42.0:2.4[introspection?]
379 - >=x11-libs/gdk-pixbuf-2.14:2
380 - crypt? ( app-crypt/gcr:= )
381 - gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.8:= )
382 - introspection? ( >=dev-libs/gobject-introspection-0.9.7:= )
383 -"
384 -DEPEND="${RDEPEND}
385 - >=dev-util/gtk-doc-am-1.25
386 - >=dev-util/intltool-0.40
387 - virtual/pkgconfig
388 - test? ( >=net-libs/uhttpmock-0.5 )
389 - vala? ( $(vala_depend) )
390 -"
391 -
392 -src_prepare() {
393 - # https://bugzilla.gnome.org/show_bug.cgi?id=780081 - remove with 0.17.8
394 - if use test && ! has_version '>=net-libs/libsoup-2.55.90:2.4'; then
395 - eapply -R "${FILESDIR}/${PV}"-streams-https-tests.patch
396 - fi
397 - # x86 test fix from upstream git post-0.17.7
398 - eapply "${FILESDIR}/${PV}"-fix-x86-tests.patch
399 -
400 - use vala && vala_src_prepare
401 - gnome2_src_prepare
402 -}
403 -
404 -src_configure() {
405 - gnome2_src_configure \
406 - $(use_enable crypt gnome) \
407 - $(use_enable gnome-online-accounts goa) \
408 - $(use_enable introspection) \
409 - $(use_enable vala) \
410 - $(use_enable static-libs static) \
411 - $(use_enable test always-build-tests)
412 -}
413 -
414 -src_test() {
415 - unset ORBIT_SOCKETDIR
416 - export GSETTINGS_BACKEND="memory" #486412
417 - dbus-launch emake check
418 -}