Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libsoup/, profiles/
Date: Wed, 15 Sep 2021 11:45:52
Message-Id: 1631706324.c645c666cf6fa5eaa977105dd858a556ceaf42bd.leio@gentoo
1 commit: c645c666cf6fa5eaa977105dd858a556ceaf42bd
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 15 11:23:13 2021 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 15 11:45:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c645c666
7
8 net-libs/libsoup: bump to 2.99.9
9
10 Enable brotli support by default (libsoup advertises it to servers
11 since 2.99.7 now).
12
13 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
14
15 net-libs/libsoup/Manifest | 1 +
16 net-libs/libsoup/libsoup-2.99.9.ebuild | 94 ++++++++++++++++++++++++++++++++++
17 profiles/package.mask | 6 +++
18 3 files changed, 101 insertions(+)
19
20 diff --git a/net-libs/libsoup/Manifest b/net-libs/libsoup/Manifest
21 index 20ef5cd3086..d629aa8d30b 100644
22 --- a/net-libs/libsoup/Manifest
23 +++ b/net-libs/libsoup/Manifest
24 @@ -1,2 +1,3 @@
25 DIST libsoup-2.72.0.tar.xz 1477940 BLAKE2B e63a26aa29a4a34c4e4b0a2713818db52b206b04b56d99391648351f87a62dc3455020e8eb0312ef17b2b7d047a7d5731905ecc214085afd4eff25fefa30782b SHA512 ca16772d0d318c4be0c4859db1e32baffa2231b4732f3bf9814aa405febde86395a0fb8bfa1635d70a7b5853d2567403920b9b0d0f5c3c179294352af27e91de
26 DIST libsoup-2.74.0.tar.xz 1498224 BLAKE2B c03b817a7a7f708480581aad258e5e24c541c6c2f39e48c51597d67c729b3a0722ef094916ad841904a0cafc67f12ad20d05b74ac41aeb174cb79b49fdd0977e SHA512 d78374c31631d7d1fb30ceb7c6016ab970cb321b06191d3463f178ceea9dacd08c828b8f16f5a30c185489ebfbc93ff9da09ae4978be3e3ff11bf7ee95a2a9a6
27 +DIST libsoup-2.99.9.tar.xz 1514372 BLAKE2B c7c708e477e38fa03d19e3a35eb99a6183774275ed0e2c00a1c62c238ca932e62aa71713386010b36a3c7aac1c78ebc3555635a2e2db4c68406e25510432db62 SHA512 77fff5c4d72bd5acad5b9b4a312cc999b960d6eb7e4715cdd2571859a0ee888988fee12bd46684ca948993a2308f10def1141fe3e3137ac9cce68190222ee858
28
29 diff --git a/net-libs/libsoup/libsoup-2.99.9.ebuild b/net-libs/libsoup/libsoup-2.99.9.ebuild
30 new file mode 100644
31 index 00000000000..90bb1cbd1f2
32 --- /dev/null
33 +++ b/net-libs/libsoup/libsoup-2.99.9.ebuild
34 @@ -0,0 +1,94 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +VALA_USE_DEPEND="vapigen"
40 +
41 +inherit gnome.org meson-multilib vala xdg
42 +
43 +DESCRIPTION="HTTP client/server library for GNOME"
44 +HOMEPAGE="https://wiki.gnome.org/Projects/libsoup"
45 +
46 +LICENSE="LGPL-2.1+"
47 +SLOT="3.0"
48 +
49 +IUSE="+brotli gssapi gtk-doc +introspection samba ssl sysprof test +vala"
50 +RESTRICT="!test? ( test )"
51 +REQUIRED_USE="vala? ( introspection )"
52 +
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
54 +
55 +DEPEND="
56 + >=dev-libs/glib-2.69.0:2[${MULTILIB_USEDEP}]
57 + net-libs/nghttp2:=[${MULTILIB_USEDEP}]
58 + >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}]
59 + >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}]
60 + brotli? ( >=app-arch/brotli-1.0.6-r1:=[${MULTILIB_USEDEP}] )
61 + >=net-libs/libpsl-0.20[${MULTILIB_USEDEP}]
62 + sysprof? ( >=dev-util/sysprof-capture-3.40.1:4[${MULTILIB_USEDEP}] )
63 + sys-libs/zlib
64 + gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
65 + introspection? ( >=dev-libs/gobject-introspection-1.54:= )
66 + samba? ( net-fs/samba )
67 +"
68 +RDEPEND="${DEPEND}
69 + >=net-libs/glib-networking-2.38.2[ssl?,${MULTILIB_USEDEP}]
70 +"
71 +BDEPEND="
72 + dev-libs/glib
73 + dev-util/glib-utils
74 + gtk-doc? ( >=dev-util/gtk-doc-1.20
75 + app-text/docbook-xml-dtd:4.1.2 )
76 + >=sys-devel/gettext-0.19.8
77 + virtual/pkgconfig
78 + vala? ( $(vala_depend) )
79 +"
80 +# test? ( www-servers/apache[ssl,apache2_modules_auth_digest,apache2_modules_alias,apache2_modules_auth_basic,
81 +# apache2_modules_authn_file,apache2_modules_authz_host,apache2_modules_authz_user,apache2_modules_dir,
82 +# apache2_modules_mime,apache2_modules_proxy,apache2_modules_proxy_http,apache2_modules_proxy_connect]
83 +# dev-lang/php[apache2,xmlrpc]
84 +# net-misc/curl
85 +# net-libs/glib-networking[ssl])"
86 +
87 +PATCHES=(
88 + # Disable apache tests until they are usable on Gentoo, bug #326957
89 + "${FILESDIR}"/disable-apache-tests.patch
90 +)
91 +
92 +src_prepare() {
93 + use vala && vala_src_prepare
94 + xdg_src_prepare
95 + # https://gitlab.gnome.org/GNOME/libsoup/issues/159 - could work with libnss-myhostname
96 + sed -e '/hsts/d' -i tests/meson.build || die
97 +}
98 +
99 +src_configure() {
100 + # FIXME: we need addpredict to workaround bug #324779 until
101 + # root cause (bug #249496) is solved
102 + # But unnecessary while apache tests are disabled
103 + #addpredict /usr/share/snmp/mibs/.index
104 +
105 + multilib-minimal_src_configure
106 +}
107 +
108 +multilib_src_configure() {
109 + local emesonargs=(
110 + $(meson_feature gssapi)
111 + -Dkrb5_config="${CHOST}-krb5-config"
112 + $(meson_feature samba ntlm)
113 + $(meson_feature brotli)
114 + -Dntlm_auth="${EPREFIX}/usr/bin/ntlm_auth"
115 + -Dtls_check=false # disables check, we still rdep on glib-networking
116 + $(meson_native_use_feature introspection)
117 + $(meson_native_use_feature vala vapi)
118 + $(meson_native_use_bool gtk-doc gtk_doc)
119 + $(meson_use test tests)
120 + -Dinstalled_tests=false
121 + $(meson_feature sysprof)
122 + # Avoid gnutls[pkcs11] test dep for now, consider adding them back or fixing
123 + # upstream to skip them when pkcs11 API isn't there (in 2.99.9 it automatically
124 + # skips these only if gnutls overall is missing)
125 + -Dpkcs11_tests=disabled
126 + )
127 + meson_src_configure
128 +}
129
130 diff --git a/profiles/package.mask b/profiles/package.mask
131 index 88a8f48f70b..a455cbf7f72 100644
132 --- a/profiles/package.mask
133 +++ b/profiles/package.mask
134 @@ -32,6 +32,12 @@
135
136 #--- END OF EXAMPLES ---
137
138 +# Mart Raudsepp <leio@g.o> (15 Sep 2021)
139 +# New major parallel-installable release which needs special care to not
140 +# end up loaded into the same process together with the earlier libsoup ABI.
141 +# Migration to it is expected for GNOME 42, NOT to be unmasked with GNOME 41.
142 +net-libs/libsoup:3.0
143 +
144 # Gnome Team <gnome@g.o> (13 Sep 2021)
145 # GNOME 41 mask, bug #812986
146 >=dev-util/gdbus-codegen-2.69