summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2007-09-16 06:21:05 +0000
committerRyan Hill <rhill@gentoo.org>2007-09-16 06:21:05 +0000
commit53e3f30903f664ff5ac98cb108c1bda7765fa25b (patch)
treeffc0b3700630aea5e80ee7677d1143ac51d21c33 /eclass/font.eclass
parentFixed ebuild type (see #192202). (diff)
downloadhistorical-53e3f30903f664ff5ac98cb108c1bda7765fa25b.tar.gz
historical-53e3f30903f664ff5ac98cb108c1bda7765fa25b.tar.bz2
historical-53e3f30903f664ff5ac98cb108c1bda7765fa25b.zip
Move permission checking to postinst/postrm, and check everything in /usr/share/fonts rather than just the current package.
Diffstat (limited to 'eclass/font.eclass')
-rw-r--r--eclass/font.eclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/font.eclass b/eclass/font.eclass
index 0c34d4ac135e..0e2efc241ef6 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.29 2007/09/16 02:20:05 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.30 2007/09/16 06:21:05 dirtyepic Exp $
# Author: foser <foser@gentoo.org>
@@ -84,8 +84,6 @@ font_src_install() {
for suffix in ${FONT_SUFFIX}; do
doins *.${suffix}
- # ensure fonts are world readable to prevent fontconfig segfaults
- chmod 0644 ${D}${FONTDIR}/*.${suffix}
done
rm -f fonts.{dir,scale} encodings.dir
@@ -110,6 +108,9 @@ font_pkg_setup() {
}
font_pkg_postinst() {
+ find /usr/share/fonts/ -type f \! -perm 0644 -print0 \
+ | xargs -0 chmod 0644 2&>/dev/null
+
if has_version '>=media-libs/fontconfig-2.4'; then
if [ ${ROOT} == "/" ]; then
ebegin "Updating global fontcache"
@@ -120,6 +121,9 @@ font_pkg_postinst() {
}
font_pkg_postrm() {
+ find /usr/share/fonts/ -type f \! -perm 0644 -print0 \
+ | xargs -0 chmod 0644 2&>/dev/null
+
if has_version '>=media-libs/fontconfig-2.4'; then
if [ ${ROOT} == "/" ]; then
ebegin "Updating global fontcache"