1 |
dirtyepic 07/09/16 07:07:52 |
2 |
|
3 |
Modified: font.eclass |
4 |
Log: |
5 |
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. |
6 |
|
7 |
Revision Changes Path |
8 |
1.31 eclass/font.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font.eclass?rev=1.31&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font.eclass?rev=1.31&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/font.eclass?r1=1.30&r2=1.31 |
13 |
|
14 |
Index: font.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/font.eclass,v |
17 |
retrieving revision 1.30 |
18 |
retrieving revision 1.31 |
19 |
diff -u -r1.30 -r1.31 |
20 |
--- font.eclass 16 Sep 2007 06:21:05 -0000 1.30 |
21 |
+++ font.eclass 16 Sep 2007 07:07:52 -0000 1.31 |
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.30 2007/09/16 06:21:05 dirtyepic Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.31 2007/09/16 07:07:52 dirtyepic Exp $ |
27 |
|
28 |
# Author: foser <foser@g.o> |
29 |
|
30 |
@@ -108,8 +108,15 @@ |
31 |
} |
32 |
|
33 |
font_pkg_postinst() { |
34 |
- find /usr/share/fonts/ -type f \! -perm 0644 -print0 \ |
35 |
- | xargs -0 chmod 0644 2&>/dev/null |
36 |
+ # unreadable font files = fontconfig segfaults |
37 |
+ badperms="$( find /usr/share/fonts/ -type f \! -perm 0644 -print )" |
38 |
+ if [[ -n ${badperms} ]]; then |
39 |
+ echo |
40 |
+ for fontfile in ${badperms}; do |
41 |
+ ewarn $( chmod -v 0644 ${fontfile} ) |
42 |
+ done |
43 |
+ echo |
44 |
+ fi |
45 |
|
46 |
if has_version '>=media-libs/fontconfig-2.4'; then |
47 |
if [ ${ROOT} == "/" ]; then |
48 |
@@ -121,8 +128,15 @@ |
49 |
} |
50 |
|
51 |
font_pkg_postrm() { |
52 |
- find /usr/share/fonts/ -type f \! -perm 0644 -print0 \ |
53 |
- | xargs -0 chmod 0644 2&>/dev/null |
54 |
+ # unreadable font files = fontconfig segfaults |
55 |
+ badperms="$( find /usr/share/fonts/ -type f \! -perm 0644 -print )" |
56 |
+ if [[ -n ${badperms} ]]; then |
57 |
+ echo |
58 |
+ for fontfile in ${badperms}; do |
59 |
+ ewarn $( chmod -v 0644 ${fontfile} ) |
60 |
+ done |
61 |
+ echo |
62 |
+ fi |
63 |
|
64 |
if has_version '>=media-libs/fontconfig-2.4'; then |
65 |
if [ ${ROOT} == "/" ]; then |
66 |
|
67 |
|
68 |
|
69 |
-- |
70 |
gentoo-commits@g.o mailing list |