Gentoo Archives: gentoo-dev

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] new eclass: xdg and xdg-utils as a replacement for fdo-mime
Date: Wed, 10 Jun 2015 14:13:02
Message-Id: 1433945563.29775.14.camel@gentoo.org
1 This is an attempt to fix bug #208047 [1] and bug #444568 [2]
2
3 Current fdo-mime eclass is often not used when it should be. I suppose
4 this is partly because one has to think too much about whether it is
5 needed or not and what to do with the functions.
6
7 The proposed solution is to not have to worry about it and just inherit
8 it when you have any kind of XDG specifications support and let the
9 exported phases do their job in a similar fashion to the gnome
10 eclasses.
11
12 For now, this covers .desktop and shared mime-info files and creating
13 base directory for packages that rely on it one way or another.
14
15 This helps solve problems like bug #545128 [3] and others that have
16 been covered by previous work resulting in gnome2_environment_reset
17 function and similar in other eclasses (cmake-utils, gstreamer, kde4
18 -base, mono, mono-env, qt4-*).
19
20
21 [1] [Bug 208047] fdo-mime.eclass should depend on desktop-file-utils
22 https://bugs.gentoo.org/show_bug.cgi?id=208047
23
24 [2] [Bug 444568] [Future EAPI] Export XDG_* variables in ebuild
25 environment
26 https://bugs.gentoo.org/show_bug.cgi?id=444568
27
28 [3] [Bug 545128] media-sound/pulseaudio-6.0 XDG_RUNTIME_DIR
29 (/run/user/1000) is not owned by us (uid 0)
30 https://bugs.gentoo.org/show_bug.cgi?id=545128
31
32 --
33 Gilles Dartiguelongue <eva@g.o>
34 Gentoo

Attachments

File name MIME type
xdg.eclass text/plain
xdg-utils.eclass text/plain
signature.asc application/pgp-signature

Replies