summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2007-09-16 07:07:52 +0000
committerRyan Hill <rhill@gentoo.org>2007-09-16 07:07:52 +0000
commite93659641c5293d4b635257b159aa70ccea094ba (patch)
treeee9a944e4defde6fc1c1dd8e5e1fdb20faeeb681 /eclass/font.eclass
parentRestoring ~arch keywords (bug #183736). (diff)
downloadhistorical-e93659641c5293d4b635257b159aa70ccea094ba.tar.gz
historical-e93659641c5293d4b635257b159aa70ccea094ba.tar.bz2
historical-e93659641c5293d4b635257b159aa70ccea094ba.zip
Hopefully the last permission handling change - now reports when changing a file's permissions, emulates chmod -c, and is all pretty-like. Thanks to dberkholz for the suggestion.
Diffstat (limited to 'eclass/font.eclass')
-rw-r--r--eclass/font.eclass24
1 files changed, 19 insertions, 5 deletions
diff --git a/eclass/font.eclass b/eclass/font.eclass
index 0e2efc241ef6..190ebaf8daee 100644
--- a/eclass/font.eclass
+++ b/eclass/font.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.30 2007/09/16 06:21:05 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.31 2007/09/16 07:07:52 dirtyepic Exp $
# Author: foser <foser@gentoo.org>
@@ -108,8 +108,15 @@ font_pkg_setup() {
}
font_pkg_postinst() {
- find /usr/share/fonts/ -type f \! -perm 0644 -print0 \
- | xargs -0 chmod 0644 2&>/dev/null
+ # unreadable font files = fontconfig segfaults
+ badperms="$( find /usr/share/fonts/ -type f \! -perm 0644 -print )"
+ if [[ -n ${badperms} ]]; then
+ echo
+ for fontfile in ${badperms}; do
+ ewarn $( chmod -v 0644 ${fontfile} )
+ done
+ echo
+ fi
if has_version '>=media-libs/fontconfig-2.4'; then
if [ ${ROOT} == "/" ]; then
@@ -121,8 +128,15 @@ font_pkg_postinst() {
}
font_pkg_postrm() {
- find /usr/share/fonts/ -type f \! -perm 0644 -print0 \
- | xargs -0 chmod 0644 2&>/dev/null
+ # unreadable font files = fontconfig segfaults
+ badperms="$( find /usr/share/fonts/ -type f \! -perm 0644 -print )"
+ if [[ -n ${badperms} ]]; then
+ echo
+ for fontfile in ${badperms}; do
+ ewarn $( chmod -v 0644 ${fontfile} )
+ done
+ echo
+ fi
if has_version '>=media-libs/fontconfig-2.4'; then
if [ ${ROOT} == "/" ]; then