From 27f7ac2204449d9fc2137f442522b4fb10327d90 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 19 Oct 2022 07:57:57 +0100 Subject: gentoo auto-resync : 19:10:2022 - 07:57:56 --- eclass/Manifest.gz | Bin 37489 -> 37493 bytes eclass/font.eclass | 8 +++++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index 395abedfd847..8d8d0da0c692 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ diff --git a/eclass/font.eclass b/eclass/font.eclass index 83636ac3fed5..4970c959f7cd 100644 --- a/eclass/font.eclass +++ b/eclass/font.eclass @@ -186,9 +186,11 @@ font_src_install() { # @DESCRIPTION: # Updates fontcache if !prefix and media-libs/fontconfig installed _update_fontcache() { - # unreadable font files = fontconfig segfaults - find "${EROOT}"/usr/share/fonts/ -type f '!' -perm 0644 \ - -exec chmod -v 0644 2>/dev/null {} + || die "failed to fix font files perms" + if [[ -d "${EROOT}"/usr/share/fonts ]] ; then + # unreadable font files = fontconfig segfaults + find "${EROOT}"/usr/share/fonts/ -type f '!' -perm 0644 \ + -exec chmod -v 0644 2>/dev/null {} + || die "failed to fix font files perms" + fi if [[ -z ${ROOT} ]] ; then if has_version media-libs/fontconfig ; then -- cgit v1.2.3