gnome-base/dconf: add back env.d to not break conf if gconf present
authorMart Raudsepp <leio@gentoo.org>
Sun, 8 Sep 2019 16:49:41 +0000 (19:49 +0300)
committerMart Raudsepp <leio@gentoo.org>
Sun, 8 Sep 2019 16:51:12 +0000 (19:51 +0300)
Needed for the CONFIG_PROTECT_MASK at least, but also still
for GSETTINGS_BACKEND setting, because gnome-base/gconf sets it
to gconf in /etc/env.d/50gconf, thus until gconf still sets it,
we have to set it in dconf too to override it in the higher
numbered env.d entry.

Package-Manager: Portage-2.3.69, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
gnome-base/dconf/dconf-0.32.0-r1.ebuild [moved from gnome-base/dconf/dconf-0.32.0.ebuild with 77% similarity]

similarity index 77%
rename from gnome-base/dconf/dconf-0.32.0.ebuild
rename to gnome-base/dconf/dconf-0.32.0-r1.ebuild
index 2175d3f9748dceacf1a5fc7d4c9758b57793f4b2..8e9d9a0257d79a63f5bbff94d1e4b91dd85260a4 100644 (file)
@@ -42,6 +42,20 @@ src_configure() {
        meson_src_configure
 }
 
+src_install() {
+       meson_src_install
+
+       # GSettings backend may be one of: memory, gconf, dconf
+       # Only dconf is really considered functional by upstream
+       # must have it enabled over gconf if both are installed
+       # This snippet can't be removed until gconf package is
+       # ensured to not install a /etc/env.d/50gconf and then
+       # still consider the CONFIG_PROTECT_MASK bit.
+       echo 'CONFIG_PROTECT_MASK="/etc/dconf"' >> 51dconf
+       echo 'GSETTINGS_BACKEND="dconf"' >> 51dconf
+       doenvd 51dconf
+}
+
 src_test() {
        virtx meson_src_test
 }