From b17cf498be69f483e6355ae468f7239165df3ffb Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Fri, 24 Mar 2006 15:21:10 +0000 Subject: [PATCH] Fix multiarch support (don't destroy multiarch files!) Require pkg-config. (Thanks Behdad; better solution wanted for libxml2 detection!) reviewed by: plam --- ChangeLog | 12 ++++++++++++ configure.in | 2 ++ fonts.conf.in | 7 ++++++- src/fccache.c | 3 ++- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3d8e30c..04fb67b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2006-03-24 Mike Fabian + reviewed by: plam + * src/fccache.c (FcGlobalCacheLoad, FcCacheSkipToArch): + + Fix multiarch support (don't destroy multiarch files!) + +2006-03-24 Patrick Lam + * configure.in: + + Require pkg-config. (Thanks Behdad; + better solution wanted for libxml2 detection!) + 2006-03-22 Patrick Lam * src/fcatomic.c: diff --git a/configure.in b/configure.in index f33ecc4..26fd05b 100644 --- a/configure.in +++ b/configure.in @@ -306,6 +306,8 @@ fi AC_ARG_ENABLE(libxml2, [ --enable-libxml2 Use libxml2 instead of Expat]) +PKG_PROG_PKG_CONFIG + if test "$enable_libxml2" = "yes" -o "$expat" = "no"; then PKG_CHECK_MODULES([LIBXML2], [libxml-2.0 >= 2.6]) AC_DEFINE_UNQUOTED(ENABLE_LIBXML2,1,[Use libxml2 instead of Expat]) diff --git a/fonts.conf.in b/fonts.conf.in index c9014f8..2ff162a 100644 --- a/fonts.conf.in +++ b/fonts.conf.in @@ -72,6 +72,7 @@ Serif faces --> + DejaVu Serif Bitstream Vera Serif Times New Roman Thorndale AMT @@ -91,6 +92,7 @@ Sans-serif faces --> + DejaVu Sans Bitstream Vera Sans Helvetica Arial @@ -112,7 +114,7 @@ Monospace faces --> - Bitstream Vera Sans Mono + DejaVu Sans Mono Courier Courier New Andale Mono @@ -260,6 +262,7 @@ serif + DejaVu Serif Bitstream Vera Serif Times New Roman Thorndale AMT @@ -279,6 +282,7 @@ sans-serif + DejaVu Sans Bitstream Vera Sans Verdana Arial @@ -300,6 +304,7 @@ monospace + DejaVu Sans Mono Bitstream Vera Sans Mono Andale Mono Courier New diff --git a/src/fccache.c b/src/fccache.c index 2a2ac8a..aefba02 100644 --- a/src/fccache.c +++ b/src/fccache.c @@ -206,7 +206,7 @@ FcGlobalCacheLoad (FcGlobalCache *cache, current_arch_start = FcCacheSkipToArch(cache->fd, current_arch_machine_name); if (current_arch_start < 0) - goto bail_and_destroy; + goto bail1; lseek (cache->fd, current_arch_start, SEEK_SET); if (!FcCacheReadString (cache->fd, candidate_arch_machine_name, @@ -643,6 +643,7 @@ FcCacheSkipToArch (int fd, const char * arch) if (strcmp (candidate_arch, arch)==0) return current_arch_start; current_arch_start += bs; + current_arch_start = FcCacheNextOffset (current_arch_start); } return -1; -- 2.39.5