1 |
dirtyepic 07/09/16 06:21:05 |
2 |
|
3 |
Modified: font.eclass |
4 |
Log: |
5 |
Move permission checking to postinst/postrm, and check everything in /usr/share/fonts rather than just the current package. |
6 |
|
7 |
Revision Changes Path |
8 |
1.30 eclass/font.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font.eclass?rev=1.30&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font.eclass?rev=1.30&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font.eclass?r1=1.29&r2=1.30 |
13 |
|
14 |
Index: font.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/font.eclass,v |
17 |
retrieving revision 1.29 |
18 |
retrieving revision 1.30 |
19 |
diff -u -r1.29 -r1.30 |
20 |
--- font.eclass 16 Sep 2007 02:20:05 -0000 1.29 |
21 |
+++ font.eclass 16 Sep 2007 06:21:05 -0000 1.30 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.29 2007/09/16 02:20:05 dirtyepic Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.30 2007/09/16 06:21:05 dirtyepic Exp $ |
27 |
|
28 |
# Author: foser <foser@g.o> |
29 |
|
30 |
@@ -84,8 +84,6 @@ |
31 |
|
32 |
for suffix in ${FONT_SUFFIX}; do |
33 |
doins *.${suffix} |
34 |
- # ensure fonts are world readable to prevent fontconfig segfaults |
35 |
- chmod 0644 ${D}${FONTDIR}/*.${suffix} |
36 |
done |
37 |
|
38 |
rm -f fonts.{dir,scale} encodings.dir |
39 |
@@ -110,6 +108,9 @@ |
40 |
} |
41 |
|
42 |
font_pkg_postinst() { |
43 |
+ find /usr/share/fonts/ -type f \! -perm 0644 -print0 \ |
44 |
+ | xargs -0 chmod 0644 2&>/dev/null |
45 |
+ |
46 |
if has_version '>=media-libs/fontconfig-2.4'; then |
47 |
if [ ${ROOT} == "/" ]; then |
48 |
ebegin "Updating global fontcache" |
49 |
@@ -120,6 +121,9 @@ |
50 |
} |
51 |
|
52 |
font_pkg_postrm() { |
53 |
+ find /usr/share/fonts/ -type f \! -perm 0644 -print0 \ |
54 |
+ | xargs -0 chmod 0644 2&>/dev/null |
55 |
+ |
56 |
if has_version '>=media-libs/fontconfig-2.4'; then |
57 |
if [ ${ROOT} == "/" ]; then |
58 |
ebegin "Updating global fontcache" |
59 |
|
60 |
|
61 |
|
62 |
-- |
63 |
gentoo-commits@g.o mailing list |