Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: net-libs/libsoup/files/, net-libs/libsoup/
Date: Mon, 10 Sep 2018 21:34:14
Message-Id: 1536613679.9e916ea1671f9a4476c38eabb5e219e3b596e06e.eva@gentoo
1 commit: 9e916ea1671f9a4476c38eabb5e219e3b596e06e
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 10 20:50:35 2018 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 10 21:07:59 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=9e916ea1
7
8 net-libs/libsoup: 2.58.2 → 2.60.3
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11 Manifest-Sign-Key: 0x5A56C8CD0C13248A
12
13 .../files/libsoup-2.58.2-sparc-unaligned.patch | 28 ++++++++++
14 .../{libsoup-9999.ebuild => libsoup-2.60.3.ebuild} | 63 ++++++++++------------
15 net-libs/libsoup/libsoup-9999.ebuild | 33 ++++++++----
16 net-libs/libsoup/metadata.xml | 1 +
17 4 files changed, 79 insertions(+), 46 deletions(-)
18
19 diff --git a/net-libs/libsoup/files/libsoup-2.58.2-sparc-unaligned.patch b/net-libs/libsoup/files/libsoup-2.58.2-sparc-unaligned.patch
20 new file mode 100644
21 index 00000000..d09d52c2
22 --- /dev/null
23 +++ b/net-libs/libsoup/files/libsoup-2.58.2-sparc-unaligned.patch
24 @@ -0,0 +1,28 @@
25 +From c2aaac0083f58d285b8feb24f13fe347d7f726fe Mon Sep 17 00:00:00 2001
26 +From: Rolf Eike Beer <eike@×××××××.de>
27 +Date: Sat, 17 Mar 2018 10:28:00 +0000
28 +Subject: [PATCH] WebSockets: Avoid unaligned memory access
29 +
30 +This is causing test failures in SPARC architectures.
31 +
32 +https://bugzilla.gnome.org/show_bug.cgi?id=794421
33 +---
34 + libsoup/soup-websocket-connection.c | 3 ++-
35 + 1 file changed, 2 insertions(+), 1 deletion(-)
36 +
37 +diff --git a/libsoup/soup-websocket-connection.c b/libsoup/soup-websocket-connection.c
38 +index 0258a22c..35eee6a6 100644
39 +--- a/libsoup/soup-websocket-connection.c
40 ++++ b/libsoup/soup-websocket-connection.c
41 +@@ -401,9 +401,10 @@ send_message (SoupWebsocketConnection *self,
42 + * probably a client somewhere that's not expecting it.
43 + */
44 + if (self->pv->connection_type == SOUP_WEBSOCKET_CONNECTION_CLIENT) {
45 ++ guint32 rnd = g_random_int ();
46 + outer[1] |= 0x80;
47 + mask = outer + bytes->len;
48 +- * ((guint32 *)mask) = g_random_int ();
49 ++ memcpy (mask, &rnd, sizeof (rnd));
50 + bytes->len += 4;
51 + }
52 +
53
54 diff --git a/net-libs/libsoup/libsoup-9999.ebuild b/net-libs/libsoup/libsoup-2.60.3.ebuild
55 similarity index 64%
56 copy from net-libs/libsoup/libsoup-9999.ebuild
57 copy to net-libs/libsoup/libsoup-2.60.3.ebuild
58 index 36ee31ff..3b86d848 100644
59 --- a/net-libs/libsoup/libsoup-9999.ebuild
60 +++ b/net-libs/libsoup/libsoup-2.60.3.ebuild
61 @@ -1,76 +1,66 @@
62 -# Copyright 1999-2015 Gentoo Foundation
63 +# Copyright 1999-2018 Gentoo Foundation
64 # Distributed under the terms of the GNU General Public License v2
65 -# $Id$
66
67 -EAPI="5"
68 -GCONF_DEBUG="yes"
69 +EAPI=6
70 GNOME2_LA_PUNT="yes"
71 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
72 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5,3_6} )
73 +VALA_USE_DEPEND="vapigen"
74
75 -inherit gnome2 multilib-minimal python-any-r1
76 -if [[ ${PV} = 9999 ]]; then
77 - inherit gnome2-live
78 -fi
79 +inherit gnome2 multilib-minimal python-any-r1 vala
80
81 DESCRIPTION="An HTTP library implementation in C"
82 -HOMEPAGE="https://wiki.gnome.org/LibSoup"
83 +HOMEPAGE="https://wiki.gnome.org/Projects/libsoup"
84
85 LICENSE="LGPL-2+"
86 SLOT="2.4"
87 -IUSE="debug +introspection samba ssl test"
88 -if [[ ${PV} = 9999 ]]; then
89 - KEYWORDS=""
90 - IUSE="${IUSE} doc"
91 -else
92 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
93 -fi
94 +
95 +IUSE="debug gssapi +introspection samba ssl test vala"
96 +REQUIRED_USE="vala? ( introspection )"
97 +
98 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
99
100 RDEPEND="
101 >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
102 >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}]
103 >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}]
104 >=net-libs/glib-networking-2.38.2[ssl?,${MULTILIB_USEDEP}]
105 - introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
106 + gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
107 + introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
108 samba? ( net-fs/samba )
109 "
110 DEPEND="${RDEPEND}
111 ${PYTHON_DEPS}
112 >=dev-util/intltool-0.35
113 - >=dev-util/gtk-doc-am-1.10
114 + >=dev-util/gtk-doc-am-1.20
115 sys-devel/gettext
116 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
117 test? ( >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] )
118 + vala? ( $(vala_depend) )
119 "
120 -
121 -if [[ ${PV} = 9999 ]]; then
122 - DEPEND="${DEPEND}
123 - doc? ( >=dev-util/gtk-doc-1.10 )"
124 -fi
125 # test? ( www-servers/apache[ssl,apache2_modules_auth_digest,apache2_modules_alias,apache2_modules_auth_basic,
126 # apache2_modules_authn_file,apache2_modules_authz_host,apache2_modules_authz_user,apache2_modules_dir,
127 # apache2_modules_mime,apache2_modules_proxy,apache2_modules_proxy_http,apache2_modules_proxy_connect]
128 # dev-lang/php[apache2,xmlrpc]
129 # net-misc/curl
130 # net-libs/glib-networking[ssl])"
131 -RDEPEND="${RDEPEND}
132 - abi_x86_32? (
133 - !<=app-emulation/emul-linux-x86-baselibs-20140508-r8
134 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
135 - )
136 -"
137
138 -src_prepare() {
139 - if [[ ${PV} = 9999 ]]; then
140 - # prevent SOUP_MAINTAINER_FLAGS from getting set
141 - mv .git .git-bck || die
142 - fi
143 +PATCHES=(
144 + # https://bugs.gentoo.org/630516
145 + "${FILESDIR}/${PN}-2.58.2-sparc-unaligned.patch"
146 +)
147
148 +src_prepare() {
149 if ! use test; then
150 # don't waste time building tests (bug #226271)
151 sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
152 || die "sed failed"
153 fi
154
155 + # FIXME: workaround upstream not respecting --without-apache-httpd
156 + sed -e '/check: start-httpd/d' \
157 + -i tests/Makefile.am tests/Makefile.in || die
158 +
159 + use vala && vala_src_prepare
160 gnome2_src_prepare
161 }
162
163 @@ -90,7 +80,10 @@ multilib_src_configure() {
164 --disable-tls-check \
165 --without-gnome \
166 --without-apache-httpd \
167 + $(usex debug --enable-debug=yes ' ') \
168 + $(multilib_native_use_with gssapi) \
169 $(multilib_native_use_enable introspection) \
170 + $(multilib_native_use_enable vala) \
171 $(use_with samba ntlm-auth '${EPREFIX}'/usr/bin/ntlm_auth)
172
173 if multilib_is_native_abi; then
174
175 diff --git a/net-libs/libsoup/libsoup-9999.ebuild b/net-libs/libsoup/libsoup-9999.ebuild
176 index 36ee31ff..a36a0109 100644
177 --- a/net-libs/libsoup/libsoup-9999.ebuild
178 +++ b/net-libs/libsoup/libsoup-9999.ebuild
179 @@ -1,28 +1,29 @@
180 -# Copyright 1999-2015 Gentoo Foundation
181 +# Copyright 1999-2018 Gentoo Foundation
182 # Distributed under the terms of the GNU General Public License v2
183 -# $Id$
184
185 -EAPI="5"
186 -GCONF_DEBUG="yes"
187 +EAPI=6
188 GNOME2_LA_PUNT="yes"
189 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
190 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5,3_6} )
191 +VALA_USE_DEPEND="vapigen"
192
193 -inherit gnome2 multilib-minimal python-any-r1
194 +inherit gnome2 multilib-minimal python-any-r1 vala
195 if [[ ${PV} = 9999 ]]; then
196 inherit gnome2-live
197 fi
198
199 DESCRIPTION="An HTTP library implementation in C"
200 -HOMEPAGE="https://wiki.gnome.org/LibSoup"
201 +HOMEPAGE="https://wiki.gnome.org/Projects/libsoup"
202
203 LICENSE="LGPL-2+"
204 SLOT="2.4"
205 -IUSE="debug +introspection samba ssl test"
206 +IUSE="debug gssapi +introspection samba ssl test vala"
207 +REQUIRED_USE="vala? ( introspection )"
208 +
209 if [[ ${PV} = 9999 ]]; then
210 KEYWORDS=""
211 IUSE="${IUSE} doc"
212 else
213 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
214 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
215 fi
216
217 RDEPEND="
218 @@ -30,16 +31,18 @@ RDEPEND="
219 >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}]
220 >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}]
221 >=net-libs/glib-networking-2.38.2[ssl?,${MULTILIB_USEDEP}]
222 - introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
223 + gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
224 + introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
225 samba? ( net-fs/samba )
226 "
227 DEPEND="${RDEPEND}
228 ${PYTHON_DEPS}
229 >=dev-util/intltool-0.35
230 - >=dev-util/gtk-doc-am-1.10
231 + >=dev-util/gtk-doc-am-1.20
232 sys-devel/gettext
233 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
234 test? ( >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] )
235 + vala? ( $(vala_depend) )
236 "
237
238 if [[ ${PV} = 9999 ]]; then
239 @@ -71,6 +74,11 @@ src_prepare() {
240 || die "sed failed"
241 fi
242
243 + # FIXME: workaround upstream not respecting --without-apache-httpd
244 + sed -e '/check: start-httpd/d' \
245 + -i tests/Makefile.am tests/Makefile.in || die
246 +
247 + vala_src_prepare
248 gnome2_src_prepare
249 }
250
251 @@ -90,7 +98,10 @@ multilib_src_configure() {
252 --disable-tls-check \
253 --without-gnome \
254 --without-apache-httpd \
255 + $(usex debug --enable-debug=yes ' ') \
256 + $(multilib_native_use_with gssapi) \
257 $(multilib_native_use_enable introspection) \
258 + $(multilib_native_use_enable vala) \
259 $(use_with samba ntlm-auth '${EPREFIX}'/usr/bin/ntlm_auth)
260
261 if multilib_is_native_abi; then
262
263 diff --git a/net-libs/libsoup/metadata.xml b/net-libs/libsoup/metadata.xml
264 index a4047eef..b01383c3 100644
265 --- a/net-libs/libsoup/metadata.xml
266 +++ b/net-libs/libsoup/metadata.xml
267 @@ -6,6 +6,7 @@
268 <name>Gentoo GNOME Desktop</name>
269 </maintainer>
270 <use>
271 + <flag name="gssapi">Enable GSSAPI support</flag>
272 <flag name="samba">Use <pkg>net-fs/samba</pkg> for NTLM Single
273 Sign-On</flag>
274 </use>