Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/gvfs/files/, gnome-base/gvfs/
Date: Tue, 31 May 2022 18:52:22
Message-Id: 1654023126.96adb37528fcb695210522f8bcd68d3bab61a9a1.mattst88@gentoo
1 commit: 96adb37528fcb695210522f8bcd68d3bab61a9a1
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 18:49:22 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 18:52:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96adb375
7
8 Revert "gnome-base/gvfs: Drop old versions"
9
10 This reverts commit 22102a2cce8afe3af433ecf3bd417693ace4c427.
11
12 dev-libs/totem-pl-parser needs gvfs[http], which is masked on versions
13 1.50+ due to the libsoup:3 dependency.
14
15 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
16
17 gnome-base/gvfs/Manifest | 2 +
18 gnome-base/gvfs/files/meson-0.61.patch | 33 +++++++
19 gnome-base/gvfs/gvfs-1.48.1-r1.ebuild | 152 +++++++++++++++++++++++++++++++++
20 gnome-base/gvfs/gvfs-1.50.0.ebuild | 149 ++++++++++++++++++++++++++++++++
21 4 files changed, 336 insertions(+)
22
23 diff --git a/gnome-base/gvfs/Manifest b/gnome-base/gvfs/Manifest
24 index 9d1a834d621a..1bd1661714df 100644
25 --- a/gnome-base/gvfs/Manifest
26 +++ b/gnome-base/gvfs/Manifest
27 @@ -1,2 +1,4 @@
28 +DIST gvfs-1.48.1.tar.xz 1225916 BLAKE2B f2c46d94ba68065fcaef93cfaf25d5d6cc2fbbf4c1842452d30a9fec2ac5259b440fe569411cf3a874d3464f8d001ef2d04a705230a21b381ff1c3abe9c0f16e SHA512 19a642bcfce37eaa0d2d9f509fed6c67abfea0f79f5be9a17074d20e9ba71252a13583a2e08de88718cb141c5e79e34c84c765c87160351fe21291a8f88abe8c
29 +DIST gvfs-1.50.0.tar.xz 1213456 BLAKE2B a560794677693f449fd71f314d18a8ad8bb38ce6ac6eb312d020fd4ed2b55c9e1939cecc993869b3f489c0ebddfa057bf76af04e6c6f700323dc7b99fa052af1 SHA512 6eea3c59b239fe9674a83db4e182c0ea2ab7d56e29f5d5c4a7af9cb3cb0fd9222721796754f2f502291049c158e8bd3771cbc5262d10bfa684c207cb3281dcce
30 DIST gvfs-1.50.1.tar.xz 1214536 BLAKE2B 678c89d08255e577afb3a4999cef341fc5449c5ab615c5e089b14cbd2d0a882830dff71af6ab7a978d8b23a3aaeea197badd21d8c4e702588e626f3b4d917c55 SHA512 7a1ea47658dbd74673e1aea7c344d3f9e8a26fab844a26220cedcb19da6b4a0cac6b369d2b5107f649d6e7b2331894c89df04c6dce3630be4b289e23f56127a5
31 DIST gvfs-1.50.2.tar.xz 1214464 BLAKE2B 3fbd461cd640fcb956158e6fce97cb6cb7c30e444c5955ee197f827273271b876de62469daee994586b2bfe6ab7ab41d8a9eb2f346a0b9ed45289d9d516f5bf5 SHA512 980ff8a857ad4dc820685a9331d875274f893aebf8aca406c8ee06e2a25026fc51572515f3ccaa06062314f7f5f8d1982c5813d235bd7d81b975874e1796ca04
32
33 diff --git a/gnome-base/gvfs/files/meson-0.61.patch b/gnome-base/gvfs/files/meson-0.61.patch
34 new file mode 100644
35 index 000000000000..20e03388d7c6
36 --- /dev/null
37 +++ b/gnome-base/gvfs/files/meson-0.61.patch
38 @@ -0,0 +1,33 @@
39 +https://bugs.gentoo.org/831840
40 +https://gitlab.gnome.org/GNOME/gvfs/-/merge_requests/133
41 +
42 +From 1522bf6a9741cf6f1fe16eaf50fd20af46882873 Mon Sep 17 00:00:00 2001
43 +From: Ondrej Holy <oholy@××××××.com>
44 +Date: Fri, 21 Jan 2022 08:32:31 +0100
45 +Subject: [PATCH] build: Remove incorrect i18n.merge_file argument
46 +
47 +The positional argument was being silently ignored until meson 0.60.0 where
48 +it fails with "ERROR: Function does not take positional arguments".
49 +
50 +Related: https://github.com/mesonbuild/meson/issues/9441
51 +Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/599
52 +(cherry picked from commit 17a067b9b823a0d54e061eae45ff8e2c7e4a88d0)
53 +---
54 + daemon/meson.build | 1 -
55 + 1 file changed, 1 deletion(-)
56 +
57 +diff --git a/daemon/meson.build b/daemon/meson.build
58 +index dffeef3e..bdc506fe 100644
59 +--- a/daemon/meson.build
60 ++++ b/daemon/meson.build
61 +@@ -366,7 +366,6 @@ if enable_admin
62 + )
63 +
64 + i18n.merge_file(
65 +- policy,
66 + input: policy_in,
67 + output: '@BASENAME@',
68 + po_dir: po_dir,
69 +--
70 +2.34.1
71 +
72
73 diff --git a/gnome-base/gvfs/gvfs-1.48.1-r1.ebuild b/gnome-base/gvfs/gvfs-1.48.1-r1.ebuild
74 new file mode 100644
75 index 000000000000..38deee759bc2
76 --- /dev/null
77 +++ b/gnome-base/gvfs/gvfs-1.48.1-r1.ebuild
78 @@ -0,0 +1,152 @@
79 +# Copyright 1999-2022 Gentoo Authors
80 +# Distributed under the terms of the GNU General Public License v2
81 +
82 +EAPI=7
83 +
84 +TMPFILES_OPTIONAL=1
85 +inherit gnome.org gnome2-utils meson systemd tmpfiles xdg
86 +
87 +DESCRIPTION="Virtual filesystem implementation for GIO"
88 +HOMEPAGE="https://wiki.gnome.org/Projects/gvfs"
89 +
90 +LICENSE="LGPL-2+"
91 +SLOT="0"
92 +
93 +IUSE="afp archive bluray cdda elogind fuse google gnome-keyring gnome-online-accounts gphoto2 +http ios mtp nfs policykit samba systemd test +udev udisks zeroconf"
94 +RESTRICT="!test? ( test )"
95 +# elogind/systemd only relevant to udisks (in v1.38.1)
96 +REQUIRED_USE="
97 + ?? ( elogind systemd )
98 + cdda? ( udev )
99 + google? ( gnome-online-accounts )
100 + gphoto2? ( udev )
101 + mtp? ( udev )
102 + udisks? ( udev )
103 +"
104 +KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
105 +
106 +RDEPEND="
107 + >=dev-libs/glib-2.65.1:2
108 + >=gnome-base/gsettings-desktop-schemas-3.33.0
109 + afp? ( >=dev-libs/libgcrypt-1.2.2:0= )
110 + sys-apps/dbus
111 + app-crypt/gcr:=
112 + policykit? (
113 + >=sys-auth/polkit-0.114
114 + sys-libs/libcap
115 + )
116 + http? (
117 + dev-libs/libxml2:2
118 + >=net-libs/libsoup-2.58.0:2.4
119 + )
120 + zeroconf? ( >=net-dns/avahi-0.6[dbus] )
121 + udev? ( >=dev-libs/libgudev-147:= )
122 + fuse? (
123 + >=sys-fs/fuse-3.0.0:3
124 + virtual/tmpfiles
125 + )
126 + udisks? ( >=sys-fs/udisks-1.97:2 )
127 + systemd? ( >=sys-apps/systemd-206:0= )
128 + elogind? ( >=sys-auth/elogind-229:0= )
129 + ios? (
130 + >=app-pda/libimobiledevice-1.2:=
131 + >=app-pda/libplist-1:=
132 + )
133 + gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.17.1:= )
134 + gnome-keyring? ( app-crypt/libsecret )
135 + bluray? ( media-libs/libbluray:= )
136 + mtp? (
137 + virtual/libusb:1
138 + >=media-libs/libmtp-1.1.15
139 + )
140 + samba? ( >=net-fs/samba-4[client] )
141 + archive? ( app-arch/libarchive:= )
142 + cdda? (
143 + dev-libs/libcdio:0=
144 + >=dev-libs/libcdio-paranoia-0.78.2
145 + )
146 + google? ( >=dev-libs/libgdata-0.18.0:=[crypt,gnome-online-accounts] )
147 + gphoto2? ( >=media-libs/libgphoto2-2.5.0:= )
148 + nfs? ( >=net-fs/libnfs-1.9.8 )
149 + net-misc/openssh
150 +"
151 +DEPEND="${RDEPEND}"
152 +BDEPEND="
153 + dev-util/glib-utils
154 + app-text/docbook-xsl-stylesheets
155 + app-text/docbook-xml-dtd:4.2
156 + dev-libs/libxslt
157 + >=sys-devel/gettext-0.19.8
158 + virtual/pkgconfig
159 + dev-util/gdbus-codegen
160 + test? ( dev-libs/libgdata )
161 +"
162 +
163 +PATCHES=(
164 + "${FILESDIR}/meson-0.61.patch"
165 +)
166 +
167 +src_configure() {
168 + local enable_logind="false"
169 + if use systemd || use elogind; then
170 + enable_logind="true"
171 + fi
172 +
173 + local enable_gcrypt="false"
174 + if use afp; then # currently HAVE_GCRYPT and linkage only used with afp; check it on big bumps (grep for HAVE_GCRYPT and enable_gcrypt); adjust depends if changes
175 + enable_gcrypt="true"
176 + fi
177 +
178 + local enable_libusb="false"
179 + if use mtp; then # currently HAVE_LIBUSB and linkage only used with mtp; check it on big bumps (grep for HAVE_LIBUSB and enable_libusb); adjust depends if changes
180 + enable_libusb="true"
181 + fi
182 +
183 + local emesonargs=(
184 + -Dsystemduserunitdir="$(systemd_get_userunitdir)"
185 + -Dtmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d
186 + $(meson_use policykit admin)
187 + $(meson_use ios afc)
188 + $(meson_use afp)
189 + $(meson_use archive)
190 + $(meson_use cdda)
191 + $(meson_use zeroconf dnssd)
192 + $(meson_use gnome-online-accounts goa)
193 + $(meson_use google)
194 + $(meson_use gphoto2)
195 + $(meson_use http)
196 + $(meson_use mtp)
197 + $(meson_use nfs)
198 + -Dsftp=true
199 + $(meson_use samba smb)
200 + $(meson_use udisks udisks2)
201 + $(meson_use bluray)
202 + $(meson_use fuse)
203 + -Dgcr=true
204 + -Dgcrypt=${enable_gcrypt}
205 + $(meson_use udev gudev)
206 + $(meson_use gnome-keyring keyring)
207 + -Dlogind=${enable_logind}
208 + -Dlibusb=${enable_libusb}
209 + -Ddevel_utils=false # wouldn't install any of it as of 1.38.1; some tests need it, but they aren't automated tests in v1.38.1
210 + -Dinstalled_tests=false
211 + -Dman=true
212 + )
213 + meson_src_configure
214 +}
215 +
216 +pkg_postinst() {
217 + if use fuse; then
218 + tmpfiles_process gvfsd-fuse-tmpfiles.conf
219 + fi
220 +
221 + xdg_pkg_postinst
222 + gnome2_schemas_update
223 + gnome2_giomodule_cache_update
224 +}
225 +
226 +pkg_postrm() {
227 + xdg_pkg_postrm
228 + gnome2_schemas_update
229 + gnome2_giomodule_cache_update
230 +}
231
232 diff --git a/gnome-base/gvfs/gvfs-1.50.0.ebuild b/gnome-base/gvfs/gvfs-1.50.0.ebuild
233 new file mode 100644
234 index 000000000000..61a64ed1d03f
235 --- /dev/null
236 +++ b/gnome-base/gvfs/gvfs-1.50.0.ebuild
237 @@ -0,0 +1,149 @@
238 +# Copyright 1999-2022 Gentoo Authors
239 +# Distributed under the terms of the GNU General Public License v2
240 +
241 +EAPI=7
242 +
243 +TMPFILES_OPTIONAL=1
244 +inherit gnome.org gnome2-utils meson systemd tmpfiles xdg
245 +
246 +DESCRIPTION="Virtual filesystem implementation for GIO"
247 +HOMEPAGE="https://wiki.gnome.org/Projects/gvfs"
248 +
249 +LICENSE="LGPL-2+"
250 +SLOT="0"
251 +
252 +IUSE="afp archive bluray cdda elogind fuse google gnome-keyring gnome-online-accounts gphoto2 +http ios mtp nfs policykit samba systemd test +udev udisks zeroconf"
253 +RESTRICT="!test? ( test )"
254 +# elogind/systemd only relevant to udisks (in v1.38.1)
255 +REQUIRED_USE="
256 + ?? ( elogind systemd )
257 + cdda? ( udev )
258 + google? ( gnome-online-accounts )
259 + gphoto2? ( udev )
260 + mtp? ( udev )
261 + udisks? ( udev )
262 +"
263 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
264 +
265 +RDEPEND="
266 + >=dev-libs/glib-2.70.0:2
267 + >=gnome-base/gsettings-desktop-schemas-3.33.0
268 + afp? ( >=dev-libs/libgcrypt-1.2.2:0= )
269 + sys-apps/dbus
270 + app-crypt/gcr:=
271 + policykit? (
272 + >=sys-auth/polkit-0.114
273 + sys-libs/libcap
274 + )
275 + http? (
276 + dev-libs/libxml2:2
277 + >=net-libs/libsoup-3.0.0:3.0
278 + )
279 + zeroconf? ( >=net-dns/avahi-0.6[dbus] )
280 + udev? ( >=dev-libs/libgudev-147:= )
281 + fuse? (
282 + >=sys-fs/fuse-3.0.0:3
283 + virtual/tmpfiles
284 + )
285 + udisks? ( >=sys-fs/udisks-1.97:2 )
286 + systemd? ( >=sys-apps/systemd-206:0= )
287 + elogind? ( >=sys-auth/elogind-229:0= )
288 + ios? (
289 + >=app-pda/libimobiledevice-1.2:=
290 + >=app-pda/libplist-1:=
291 + )
292 + gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.17.1:= )
293 + gnome-keyring? ( app-crypt/libsecret )
294 + bluray? ( media-libs/libbluray:= )
295 + mtp? (
296 + virtual/libusb:1
297 + >=media-libs/libmtp-1.1.15
298 + )
299 + samba? ( >=net-fs/samba-4[client] )
300 + archive? ( app-arch/libarchive:= )
301 + cdda? (
302 + dev-libs/libcdio:0=
303 + >=dev-libs/libcdio-paranoia-0.78.2
304 + )
305 + google? ( >=dev-libs/libgdata-0.18.0:=[crypt,gnome-online-accounts] )
306 + gphoto2? ( >=media-libs/libgphoto2-2.5.0:= )
307 + nfs? ( >=net-fs/libnfs-1.9.8 )
308 + net-misc/openssh
309 +"
310 +DEPEND="${RDEPEND}"
311 +BDEPEND="
312 + dev-util/glib-utils
313 + app-text/docbook-xsl-stylesheets
314 + app-text/docbook-xml-dtd:4.2
315 + dev-libs/libxslt
316 + >=sys-devel/gettext-0.19.8
317 + virtual/pkgconfig
318 + dev-util/gdbus-codegen
319 + test? ( dev-libs/libgdata )
320 +"
321 +
322 +src_configure() {
323 + local enable_logind="false"
324 + if use systemd || use elogind; then
325 + enable_logind="true"
326 + fi
327 +
328 + local enable_gcrypt="false"
329 + if use afp; then # currently HAVE_GCRYPT and linkage only used with afp; check it on big bumps (grep for HAVE_GCRYPT and enable_gcrypt); adjust depends if changes
330 + enable_gcrypt="true"
331 + fi
332 +
333 + local enable_libusb="false"
334 + if use mtp; then # currently HAVE_LIBUSB and linkage only used with mtp; check it on big bumps (grep for HAVE_LIBUSB and enable_libusb); adjust depends if changes
335 + enable_libusb="true"
336 + fi
337 +
338 + local emesonargs=(
339 + -Dsystemduserunitdir="$(systemd_get_userunitdir)"
340 + -Dtmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d
341 + $(meson_use policykit admin)
342 + $(meson_use ios afc)
343 + $(meson_use afp)
344 + $(meson_use archive)
345 + $(meson_use cdda)
346 + $(meson_use zeroconf dnssd)
347 + $(meson_use gnome-online-accounts goa)
348 + $(meson_use google)
349 + $(meson_use gphoto2)
350 + $(meson_use http)
351 + $(meson_use mtp)
352 + $(meson_use nfs)
353 + -Dsftp=true
354 + $(meson_use samba smb)
355 + $(meson_use udisks udisks2)
356 + $(meson_use bluray)
357 + $(meson_use fuse)
358 + -Dgcr=true
359 + -Dgcrypt=${enable_gcrypt}
360 + $(meson_use udev gudev)
361 + $(meson_use gnome-keyring keyring)
362 + -Dlogind=${enable_logind}
363 + -Dlibusb=${enable_libusb}
364 + -Ddevel_utils=false # wouldn't install any of it as of 1.38.1; some tests need it, but they aren't automated tests in v1.38.1
365 + -Dinstalled_tests=false
366 + -Dman=true
367 + -Dprivileged_group=wheel
368 + )
369 + meson_src_configure
370 +}
371 +
372 +pkg_postinst() {
373 + if use fuse; then
374 + tmpfiles_process gvfsd-fuse-tmpfiles.conf
375 + fi
376 +
377 + xdg_pkg_postinst
378 + gnome2_schemas_update
379 + gnome2_giomodule_cache_update
380 +}
381 +
382 +pkg_postrm() {
383 + xdg_pkg_postrm
384 + gnome2_schemas_update
385 + gnome2_giomodule_cache_update
386 +}