From owner-freebsd-gnome@FreeBSD.ORG Sat Aug 17 19:45:29 2013 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 09A6A95E; Sat, 17 Aug 2013 19:45:29 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-pd0-x233.google.com (mail-pd0-x233.google.com [IPv6:2607:f8b0:400e:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CF4272868; Sat, 17 Aug 2013 19:45:28 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id v10so3458241pde.38 for ; Sat, 17 Aug 2013 12:45:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=PHwFkusedcSouLU1n17/ey5CEtga4xfuaNRldYbX4yE=; b=iNXAn2Zk9WzfhbTteRnRMdOt/mybAURx0qHWB02tDWy3pNSqvSENBiNzmq016PUafp a0H7ajutYbUB7uvMX0EqkcDaozdiv1S5rTCGwIdWOg8WDk8JGsChTPQmgRxneeccx/o3 WUH93PuHPwMzCZiBmeyfsqqYAjQCBwMZQ098TeEB4lWD2ufVIoHfKOAY834QoUhMJPS5 i8dH8NyHzHD53CoWDGTr24jKotfRV54TwJPwpMtV5xi2UoKju/SigNhE2VDxCwqGdvmW 2bdTcJexe20F5XZ6sNSLfIgyVX6Ao7kCai4heGyt/jrDR2kwZHe3nAZSmmCktDFBKtwf pRRg== MIME-Version: 1.0 X-Received: by 10.68.106.36 with SMTP id gr4mr4468899pbb.0.1376768728012; Sat, 17 Aug 2013 12:45:28 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.67.14.66 with HTTP; Sat, 17 Aug 2013 12:45:27 -0700 (PDT) In-Reply-To: <20130817180056.GA70018@troutmask.apl.washington.edu> References: <20130812192745.GA80894@troutmask.apl.washington.edu> <20130817114412.44885d21@kalimero.tijl.coosemans.org> <20130817163929.GA69757@troutmask.apl.washington.edu> <20130817180056.GA70018@troutmask.apl.washington.edu> Date: Sat, 17 Aug 2013 12:45:27 -0700 X-Google-Sender-Auth: KdSVK6LB5xE5JT2k5RIXOYqHRpQ Message-ID: Subject: Re: fontconfig madness From: Kevin Oberman To: Steve Kargl Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD GNOME Users , Tijl Coosemans , FreeBSD Ports ML X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2013 19:45:29 -0000 On Sat, Aug 17, 2013 at 11:00 AM, Steve Kargl < sgk@troutmask.apl.washington.edu> wrote: > On Sat, Aug 17, 2013 at 10:02:24AM -0700, Kevin Oberman wrote: > > On Sat, Aug 17, 2013 at 9:39 AM, Steve Kargl < > > sgk@troutmask.apl.washington.edu> wrote: > > > > > On Sat, Aug 17, 2013 at 11:44:12AM +0200, Tijl Coosemans wrote: > > > > On Mon, 12 Aug 2013 12:27:45 -0700 Steve Kargl wrote: > > > > > I upgraded my freebsd-current system to revision 254098 > > > > > and followed this by deleting all installed ports except > > > > > pkg. After rebuilding all ports, it seems fontconfig has > > > > > lost it mind (or someone made a chnage to where fontconfig > > > > > thinks it should cache fonts). Every time I run acroread8 > > > > > to view a pdf file, acroread8 creates a new fontconfig/ > > > > > in the CWD instead of using ~/.fontconfig. How do I (un)fix > > > > > whatever was changed? > > > > > > > > > > I seem to have the most up-to-date ports. > > > > > > > > > > % pkg info | grep fontconf > > > > > fontconfig-2.10.93,1 An XML-based font configuration API > for > > > X Windows > > > > > linux-f10-fontconfig-2.6.0 An XML-based font configuration API > for > > > X Windows (Linux Fedora 10) > > > > > % pkg version -vl '<' | grep fontconfig > > > > > > > > I see this too with every linux program that uses fontconfig. > > > > > > After a few hours of poking around, I've believe that I've > > > narrowed the issue down to a decision by the developers of > > > fontconfig to deprecate the default location ~/.fontconfig. > > > I added a /usr/local/etc/fonts/local.conf, which contains > > > > > > .fontconfig > > > > > > to recover the old behavior > > > > > > > Steve, > > > > It seems like the term "madness" is entirely appropriate to such a > change. > > Is there a commit log that you have found indicating that ti was > > deliberate? I am at a loss as to why such a change would be made. (I am > > also at a loss, even after reading all of the discussion, on why Mozilla > > decided to remove the "automatically load images" preference checkbox, so > > I'm not ruling anything out.) > > > > I can't find the site where I got this impression of the deprecation. > It seems that freetype2 wants to enforce the layout from XDG base > directory specification. If one looks in /usr/local/etc/fonts/fonts.conf, > one sees > > > > /var/db/fontconfig > fontconfig > > ~/.fontconfig > > AFAICT, that future is now. > > -- > Steve > Ahh. I found it and it looks like the behavior you are seeing is not intended. *$XDG_CACHE_HOME/fontconfig/*.cache-** and * ~/.fontconfig/*.cache-** is the conventional repository of font information that isn't found in the per-directory caches. This file is automatically maintained by fontconfig. please note that ~/.fontconfig/*.cache-* is deprecated now. it will not be read by default in the future version. fontconfig now assumes that users have an *$XDG_CACHE_HOME *where it will keep its cache. I'm guessing that the conversion has not happened in FreeBSD because the version of Gnome is older than this change, so when it does not find it, it uses the cwd. I assume that XDG_CACHE_HOME should be in .local, but it is not getting defined. This really should be fixed, one way or another. (Your way works, but getting the newer, preferred directory defined is probably the right answer. -- R. Kevin Oberman, Network Engineer E-mail: rkoberman@gmail.com