xserver: Branch 'master'

Keith Packard keithp at kemper.freedesktop.org
Sat Mar 22 14:06:36 PDT 2014


 configure.ac |   17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

New commits:
commit 99bee6c0549b36ef15f625bab3997cbd70c7b879
Author: Gaetan Nadon <memsize at videotron.ca>
Date:   Fri Jan 17 09:54:01 2014 -0500

    Default font path: remove the check for ${sysconfdir}/X11/fontpath.d
    
    The location ${sysconfdir}/X11/fontpath.d is unknown at configuration time
    (only at make time) as evidenced by the configuration output:
    
        checking for ${prefix}/etc/X11/fontpath.d... no
    
    Unlike font-util for the X fonts, there is no mechanism to query where
    fontpath.d is. Fedora have chosen /etc/X11 and others have followed, but this
    is not a standard. It might also be installed at another location, it may or may
    not be under the xserver installation prefix. We just don't know. Debian does
    not use this at all.
    
    Distros are using --with-default-path when they support fontpath.d, so they
    never relied on the server default as it never worked.
    
    The patch essentially is a noop, which leaves the door open for anyone who
    could potentially provide a reliable implementation of choosing fontpath.d
    when applicable.
    
    Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
    Signed-off-by: Keith Packard <keithp at keithp.com>

diff --git a/configure.ac b/configure.ac
index 749fa84..20c080c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -491,17 +491,14 @@ XORG_FONTSUBDIR(FONTTYPE1DIR, fonttype1dir, Type1)
 XORG_FONTSUBDIR(FONT75DPIDIR, font75dpidir, 75dpi)
 XORG_FONTSUBDIR(FONT100DPIDIR, font100dpidir, 100dpi)
 
-dnl Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d,
-dnl otherwise uses standard subdirectories of FONTROOTDIR. When cross
-dnl compiling, assume default font path uses standard FONTROOTDIR directories.
+dnl Uses --with-default-font-path if set, otherwise uses standard
+dnl subdirectories of FONTROOTDIR. Some distros set the default font path to
+dnl "catalogue:/etc/X11/fontpath.d,built-ins"
 DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
-if test "$cross_compiling" != yes; then
-	AC_CHECK_FILE([${sysconfdir}/X11/fontpath.d],
-		[DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'],
-		[case $host_os in
-			darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
-		esac])
-fi
+case $host_os in
+    darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
+esac
+
 AC_ARG_WITH(default-font-path, AS_HELP_STRING([--with-default-font-path=PATH], [Comma separated list of font dirs]),
 				[ FONTPATH="$withval" ],
 				[ FONTPATH="${DEFAULT_FONT_PATH}" ])


More information about the xorg-commit mailing list