dev-libs/glib: fix GIO module cache file ownership and cross-compilation
authorMart Raudsepp <leio@gentoo.org>
Tue, 28 Mar 2017 13:32:33 +0000 (16:32 +0300)
committerMart Raudsepp <leio@gentoo.org>
Tue, 28 Mar 2017 13:33:21 +0000 (16:33 +0300)
commit0bd3df485ff4afda075d8872614c0ab04e1dfd1c
tree1ec7abce616fe5911dd8eb95666ea83f0e8147ec
parent8b91958c36169e41b9281979eb2faa07eb753bab
dev-libs/glib: fix GIO module cache file ownership and cross-compilation

Bug 518422 tried to fix module cache file ownership to glib, but the ebuild
changes missed /modules path and used $libdir/gio/ instead of $libdir/gio/modules

While cross-compiling, we can't generate the cache file, so we shouldn't
die out either. Instead of removing the die, rework it all to not do any
of it while cross-compiling, because we'd end up with an empty glib owned
cache file, which could result in no modules working at all as a cache
file is present from the preinst touch.

Gentoo-bug: 518422
Gentoo-bug: 613306
Thanks-to: Alexis Ballier <aballier@gentoo.org>
dev-libs/glib/glib-2.50.3-r1.ebuild [new file with mode: 0644]