commit: b973a74b41a709e48d7d3c707bfb7c0b104321df Author: David Michael <fedora.dm0 <AT> gmail <DOT> com> AuthorDate: Tue Dec 8 23:00:10 2020 +0000 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> CommitDate: Fri Dec 18 22:00:05 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b973a74b
dev-libs/glib: drop redundant cross-compiled cache check This test was moved to gnome2-utils.eclass so other packages can have the same behavior when cross-compiling. Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: David Michael <fedora.dm0 <AT> gmail.com> Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> dev-libs/glib/glib-2.62.6.ebuild | 9 +-------- dev-libs/glib/glib-2.64.5.ebuild | 9 +-------- dev-libs/glib/glib-2.66.2.ebuild | 9 +-------- dev-libs/glib/glib-2.66.3.ebuild | 9 +-------- 4 files changed, 4 insertions(+), 32 deletions(-) diff --git a/dev-libs/glib/glib-2.62.6.ebuild b/dev-libs/glib/glib-2.62.6.ebuild index 57adaa59054..654ff3b9d44 100644 --- a/dev-libs/glib/glib-2.62.6.ebuild +++ b/dev-libs/glib/glib-2.62.6.ebuild @@ -250,14 +250,7 @@ pkg_postinst() { gnome2_giomodule_cache_update \ || die "Update GIO modules cache failed (for ${ABI})" } - if ! tc-is-cross-compiler ; then - multilib_foreach_abi multilib_pkg_postinst - else - ewarn "Updating of GIO modules cache skipped due to cross-compilation." - ewarn "You might want to run gio-querymodules manually on the target for" - ewarn "your final image for performance reasons and re-run it when packages" - ewarn "installing GIO modules get upgraded or added to the image." - fi + multilib_foreach_abi multilib_pkg_postinst } pkg_postrm() { diff --git a/dev-libs/glib/glib-2.64.5.ebuild b/dev-libs/glib/glib-2.64.5.ebuild index 0f1b0aee616..6e3a6137257 100644 --- a/dev-libs/glib/glib-2.64.5.ebuild +++ b/dev-libs/glib/glib-2.64.5.ebuild @@ -257,14 +257,7 @@ pkg_postinst() { gnome2_giomodule_cache_update \ || die "Update GIO modules cache failed (for ${ABI})" } - if ! tc-is-cross-compiler ; then - multilib_foreach_abi multilib_pkg_postinst - else - ewarn "Updating of GIO modules cache skipped due to cross-compilation." - ewarn "You might want to run gio-querymodules manually on the target for" - ewarn "your final image for performance reasons and re-run it when packages" - ewarn "installing GIO modules get upgraded or added to the image." - fi + multilib_foreach_abi multilib_pkg_postinst for v in ${REPLACING_VERSIONS}; do if ver_test "$v" "-lt" "2.63.6"; then diff --git a/dev-libs/glib/glib-2.66.2.ebuild b/dev-libs/glib/glib-2.66.2.ebuild index c7debe737f8..af3ca09f98b 100644 --- a/dev-libs/glib/glib-2.66.2.ebuild +++ b/dev-libs/glib/glib-2.66.2.ebuild @@ -259,14 +259,7 @@ pkg_postinst() { gnome2_giomodule_cache_update \ || die "Update GIO modules cache failed (for ${ABI})" } - if ! tc-is-cross-compiler ; then - multilib_foreach_abi multilib_pkg_postinst - else - ewarn "Updating of GIO modules cache skipped due to cross-compilation." - ewarn "You might want to run gio-querymodules manually on the target for" - ewarn "your final image for performance reasons and re-run it when packages" - ewarn "installing GIO modules get upgraded or added to the image." - fi + multilib_foreach_abi multilib_pkg_postinst for v in ${REPLACING_VERSIONS}; do if ver_test "$v" "-lt" "2.63.6"; then diff --git a/dev-libs/glib/glib-2.66.3.ebuild b/dev-libs/glib/glib-2.66.3.ebuild index 10400fd0dd1..6d419aa86b6 100644 --- a/dev-libs/glib/glib-2.66.3.ebuild +++ b/dev-libs/glib/glib-2.66.3.ebuild @@ -259,14 +259,7 @@ pkg_postinst() { gnome2_giomodule_cache_update \ || die "Update GIO modules cache failed (for ${ABI})" } - if ! tc-is-cross-compiler ; then - multilib_foreach_abi multilib_pkg_postinst - else - ewarn "Updating of GIO modules cache skipped due to cross-compilation." - ewarn "You might want to run gio-querymodules manually on the target for" - ewarn "your final image for performance reasons and re-run it when packages" - ewarn "installing GIO modules get upgraded or added to the image." - fi + multilib_foreach_abi multilib_pkg_postinst for v in ${REPLACING_VERSIONS}; do if ver_test "$v" "-lt" "2.63.6"; then