From owner-freebsd-desktop@FreeBSD.ORG Tue Feb 28 15:06:38 2012 Return-Path: Delivered-To: freebsd-desktop@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8371A106564A; Tue, 28 Feb 2012 15:06:38 +0000 (UTC) (envelope-from rflynn@acsalaska.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 13D068FC0A; Tue, 28 Feb 2012 15:06:38 +0000 (UTC) Received: from [127.0.0.1] (squeeze.lan.rachie.is-a-geek.net [192.168.2.30]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 3087D7E854; Tue, 28 Feb 2012 06:06:35 -0900 (AKST) Message-ID: <4F4CED84.5060407@acsalaska.net> Date: Tue, 28 Feb 2012 16:06:44 +0100 From: Mel Flynn User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Alberto Villa References: <20120120065141.GM4729@azathoth.lan> <201202281314.13503.avilla@freebsd.org> <4F4CDD40.1030906@acsalaska.net> <201202281515.26594.avilla@freebsd.org> In-Reply-To: <201202281515.26594.avilla@freebsd.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-desktop@freebsd.org Subject: Re: What about improving the desktop ports consistency: task 1, the fonts X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 15:06:38 -0000 On 2/28/2012 15:15, Alberto Villa wrote: > On Tuesday 28 February 2012 14:57:20 Mel Flynn wrote: >> So the unexec is executed before the font is removed? The unexec > makes >> sense if executed after the .ttf is removed. > > I think it's executed *after* fonts removal. > >> The cache should be updated >> then and if a directory tree is used by multiple ports this should >> effectively remove only the uninstalled font from the cache, while >> preserving the other fonts. So the unexec should be there for this case: >> >> ./TTF/myport.ttf >> ./TTF/otherport/otherport.ttf > > I've tried running `fc-cache -sv` on an empty font directory, but the cache > wasn't updated (grepping /var/db/fontconfig for the file name returned a > result, and running `fc-cache -v` with no directories removed that matching > cache file), so I fail to see any effect of this invocation. But what does fc-list give you? There's more then one way to delete something, one of them being marking "as deleted". Bit swamped atm, but I can do some testing in a few hours, including what the default directory is for "fonts in $HOME". -- Mel