Skip site navigation (1)Skip section navigation (2)
Date:      31 Mar 2003 15:19:39 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Joe Kelsey <joek@mail.flyingcroc.net>
Cc:        FreeBSD GNOME Users <gnome@freebsd.org>
Subject:   Re: ports/50482: gnome-session will not start on 4.8-RC, X 4.3,
Message-ID:  <1049141978.348.65.camel@gyros>
In-Reply-To: <3E8871B5.3080900@mail.flyingcroc.net>
References:  <200303311600.h2VG0Rcx058286@freefall.freebsd.org> <3E886E24.4050805@mail.flyingcroc.net> <3E8871B5.3080900@mail.flyingcroc.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-uF4NhtJQLA44UmiluYTQ
Content-Type: multipart/mixed; boundary="=-Jo80qIjJCMxbA93+yo2q"


--=-Jo80qIjJCMxbA93+yo2q
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2003-03-31 at 11:49, Joe Kelsey wrote:
> Joe Marcus Clarke wrote:
> > Actually, if gnome-session fails, so should all GTK+-2 apps.  Can you
> > xhost back any app?  Since you're getting the pango "Can't find fonts"
> > error, either the fonts-cache-1 files are empty or you can't read them.=
=20
> > Does GNOME work for root, BTW?
>=20
> My test setup is the following in /root/.xinitrc:
>=20
> #!/bin/sh
> truss gnome-session >/tmp/truss-sess 2>&1
>=20
> If I remove /root/.xinitrc, startx produces the expected result of the=20
> default three xterms with clock and whatever.  I still cannot start any=20
> gnome apps since none of the gnome infrastructure is running.
>=20
> You have seen the truss output.  Clearly, fontconfig is reading=20
> substantial font-cache files, as you can tell from the truss output.  If=20
> you haven't perused the truss output, maybe you should do so.  Notice=20
> the multiple reads of 16384 bytes at a time from various font cache=20
> files.  Clearly there are a number of non-empty font cache files.
>=20
> Also, *something* is preventing gdm2 from running on my systems.  X=20
> starts normally, but gdm dies.  I cannot tell where it dies.  I have no=20
> idea which of the multiple gdm forks is dying.  I do not know which fork=20
> to try to debug.  I do not know how to get gdm to print out any sort of=20
> meaningful error messages anywhere.  Setting the debug flag in gdm.conf=20
> produces completely useless syslog output.

The previous fontconfig diff I sent had a minor problem.  This one
should be better.  In my testing, it looks to be the answer to a lot of
problems.  I can delete all my fonts-cache files, and all my GTK+-2 apps
still work.  I couldn't do that in fontconfig-2.1.0.

Joe

>=20
> /Joe
>=20
--=20
PGP Key : http://www.marcuscom.com/pgp.asc



--=-Jo80qIjJCMxbA93+yo2q
Content-Disposition: attachment; filename=fontconfig.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-patch; name=fontconfig.diff; charset=ISO8859-1

diff -ruN fontconfig.orig/Makefile fontconfig/Makefile
--- fontconfig.orig/Makefile	Mon Mar 31 13:55:45 2003
+++ fontconfig/Makefile	Mon Mar 31 13:50:42 2003
@@ -6,11 +6,9 @@
 #
=20
 PORTNAME=3D	fontconfig
-PORTVERSION=3D	2.1
-PORTREVISION=3D	7
+PORTVERSION=3D	2.1.92
 CATEGORIES=3D	x11-fonts
-MASTER_SITES=3D	http://www.fontconfig.org/fontconfig/release/
-DISTNAME=3D	fcpackage.${PORTVERSION:S/./_/}
+MASTER_SITES=3D	http://nexp.cs.pdx.edu/fontconfig/release/
=20
 MAINTAINER=3D	gnome@FreeBSD.org
 COMMENT=3D	An XML-based font configuration API for X Windows
@@ -23,38 +21,147 @@
 USE_GMAKE=3D	yes
 PREFIX?=3D	${X11BASE}
 INSTALLS_SHLIB=3D	yes
-GNU_CONFIGURE=3D	yes
+USE_LIBTOOL=3D	yes
 USE_REINPLACE=3D	yes
+USE_GNOMENG=3D	yes
+USE_GNOME=3D	gnomehack
 CONFIGURE_ARGS=3D	--with-confdir=3D${PREFIX}/etc/fonts \
-		--with-expat=3D${LOCALBASE} \
+		--with-expat_includes=3D${LOCALBASE}/include \
+		--with-expat_lib=3D${LOCALBASE}/lib \
 		--with-default_fonts=3D${X11BASE}/lib/X11/fonts
 CONFIGURE_TARGET=3D	--target=3D${MACHINE_ARCH}-unknown-freebsd${OSREL}
-WRKSRC=3D	${WRKDIR}/${DISTNAME}/fontconfig
 MAKE_ENV=3D	LC_ALL=3DC
=20
-MAN1=3D		fc-cache.1 fc-list.1
-MAN3=3D		fontconfig.3
+MAN3=3D		FcAtomicCreate.3  \
+		FcAtomicDeleteNew.3  \
+		FcAtomicDestroy.3  \
+		FcAtomicLock.3  \
+		FcAtomicNewFile.3  \
+		FcAtomicOrigFile.3  \
+		FcAtomicReplaceOrig.3  \
+		FcAtomicUnlock.3  \
+		FcBlanksAdd.3  \
+		FcBlanksCreate.3  \
+		FcBlanksDestroy.3  \
+		FcBlanksIsMember.3  \
+		FcCharSetAddChar.3  \
+		FcCharSetCopy.3  \
+		FcCharSetCount.3  \
+		FcCharSetCreate.3  \
+		FcCharSetDestroy.3  \
+		FcCharSetEqual.3  \
+		FcCharSetFirstPage.3  \
+		FcCharSetHasChar.3  \
+		FcCharSetIntersect.3  \
+		FcCharSetIntersectCount.3  \
+		FcCharSetIsSubset.3  \
+		FcCharSetNextPage.3  \
+		FcCharSetSubtract.3  \
+		FcCharSetSubtractCount.3  \
+		FcCharSetUnion.3  \
+		FcConfigAppFontAddDir.3  \
+		FcConfigAppFontAddFile.3  \
+		FcConfigAppFontClear.3  \
+		FcConfigBuildFonts.3  \
+		FcConfigCreate.3  \
+		FcConfigDestroy.3  \
+		FcConfigFilename.3  \
+		FcConfigGetBlanks.3  \
+		FcConfigGetCache.3  \
+		FcConfigGetConfigDirs.3  \
+		FcConfigGetConfigFiles.3  \
+		FcConfigGetCurrent.3  \
+		FcConfigGetFontDirs.3  \
+		FcConfigGetFonts.3  \
+		FcConfigGetRescanInverval.3  \
+		FcConfigParseAndLoad.3  \
+		FcConfigSetCurrent.3  \
+		FcConfigSetRescanInverval.3  \
+		FcConfigSubstitute.3  \
+		FcConfigSubstituteWithPat.3  \
+		FcConfigUptoDate.3  \
+		FcDefaultSubstitute.3  \
+		FcDirCacheValid.3  \
+		FcDirSave.3  \
+		FcDirScan.3  \
+		FcFileScan.3  \
+		FcFontList.3  \
+		FcFontMatch.3  \
+		FcFontRenderPrepare.3  \
+		FcFontSetAdd.3  \
+		FcFontSetCreate.3  \
+		FcFontSetDestroy.3  \
+		FcFontSort.3  \
+		FcFreeTypeCharIndex.3  \
+		FcFreeTypeCharSet.3  \
+		FcFreeTypeQuery.3  \
+		FcGetVersion.3  \
+		FcInit.3  \
+		FcInitBringUptoDate.3  \
+		FcInitLoadConfig.3  \
+		FcInitLoadConfigAndFonts.3  \
+		FcInitReinitialize.3  \
+		FcMatrixCopy.3  \
+		FcMatrixEqual.3  \
+		FcMatrixInit.3  \
+		FcMatrixMultiply.3  \
+		FcMatrixRotate.3  \
+		FcMatrixScale.3  \
+		FcMatrixShear.3  \
+		FcNameConstant.3  \
+		FcNameGetConstant.3  \
+		FcNameGetObjectType.3  \
+		FcNameParse.3  \
+		FcNameRegisterConstants.3  \
+		FcNameRegisterObjectTypes.3  \
+		FcNameUnparse.3  \
+		FcNameUnregisterConstants.3  \
+		FcNameUnregisterObjectTypes.3  \
+		FcObjectSetAdd.3  \
+		FcObjectSetBuild.3  \
+		FcObjectSetCreate.3  \
+		FcObjectSetDestroy.3  \
+		FcPatternAdd-Type.3  \
+		FcPatternAdd.3  \
+		FcPatternAddWeak.3  \
+		FcPatternBuild.3  \
+		FcPatternCreate.3  \
+		FcPatternDel.3  \
+		FcPatternDestroy.3  \
+		FcPatternEqual.3  \
+		FcPatternEqualSubset.3  \
+		FcPatternGet-Type.3  \
+		FcPatternGet.3  \
+		FcPatternHash.3  \
+		FcPatternPrint.3  \
+		FcStrBasename.3  \
+		FcStrCmpIgnoreCase.3  \
+		FcStrCopy.3  \
+		FcStrCopyFilename.3  \
+		FcStrDirname.3  \
+		FcStrListCreate.3  \
+		FcStrListDone.3  \
+		FcStrListNext.3  \
+		FcStrSetAdd.3  \
+		FcStrSetAddFilename.3  \
+		FcStrSetCreate.3  \
+		FcStrSetDel.3  \
+		FcStrSetDestroy.3  \
+		FcStrSetMember.3  \
+		FcUcs4ToUtf8.3  \
+		FcUtf16Len.3  \
+		FcUtf16ToUcs4.3  \
+		FcUtf8Len.3  \
+		FcUtf8ToUcs4.3  \
+		FcValueDestroy.3  \
+		FcValueSave.3
+MAN5=3D		fonts-conf.5
=20
 .include <bsd.port.pre.mk>
 .if ${XFREE86_VERSION} =3D=3D 3
 MTREE_FILE=3D     /etc/mtree/BSD.x11.dist
 .else
 MTREE_FILE=3D     /etc/mtree/BSD.x11-4.dist
-.endif
-
-pre-patch:
-	@${REINPLACE_CMD} -e 's|[(]LIBDIR[)]/pkgconfig|(prefix)/libdata/pkgconfig=
|g' ${WRKSRC}/Makefile.in
-
-post-install:
-	@${INSTALL_DATA} ${WRKSRC}/src/fontconfig.man \
-		${PREFIX}/man/man3/fontconfig.3
-	@${INSTALL_DATA} ${WRKSRC}/fc-cache/fc-cache.man \
-		${PREFIX}/man/man1/fc-cache.1
-	@${INSTALL_DATA} ${WRKSRC}/fc-list/fc-list.man \
-		${PREFIX}/man/man1/fc-list.1
-.if !defined(PACKAGE_BUILDING)
-	@${LDCONFIG} -m ${PREFIX}/lib
-	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 .endif
=20
 .include <bsd.port.post.mk>
diff -ruN fontconfig.orig/distinfo fontconfig/distinfo
--- fontconfig.orig/distinfo	Mon Mar 31 13:55:45 2003
+++ fontconfig/distinfo	Mon Mar 31 13:18:54 2003
@@ -1 +1 @@
-MD5 (fcpackage.2_1.tar.gz) =3D 2f2852c80924a9b5356c3037a471c1a1
+MD5 (fontconfig-2.1.92.tar.gz) =3D bb804a692d6c1057ea2f456b6226e873
diff -ruN fontconfig.orig/files/patch-Makefile.in fontconfig/files/patch-Ma=
kefile.in
--- fontconfig.orig/files/patch-Makefile.in	Wed Dec 31 19:00:00 1969
+++ fontconfig/files/patch-Makefile.in	Mon Mar 31 13:53:21 2003
@@ -0,0 +1,27 @@
+--- Makefile.in.orig	Mon Mar 31 13:52:52 2003
++++ Makefile.in	Mon Mar 31 13:53:03 2003
+@@ -116,7 +116,7 @@
+=20
+ SUBDIRS =3D fontconfig fc-lang src fc-cache fc-list doc test
+=20
+-EXTRA_DIST =3D          fontconfig.pc.in         fonts.conf.in 	fonts.dtd=
 	local.conf         fontconfig.spec.in         fontconfig.spec
++EXTRA_DIST =3D          fontconfig.pc.in         fonts.conf.in 	fonts.dtd=
 	fontconfig.spec.in         fontconfig.spec
+=20
+=20
+ pkgconfigdir =3D $(libdir)/pkgconfig
+@@ -457,15 +457,6 @@
+=20
+=20
+ install-data-local:
+-	if [ -f $(DESTDIR)$(configdir)/local.conf ]; then \
+-	  echo "not overwriting existing $(DESTDIR)$(configdir)/local.conf"; \
+-	else if [ -f $(srcdir)/local.conf ]; then \
+-	  echo " $(INSTALL_DATA) $(srcdir)/local.conf $(DESTDIR)$(configdir)/loc=
al.conf"; \
+-	  $(INSTALL_DATA) $(srcdir)/local.conf $(DESTDIR)$(configdir)/local.conf=
; \
+-	else if [ -f local.conf ]; then \
+-	  echo " $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf"; =
\
+-	  $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf; \
+-	fi; fi; fi
+ 	if [ x$(DESTDIR) =3D x ]; then $(bindir)/fc-cache -f -v; fi
+=20
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
diff -ruN fontconfig.orig/files/patch-config_Makedefs.in fontconfig/files/p=
atch-config_Makedefs.in
--- fontconfig.orig/files/patch-config_Makedefs.in	Mon Mar 31 13:55:45 2003
+++ fontconfig/files/patch-config_Makedefs.in	Wed Dec 31 19:00:00 1969
@@ -1,11 +0,0 @@
---- config/Makedefs.in.orig	Sun Oct  6 16:43:39 2002
-+++ config/Makedefs.in	Sun Oct  6 16:43:47 2002
-@@ -65,7 +65,7 @@
- CFLAGS=3D$(CDEBUGFLAGS) @DEFS@ $(FCPATH_DEF) $(INCLUDES)
-=20
- LIBBASE=3Dlibfontconfig.so
--LIBFILE=3D$(LIBBASE).@PACKAGE_MAJOR@.@PACKAGE_MINOR@
-+LIBFILE=3D$(LIBBASE).@PACKAGE_MAJOR@
- LIBMAJOR=3D$(LIBBASE).@PACKAGE_MAJOR@
-=20
- LIBFONTCONFIG=3D-L$(SRCDIR) -lfontconfig
diff -ruN fontconfig.orig/files/patch-configure fontconfig/files/patch-conf=
igure
--- fontconfig.orig/files/patch-configure	Mon Mar 31 13:55:45 2003
+++ fontconfig/files/patch-configure	Mon Mar 31 13:31:46 2003
@@ -1,6 +1,14 @@
---- configure.orig	Thu Mar 13 17:21:08 2003
-+++ configure	Thu Mar 13 17:21:15 2003
-@@ -611,7 +611,7 @@
+--- configure.orig	Fri Mar  7 16:06:13 2003
++++ configure	Mon Mar 31 13:31:40 2003
+@@ -5452,6 +5452,7 @@
+=20
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS=3D"$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+=20
+ # Always use our own libtool.
+ LIBTOOL=3D'$(SHELL) $(top_builddir)/libtool'
+@@ -6402,7 +6403,7 @@
  # Check whether --with-default_fonts or --without-default_fonts was given=
.
  if test "${with_default_fonts+set}" =3D set; then
    withval=3D"$with_default_fonts"
diff -ruN fontconfig.orig/files/patch-fc-cvs fontconfig/files/patch-fc-cvs
--- fontconfig.orig/files/patch-fc-cvs	Mon Mar 31 13:55:45 2003
+++ fontconfig/files/patch-fc-cvs	Wed Dec 31 19:00:00 1969
@@ -1,212 +0,0 @@
---- fc-lang/fc-lang.c	2002/08/22 07:36:43	1.3
-+++ fc-lang/fc-lang.c	2002/12/14 02:03:58	1.4
-@@ -165,22 +165,38 @@ static int compare (const void *a, const
-     return FcStrCmpIgnoreCase (*as, *bs);
- }
-=20
-+#define MAX_LANG	    1024
-+#define MAX_LANG_SET_MAP    ((MAX_LANG + 31) / 32)
-+
-+#define BitSet(map, id)   ((map)[(id)>>5] |=3D ((FcChar32) 1 << ((id) & 0=
x1f)))
-+#define BitGet(map, id)   ((map)[(id)>>5] >> ((id) & 0x1f)) & 1)
-+
- int
- main (int argc, char **argv)
- {
--    char	*files[1024];
--    FcCharSet	*sets[1024];
--    int		duplicate[1024];
--    char	*names[1024];
-+    char	*files[MAX_LANG];
-+    FcCharSet	*sets[MAX_LANG];
-+    int		duplicate[MAX_LANG];
-+    int		country[MAX_LANG];
-+    char	*names[MAX_LANG];
-+    char	*langs[MAX_LANG];
-     FILE	*f;
-+    int		ncountry =3D 0;
-     int		i =3D 0;
-     FcCharLeaf	**leaves, **sleaves;
-     int		total_leaves =3D 0;
-     int		l, sl, tl;
-+    int		c;
-     char	line[1024];
-+    FcChar32	map[MAX_LANG_SET_MAP];
-+    int		num_lang_set_map;
-    =20
-     while (*++argv)
-+    {
-+	if (i =3D=3D MAX_LANG)
-+	    fatal (*argv, 0, "Too many languages");
- 	files[i++] =3D *argv;
-+    }
-     files[i] =3D 0;
-     qsort (files, i, sizeof (char *), compare);
-     i =3D 0;
-@@ -191,6 +207,10 @@ main (int argc, char **argv)
- 	    fatal (files[i], 0, strerror (errno));
- 	sets[i] =3D scan (f, files[i]);
- 	names[i] =3D get_name (files[i]);
-+	langs[i] =3D get_lang(names[i]);
-+	if (strchr (langs[i], '-'))
-+	    country[ncountry++] =3D i;
-+
- 	total_leaves +=3D sets[i]->num;
- 	i++;
- 	fclose (f);
-@@ -319,10 +339,54 @@ main (int argc, char **argv)
- 		"      { FC_REF_CONSTANT, %d, "
- 		"(FcCharLeaf **) leaves_%s, "
- 		"(FcChar16 *) numbers_%s } },\n",
--		get_lang(names[i]),
-+		langs[i],
- 		sets[j]->num, names[j], names[j]);
-     }
-     printf ("};\n\n");
-+    printf ("#define NUM_LANG_CHAR_SET	%d\n", i);
-+    num_lang_set_map =3D (i + 31) / 32;
-+    printf ("#define NUM_LANG_SET_MAP	%d\n", num_lang_set_map);
-+    /*
-+     * Dump indices with country codes
-+     */
-+    if (ncountry)
-+    {
-+	int	ncountry_ent =3D 0;
-+	printf ("\n");
-+	printf ("static const FcChar32 fcLangCountrySets[][NUM_LANG_SET_MAP] =3D=
 {\n");
-+	for (c =3D 0; c < ncountry; c++)
-+	{
-+	    i =3D country[c];
-+	    if (i >=3D 0)
-+	    {
-+		int l =3D strchr (langs[i], '-') - langs[i];
-+		int d, k;
-+
-+		for (k =3D 0; k < num_lang_set_map; k++)
-+		    map[k] =3D 0;
-+
-+		BitSet (map, i);
-+		for (d =3D c + 1; d < ncountry; d++)
-+		{
-+		    int j =3D country[d];
-+		    if (j >=3D 0 && !strncmp (langs[j], langs[i], l))
-+		    {
-+			BitSet(map, j);
-+			country[d] =3D -1;
-+		    }
-+		}
-+		printf ("    {");
-+		for (k =3D 0; k < num_lang_set_map; k++)
-+		    printf (" 0x%08x,", map[k]);
-+		printf (" }, /* %*.*s */\n",
-+			l, l, langs[i]);
-+		++ncountry_ent;
-+	    }
-+	}
-+	printf ("};\n\n");
-+	printf ("#define NUM_COUNTRY_SET %d\n", ncountry_ent);
-+    }
-+   =20
-     while (fgets (line, sizeof (line), stdin))
- 	fputs (line, stdout);
-    =20
---- src/fccfg.c	2002/08/31 22:17:32	1.23
-+++ src/fccfg.c	2002/12/21 02:31:53	1.24
-@@ -1141,7 +1141,11 @@ FcConfigSubstituteWithPat (FcConfig    *
- 		if ((t->kind =3D=3D FcMatchFont || kind =3D=3D FcMatchPattern) &&
- 		    !FcStrCmpIgnoreCase ((FcChar8 *) t->field,=20
- 					 (FcChar8 *) e->field))
-+		{
-+		    if (!st[i].elt)
-+			t =3D 0;
- 		    break;
-+		}
- 	    }
- 	    switch (e->op) {
- 	    case FcOpAssign:
---- src/fclang.c	2002/08/26 23:34:31	1.7
-+++ src/fclang.c	2002/12/14 02:03:59	1.8
-@@ -31,9 +31,6 @@ typedef struct {
-=20
- #include "../fc-lang/fclang.h"
-=20
--#define NUM_LANG_CHAR_SET   (sizeof (fcLangCharSets) / sizeof (fcLangChar=
Sets[0]))
--#define NUM_LANG_SET_MAP    ((NUM_LANG_CHAR_SET + 31) / 32)
--
- struct _FcLangSet {
-     FcChar32	map[NUM_LANG_SET_MAP];
-     FcStrSet	*extra;
-@@ -339,13 +336,21 @@ FcLangSetCompareStrSet (const FcLangSet=20
- FcLangResult
- FcLangSetCompare (const FcLangSet *lsa, const FcLangSet *lsb)
- {
--    int		    i;
-+    int		    i, j;
-     FcLangResult    best, r;
-=20
-     for (i =3D 0; i < NUM_LANG_SET_MAP; i++)
- 	if (lsa->map[i] & lsb->map[i])
- 	    return FcLangEqual;
-     best =3D FcLangDifferentLang;
-+    for (j =3D 0; j < NUM_COUNTRY_SET; j++)
-+	for (i =3D 0; i < NUM_LANG_SET_MAP; i++)
-+	    if ((lsa->map[i] & fcLangCountrySets[j][i]) &&
-+		(lsb->map[i] & fcLangCountrySets[j][i]))
-+	    {
-+		best =3D FcLangDifferentCountry;
-+		break;
-+	    }
-     if (lsa->extra)
-     {
- 	r =3D FcLangSetCompareStrSet (lsb, lsa->extra);
---- fc-lang/fclang.h	2002/10/21 17:03:47	1.20
-+++ fc-lang/fclang.h	2002/12/14 02:03:58	1.21
-@@ -3996,3 +3996,11 @@ static const FcLangCharSet  fcLangCharSe
-       { FC_REF_CONSTANT, 1, (FcCharLeaf **) leaves_fj, (FcChar16 *) numbe=
rs_fj } },
- };
-=20
-+#define NUM_LANG_CHAR_SET	175
-+#define NUM_LANG_SET_MAP	6
-+
-+static const FcChar32 fcLangCountrySets[][NUM_LANG_SET_MAP] =3D {
-+    { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00003=
e00, }, /* zh */
-+};
-+
-+#define NUM_COUNTRY_SET 1
---- fontconfig/fcprivate.h	2002/08/22 07:36:44	1.6
-+++ fontconfig/fcprivate.h	2002/12/04 10:28:03	1.7
-@@ -87,7 +87,7 @@ _FcPatternVapBuild_bail1:					    \
-     if (!orig)							    \
- 	FcPatternDestroy (__p__);				    \
- _FcPatternVapBuild_bail0:					    \
--    result =3D 0;							    \
-+    result =3D (void*)0;						    \
- 								    \
- _FcPatternVapBuild_return:					    \
-     ;								    \
---- src/fcstr.c	2002/08/31 22:17:32	1.10
-+++ src/fcstr.c	2002/12/14 01:59:38	1.11
-@@ -283,7 +283,7 @@ FcUtf16ToUcs4 (const FcChar8	*src_orig,
- 	if ((b & 0xfc00) !=3D 0xdc00)
- 	    return 0;
- 	result =3D ((((FcChar32) a & 0x3ff) << 10) |
--		  ((FcChar32) b & 0x3ff)) | 0x10000;
-+		  ((FcChar32) b & 0x3ff)) + 0x10000;
-     }
-     else
- 	result =3D a;
---- src/fontconfig.man	2002/10/02 07:11:30	1.7
-+++ src/fontconfig.man	2003/02/16 17:44:36	1.8
-@@ -1453,6 +1453,12 @@ match the available fonts.  It is in xml
-=20
- .B fonts.dtd=20
- is a DTD that describes the format of the configuration files.
-+
-+.B local.conf
-+is sourced by the default system-wide fonts.conf file.=20
-+Note that the normal 'make install' procedure for XFree86 is to
-+replace any existing fonts.conf file with the new version.  Place
-+any local customizations in local.conf which this file references.
-=20
- .B ~/.fonts.conf
- is the conventional location for per-user font configuration, although th=
e
diff -ruN fontconfig.orig/files/patch-fonts.conf.in fontconfig/files/patch-=
fonts.conf.in
--- fontconfig.orig/files/patch-fonts.conf.in	Mon Mar 31 13:55:45 2003
+++ fontconfig/files/patch-fonts.conf.in	Wed Dec 31 19:00:00 1969
@@ -1,10 +0,0 @@
---- fonts.conf.in.orig	Sun Oct  6 16:37:34 2002
-+++ fonts.conf.in	Sun Oct  6 16:37:41 2002
-@@ -21,7 +21,6 @@
- -->
-=20
- 	<dir>/usr/X11R6/lib/X11/fonts</dir>
-- 	<dir>/usr/share/fonts</dir>
- 	<dir>~/.fonts</dir>
-=20
- <!-- FONTPATH_END -->
diff -ruN fontconfig.orig/files/patch-src_Makefile.in fontconfig/files/patc=
h-src_Makefile.in
--- fontconfig.orig/files/patch-src_Makefile.in	Mon Mar 31 13:55:45 2003
+++ fontconfig/files/patch-src_Makefile.in	Wed Dec 31 19:00:00 1969
@@ -1,51 +0,0 @@
---- src/Makefile.in.orig	Sun Oct  6 23:23:09 2002
-+++ src/Makefile.in	Sun Oct  6 23:26:11 2002
-@@ -71,7 +71,7 @@
- .c.@OBJEXT@:
- 	$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) -c $< -o $@
- =09
--all:: $(LIBFILE) $(LIBMAJOR) $(LIBBASE)
-+all:: $(LIBFILE) $(LIBBASE)
-=20
- #=20
- # build the library and the various version links
-@@ -80,13 +80,9 @@
- 	rm -f $@
- 	$(MKSHLIB) $(OBJS) $(LIBS)
-=20
--$(LIBMAJOR): $(LIBFILE)
--	rm -f  $@
--	$(LN_S) $(LIBFILE) $(LIBMAJOR)
--
--$(LIBBASE): $(LIBMAJOR)
-+$(LIBBASE): $(LIBFILE)
- 	rm -f $@
--	$(LN_S) $(LIBMAJOR) $(LIBBASE)
-+	$(LN_S) $(LIBFILE) $(LIBBASE)
-=20
- $(OBJS): fcint.h $(HEADERS)
-=20
-@@ -102,19 +98,15 @@
- # install library
- #
-=20
--install:: $(DESTDIR)$(LIBDIR)/$(LIB) $(DESTDIR)$(LIBDIR)/$(LIBMAJOR)
-+install:: $(DESTDIR)$(LIBDIR)/$(LIBFILE)
- install:: $(DESTDIR)$(LIBDIR)/$(LIBBASE)
-=20
- $(DESTDIR)$(LIBDIR)/$(LIBFILE): $(LIBFILE)
- 	$(INSTALL_PROGRAM) $< $(DESTDIR)$(LIBDIR)/$<
-=20
--$(DESTDIR)$(LIBDIR)/$(LIBMAJOR): $(DESTDIR)$(LIBDIR)/$(LIBFILE)
--	rm -f $(DESTDIR)$(LIBDIR)/$(LIBMAJOR)
--	$(LN_S) $(LIBFILE) $(DESTDIR)$(LIBDIR)/$(LIBMAJOR)
--
--$(DESTDIR)$(LIBDIR)/$(LIBBASE): $(DESTDIR)$(LIBDIR)/$(LIBMAJOR)
-+$(DESTDIR)$(LIBDIR)/$(LIBBASE): $(DESTDIR)$(LIBDIR)/$(LIBFILE)
- 	rm -f $(DESTDIR)$(LIBDIR)/$(LIBBASE)
--	$(LN_S) $(LIBMAJOR) $(DESTDIR)$(LIBDIR)/$(LIBBASE)
-+	$(LN_S) $(LIBFILE) $(DESTDIR)$(LIBDIR)/$(LIBBASE)
-=20
- clean::
--	rm -f $(LIBFILE) $(LIBMAJOR) $(LIBBASE) $(OBJS)
-+	rm -f $(LIBFILE) $(LIBBASE) $(OBJS)
diff -ruN fontconfig.orig/files/patch-src_fccache.c fontconfig/files/patch-=
src_fccache.c
--- fontconfig.orig/files/patch-src_fccache.c	Wed Dec 31 19:00:00 1969
+++ fontconfig/files/patch-src_fccache.c	Mon Mar 31 13:17:53 2003
@@ -0,0 +1,38 @@
+--- src/fccache.c	2003/03/05 05:51:27	1.17
++++ src/fccache.c	2003/03/12 22:15:39	1.18
+@@ -309,14 +309,14 @@
+  * Verify the saved timestamp for a file
+  */
+ FcBool
+-FcGlobalCacheCheckTime (FcGlobalCacheInfo *info)
++FcGlobalCacheCheckTime (const FcChar8 *file, FcGlobalCacheInfo *info)
+ {
+     struct stat	    statb;
+=20
+-    if (stat ((char *) info->file, &statb) < 0)
++    if (stat ((char *) file, &statb) < 0)
+     {
+ 	if (FcDebug () & FC_DBG_CACHE)
+-	    printf (" file missing\n");
++	    printf (" file %s missing\n", file);
+ 	return FcFalse;
+     }
+     if (statb.st_mtime !=3D info->time)
+@@ -549,7 +549,7 @@
+      * See if the timestamp recorded in the global cache
+      * matches the directory time, if not, return False
+      */
+-    if (!FcGlobalCacheCheckTime (&d->info))
++    if (!FcGlobalCacheCheckTime (d->info.file, &d->info))
+     {
+ 	if (FcDebug () & FC_DBG_CACHE)
+ 	    printf ("\tdir cache entry time mismatch\n");
+@@ -633,7 +633,7 @@
+ 	}
+     }
+     if (count)
+-	*count =3D max;
++	*count =3D max + 1;
+     return match;
+ }
+    =20
diff -ruN fontconfig.orig/files/patch-src_fccfg.c fontconfig/files/patch-sr=
c_fccfg.c
--- fontconfig.orig/files/patch-src_fccfg.c	Wed Dec 31 19:00:00 1969
+++ fontconfig/files/patch-src_fccfg.c	Mon Mar 31 15:13:16 2003
@@ -0,0 +1,22 @@
+--- src/fccfg.c.orig	Mon Mar 31 15:11:28 2003
++++ src/fccfg.c	Mon Mar 31 15:12:06 2003
+@@ -1265,8 +1265,8 @@
+     return FcConfigSubstituteWithPat (config, p, 0, kind);
+ }
+=20
+-#ifndef FONTCONFIG_PATH
+-#define FONTCONFIG_PATH	"/etc/fonts"
++#ifndef CONFDIR
++#define CONFDIR	"/etc/fonts"
+ #endif
+=20
+ #ifndef FONTCONFIG_FILE
+@@ -1343,7 +1343,7 @@
+ 	}
+     }
+    =20
+-    dir =3D (FcChar8 *) FONTCONFIG_PATH;
++    dir =3D (FcChar8 *) CONFDIR;
+     path[i] =3D malloc (strlen ((char *) dir) + 1);
+     if (!path[i])
+ 	goto bail1;
diff -ruN fontconfig.orig/files/patch-src_fcdir.c fontconfig/files/patch-sr=
c_fcdir.c
--- fontconfig.orig/files/patch-src_fcdir.c	Wed Dec 31 19:00:00 1969
+++ fontconfig/files/patch-src_fcdir.c	Mon Mar 31 13:26:47 2003
@@ -0,0 +1,32 @@
+diff -u -r1.14 -r1.15
+--- src/fcdir.c	2003/03/05 05:51:27	1.14
++++ src/fcdir.c	2003/03/12 22:15:39	1.15
+@@ -70,7 +70,7 @@
+ 		/*
+ 		 * Found a cache entry for the file
+ 		 */
+-		if (FcGlobalCacheCheckTime (&cache_file->info))
++		if (FcGlobalCacheCheckTime (file, &cache_file->info))
+ 		{
+ 		    name =3D cache_file->name;
+ 		    need_scan =3D FcFalse;
+@@ -89,7 +89,8 @@
+ 						       strlen ((const char *) file),
+ 						       FcFalse)))
+ 	    {
+-		if (FcGlobalCacheCheckTime (&cache_dir->info))
++		if (FcGlobalCacheCheckTime (cache_dir->info.file,=20
++					    &cache_dir->info))
+ 		{
+ 		    font =3D 0;
+ 		    need_scan =3D FcFalse;
+@@ -199,6 +200,9 @@
+     strcat ((char *) file, "/");
+     base =3D file + strlen ((char *) file);
+    =20
++    if (FcDebug () & FC_DBG_SCAN)
++	printf ("\tScanning dir %s\n", dir);
++=09
+     d =3D opendir ((char *) dir);
+    =20
+     if (!d)
diff -ruN fontconfig.orig/files/patch-src_fcfreetype.c fontconfig/files/pat=
ch-src_fcfreetype.c
--- fontconfig.orig/files/patch-src_fcfreetype.c	Mon Mar 31 13:55:45 2003
+++ fontconfig/files/patch-src_fcfreetype.c	Wed Dec 31 19:00:00 1969
@@ -1,11 +0,0 @@
---- src/fcfreetype.c.orig	Fri Feb 28 10:44:26 2003
-+++ src/fcfreetype.c	Fri Feb 28 10:44:41 2003
-@@ -467,7 +467,7 @@
-     if (!FcPatternAddString (pat, FC_SOURCE, (FcChar8 *) "FreeType"))
- 	goto bail1;
-=20
--#if 1
-+#if 0
-     if ((face->face_flags & FT_FACE_FLAG_FIXED_WIDTH) !=3D 0)
- 	if (!FcPatternAddInteger (pat, FC_SPACING, FC_MONO))
- 	    goto bail1;
diff -ruN fontconfig.orig/files/patch-src_fcint.h fontconfig/files/patch-sr=
c_fcint.h
--- fontconfig.orig/files/patch-src_fcint.h	Wed Dec 31 19:00:00 1969
+++ fontconfig/files/patch-src_fcint.h	Mon Mar 31 13:25:42 2003
@@ -0,0 +1,12 @@
+diff -u -r1.33 -r1.34
+--- src/fcint.h	2003/03/05 05:52:31	1.33
++++ src/fcint.h	2003/03/12 22:15:39	1.34
+@@ -338,7 +338,7 @@
+ FcGlobalCacheDestroy (FcGlobalCache *cache);
+=20
+ FcBool
+-FcGlobalCacheCheckTime (FcGlobalCacheInfo *info);
++FcGlobalCacheCheckTime (const FcChar8*file, FcGlobalCacheInfo *info);
+=20
+ void
+ FcGlobalCacheReferenced (FcGlobalCache	    *cache,
diff -ruN fontconfig.orig/pkg-plist fontconfig/pkg-plist
--- fontconfig.orig/pkg-plist	Mon Mar 31 13:55:45 2003
+++ fontconfig/pkg-plist	Mon Mar 31 13:53:32 2003
@@ -1,13 +1,145 @@
 bin/fc-cache
 bin/fc-list
-bin/fontconfig-config
 etc/fonts/fonts.conf
 etc/fonts/fonts.dtd
 include/fontconfig/fcfreetype.h
 include/fontconfig/fcprivate.h
 include/fontconfig/fontconfig.h
+lib/libfontconfig.a
 lib/libfontconfig.so
 lib/libfontconfig.so.1
 libdata/pkgconfig/fontconfig.pc
+share/doc/fontconfig/fontconfig-devel.txt
+share/doc/fontconfig/fontconfig-devel/index.html
+share/doc/fontconfig/fontconfig-devel/r1016.html
+share/doc/fontconfig/fontconfig-devel/r1042.html
+share/doc/fontconfig/fontconfig-devel/r1064.html
+share/doc/fontconfig/fontconfig-devel/r1087.html
+share/doc/fontconfig/fontconfig-devel/r1111.html
+share/doc/fontconfig/fontconfig-devel/r1134.html
+share/doc/fontconfig/fontconfig-devel/r1159.html
+share/doc/fontconfig/fontconfig-devel/r1184.html
+share/doc/fontconfig/fontconfig-devel/r120.html
+share/doc/fontconfig/fontconfig-devel/r1209.html
+share/doc/fontconfig/fontconfig-devel/r1234.html
+share/doc/fontconfig/fontconfig-devel/r1259.html
+share/doc/fontconfig/fontconfig-devel/r1281.html
+share/doc/fontconfig/fontconfig-devel/r1306.html
+share/doc/fontconfig/fontconfig-devel/r1331.html
+share/doc/fontconfig/fontconfig-devel/r1356.html
+share/doc/fontconfig/fontconfig-devel/r1383.html
+share/doc/fontconfig/fontconfig-devel/r141.html
+share/doc/fontconfig/fontconfig-devel/r1414.html
+share/doc/fontconfig/fontconfig-devel/r1437.html
+share/doc/fontconfig/fontconfig-devel/r1460.html
+share/doc/fontconfig/fontconfig-devel/r1486.html
+share/doc/fontconfig/fontconfig-devel/r1515.html
+share/doc/fontconfig/fontconfig-devel/r1545.html
+share/doc/fontconfig/fontconfig-devel/r1575.html
+share/doc/fontconfig/fontconfig-devel/r1608.html
+share/doc/fontconfig/fontconfig-devel/r162.html
+share/doc/fontconfig/fontconfig-devel/r1629.html
+share/doc/fontconfig/fontconfig-devel/r1650.html
+share/doc/fontconfig/fontconfig-devel/r1672.html
+share/doc/fontconfig/fontconfig-devel/r1693.html
+share/doc/fontconfig/fontconfig-devel/r1715.html
+share/doc/fontconfig/fontconfig-devel/r1736.html
+share/doc/fontconfig/fontconfig-devel/r1758.html
+share/doc/fontconfig/fontconfig-devel/r1780.html
+share/doc/fontconfig/fontconfig-devel/r1802.html
+share/doc/fontconfig/fontconfig-devel/r1823.html
+share/doc/fontconfig/fontconfig-devel/r183.html
+share/doc/fontconfig/fontconfig-devel/r1847.html
+share/doc/fontconfig/fontconfig-devel/r1868.html
+share/doc/fontconfig/fontconfig-devel/r1890.html
+share/doc/fontconfig/fontconfig-devel/r1913.html
+share/doc/fontconfig/fontconfig-devel/r1936.html
+share/doc/fontconfig/fontconfig-devel/r1959.html
+share/doc/fontconfig/fontconfig-devel/r1980.html
+share/doc/fontconfig/fontconfig-devel/r2009.html
+share/doc/fontconfig/fontconfig-devel/r2034.html
+share/doc/fontconfig/fontconfig-devel/r204.html
+share/doc/fontconfig/fontconfig-devel/r2062.html
+share/doc/fontconfig/fontconfig-devel/r2099.html
+share/doc/fontconfig/fontconfig-devel/r2130.html
+share/doc/fontconfig/fontconfig-devel/r2157.html
+share/doc/fontconfig/fontconfig-devel/r2181.html
+share/doc/fontconfig/fontconfig-devel/r2207.html
+share/doc/fontconfig/fontconfig-devel/r2231.html
+share/doc/fontconfig/fontconfig-devel/r2255.html
+share/doc/fontconfig/fontconfig-devel/r228.html
+share/doc/fontconfig/fontconfig-devel/r2280.html
+share/doc/fontconfig/fontconfig-devel/r2304.html
+share/doc/fontconfig/fontconfig-devel/r2328.html
+share/doc/fontconfig/fontconfig-devel/r2350.html
+share/doc/fontconfig/fontconfig-devel/r2378.html
+share/doc/fontconfig/fontconfig-devel/r2399.html
+share/doc/fontconfig/fontconfig-devel/r2420.html
+share/doc/fontconfig/fontconfig-devel/r2443.html
+share/doc/fontconfig/fontconfig-devel/r2469.html
+share/doc/fontconfig/fontconfig-devel/r249.html
+share/doc/fontconfig/fontconfig-devel/r2491.html
+share/doc/fontconfig/fontconfig-devel/r2513.html
+share/doc/fontconfig/fontconfig-devel/r2535.html
+share/doc/fontconfig/fontconfig-devel/r2557.html
+share/doc/fontconfig/fontconfig-devel/r2579.html
+share/doc/fontconfig/fontconfig-devel/r2600.html
+share/doc/fontconfig/fontconfig-devel/r2621.html
+share/doc/fontconfig/fontconfig-devel/r2646.html
+share/doc/fontconfig/fontconfig-devel/r2682.html
+share/doc/fontconfig/fontconfig-devel/r270.html
+share/doc/fontconfig/fontconfig-devel/r2717.html
+share/doc/fontconfig/fontconfig-devel/r2745.html
+share/doc/fontconfig/fontconfig-devel/r2770.html
+share/doc/fontconfig/fontconfig-devel/r2791.html
+share/doc/fontconfig/fontconfig-devel/r2816.html
+share/doc/fontconfig/fontconfig-devel/r2841.html
+share/doc/fontconfig/fontconfig-devel/r2866.html
+share/doc/fontconfig/fontconfig-devel/r2892.html
+share/doc/fontconfig/fontconfig-devel/r2914.html
+share/doc/fontconfig/fontconfig-devel/r2936.html
+share/doc/fontconfig/fontconfig-devel/r295.html
+share/doc/fontconfig/fontconfig-devel/r2958.html
+share/doc/fontconfig/fontconfig-devel/r2983.html
+share/doc/fontconfig/fontconfig-devel/r3012.html
+share/doc/fontconfig/fontconfig-devel/r3037.html
+share/doc/fontconfig/fontconfig-devel/r3069.html
+share/doc/fontconfig/fontconfig-devel/r3102.html
+share/doc/fontconfig/fontconfig-devel/r3138.html
+share/doc/fontconfig/fontconfig-devel/r3161.html
+share/doc/fontconfig/fontconfig-devel/r3184.html
+share/doc/fontconfig/fontconfig-devel/r3209.html
+share/doc/fontconfig/fontconfig-devel/r323.html
+share/doc/fontconfig/fontconfig-devel/r3231.html
+share/doc/fontconfig/fontconfig-devel/r344.html
+share/doc/fontconfig/fontconfig-devel/r372.html
+share/doc/fontconfig/fontconfig-devel/r401.html
+share/doc/fontconfig/fontconfig-devel/r476.html
+share/doc/fontconfig/fontconfig-devel/r504.html
+share/doc/fontconfig/fontconfig-devel/r591.html
+share/doc/fontconfig/fontconfig-devel/r632.html
+share/doc/fontconfig/fontconfig-devel/r655.html
+share/doc/fontconfig/fontconfig-devel/r676.html
+share/doc/fontconfig/fontconfig-devel/r704.html
+share/doc/fontconfig/fontconfig-devel/r726.html
+share/doc/fontconfig/fontconfig-devel/r750.html
+share/doc/fontconfig/fontconfig-devel/r771.html
+share/doc/fontconfig/fontconfig-devel/r792.html
+share/doc/fontconfig/fontconfig-devel/r818.html
+share/doc/fontconfig/fontconfig-devel/r839.html
+share/doc/fontconfig/fontconfig-devel/r862.html
+share/doc/fontconfig/fontconfig-devel/r883.html
+share/doc/fontconfig/fontconfig-devel/r917.html
+share/doc/fontconfig/fontconfig-devel/r940.html
+share/doc/fontconfig/fontconfig-devel/r963.html
+share/doc/fontconfig/fontconfig-devel/r99.html
+share/doc/fontconfig/fontconfig-devel/r994.html
+share/doc/fontconfig/fontconfig-devel/x19.html
+share/doc/fontconfig/fontconfig-devel/x31.html
+share/doc/fontconfig/fontconfig-devel/x93.html
+share/doc/fontconfig/fontconfig-user.html
+share/doc/fontconfig/fontconfig-user.txt
+@dirrm share/doc/fontconfig/fontconfig-devel
+@dirrm share/doc/fontconfig
 @dirrm include/fontconfig
 @dirrm etc/fonts

--=-Jo80qIjJCMxbA93+yo2q--

--=-uF4NhtJQLA44UmiluYTQ
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQA+iKLab2iPiv4Uz4cRAjzSAJ9DgHnDbJRQSS1VrkY4zoujPksWDgCfckpl
roUq7oL7RtE1TcgF1FXoF8A=
=X0t5
-----END PGP SIGNATURE-----

--=-uF4NhtJQLA44UmiluYTQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1049141978.348.65.camel>