Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/postinstall update do_fontconfig() to update all th...
details: https://anonhg.NetBSD.org/src/rev/536d1aadeabc
branches: trunk
changeset: 787217:536d1aadeabc
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Jun 06 07:06:42 2013 +0000
description:
update do_fontconfig() to update all the conf.avail files. fixes
errors that xkbcomp spews when the X server starts since fontconfig
was updated.
diffstat:
usr.sbin/postinstall/postinstall | 44 +++++++++++++++++++++++++++++++++++++--
1 files changed, 41 insertions(+), 3 deletions(-)
diffs (64 lines):
diff -r 9701c62e8996 -r 536d1aadeabc usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall Thu Jun 06 06:48:25 2013 +0000
+++ b/usr.sbin/postinstall/postinstall Thu Jun 06 07:06:42 2013 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postinstall,v 1.149 2013/05/21 12:07:03 prlw1 Exp $
+# $NetBSD: postinstall,v 1.150 2013/06/06 07:06:42 mrg Exp $
#
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -818,12 +818,50 @@
op="$1"
failed=0
+ # First, check for updates we can handle.
+ populate_dir "$op" false "${SRC_DIR}/etc/fonts/conf.avail" "${DEST_DIR}/etc/fonts/conf.avail" 444 \
+ 10-autohint.conf \
+ 10-no-sub-pixel.conf \
+ 10-scale-bitmap-fonts.conf \
+ 10-sub-pixel-bgr.conf \
+ 10-sub-pixel-rgb.conf \
+ 10-sub-pixel-vbgr.conf \
+ 10-sub-pixel-vrgb.conf \
+ 10-unhinted.conf \
+ 11-lcdfilter-default.conf \
+ 11-lcdfilter-legacy.conf \
+ 11-lcdfilter-light.conf \
+ 20-unhint-small-vera.conf \
+ 25-unhint-nonlatin.conf \
+ 30-metric-aliases.conf \
+ 30-urw-aliases.conf \
+ 40-nonlatin.conf \
+ 45-latin.conf \
+ 49-sansserif.conf \
+ 50-user.conf \
+ 51-local.conf \
+ 60-latin.conf \
+ 65-fonts-persian.conf \
+ 65-khmer.conf \
+ 65-nonlatin.conf \
+ 69-unifont.conf \
+ 70-no-bitmaps.conf \
+ 70-yes-bitmaps.conf \
+ 80-delicious.conf \
+ 90-synthetic.conf
+ failed=$(( ${failed} + $? ))
+
+ # We can't modify conf.d easily; someone might have removed a file.
+
+ conf_d_failed=0
+ # Look for old files that need to be deleted.
if [ -f "${DEST_DIR}/etc/fonts/conf.d/10-unhinted.conf" -a \
-f "${DEST_DIR}/etc/fonts/conf.d/10-autohint.conf" ]; then
- failed=1
+ conf_d_failed=1
+ failed=$(( ${failed} + 1 ))
fi
- if [ "$failed" = 1 ]; then
+ if [ "$conf_d_failed" = 1 ]; then
msg \
"Broken fontconfig configuration found; please delete these files"
msg \
Home |
Main Index |
Thread Index |
Old Index