From owner-freebsd-x11@FreeBSD.ORG Thu Feb 2 19:25:11 2006 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3FA116A420; Thu, 2 Feb 2006 19:25:11 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05A8F43D46; Thu, 2 Feb 2006 19:25:10 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from [10.2.1.15] (vpn-client-15.marcuscom.com [10.2.1.15]) by creme-brulee.marcuscom.com (8.13.4/8.13.4) with ESMTP id k12JPVTf048947; Thu, 2 Feb 2006 14:25:31 -0500 (EST) (envelope-from marcus@marcuscom.com) Message-ID: <43E25CA1.3000200@marcuscom.com> Date: Thu, 02 Feb 2006 14:25:21 -0500 From: Joe Marcus Clarke Organization: MarcusCom, Inc. User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Dejan Lesjak References: <20060202161851.GA29539@xor.obsecurity.org> <200602021744.01452.dejan.lesjak@ijs.si> <1138901747.8738.7.camel@shumai.marcuscom.com> <200602021859.27460.dejan.lesjak@ijs.si> In-Reply-To: <200602021859.27460.dejan.lesjak@ijs.si> X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on creme-brulee.marcuscom.com Cc: gnome@freebsd.org, freebsd-x11@freebsd.org, Kris Kennaway Subject: Re: [ports-i386@FreeBSD.org: gtk-2.8.11 failed on i386 6] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2006 19:25:11 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dejan Lesjak wrote: > On Thursday 02 February 2006 18:35, Joe Marcus Clarke wrote: >> On Thu, 2006-02-02 at 17:43 +0100, Dejan Lesjak wrote: >>> [fontconfig maintainers cced] >>> >>> On Thursday 02 February 2006 17:18, Kris Kennaway wrote: >>>> This failure is caused by the following files left in the directory >>>> after xorg-font-encodings has been removed: >>>> >>>> -rw-r--r-- 1 root wheel 17 Feb 1 19:53 >>>> /usr/X11R6/lib/X11/fonts/encodings/fonts.cache-1 -rw-r--r-- 1 root >>>> wheel 0 Feb 1 19:53 >>>> /usr/X11R6/lib/X11/fonts/encodings/large/fonts.cache-1 >>>> >>>> These are then removed by fontconfig, but nothing cleans up the >>>> directories. What should be doing that? >>> Interesting question. fontencodings don't create fonts.cache-1, but it >>> will probably be easier and less messy if they remove them so they can >>> also remove directories. Can it be assumed that fontconfig is present at >>> the time fontencodings are uninstalled? >> Not necessarily. fontconfig is only a build dependency of >> xorg-font-encodings. Therefore, you could remove fontconfig, and keep >> encodings around. > > Oh. The thing is that it's easy to check if encodings/large/fonts.cache-1 is > empty and remove it in that case. On the other hand encodings/fonts.cache-1 > contains the line pointing to "large" subdir so I was thinking of first > removing encodings/large/fonts.cache-1 if it is empty, then encodings/large > directory, then running fc-cache on encodings and remove > encodings/fonts.cache-1 if it's empty. If fc-config is not present some > parsing will be necessary... > Is there a way fc-cache could ignore encodings subdirectory? > >> The strange thing is that fontconfig removes all >> fonts.cache-1 files under /usr/X11R6/lib/X11/fonts upon deinstallation. > > Perhaps generating and removing cache files should be made responsibility of > fonts ports? IIRC quite some of them handle it already. That could also avoid > running fc-cache with default settings thus avoiding fonts.cache-1 files > under encodings. This is doable. I could remove the cache generation and cleaning code from fontconfig once all font ports have been updated to run fc-cache themselves. This would require all font ports to depend on fontconfig, though. Joe - -- PGP Key : http://www.marcuscom.com/pgp.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD4lyHb2iPiv4Uz4cRAvuJAJ45lEpJLzWMgx299GEGAp3lHDRFnQCfQJqM yrAmIfG80bdkriXXqxp9Apc= =rKpx -----END PGP SIGNATURE-----