From owner-freebsd-x11@FreeBSD.ORG Tue Dec 28 00:50:39 2004 Return-Path: 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 B22D716A4CE for ; Tue, 28 Dec 2004 00:50:39 +0000 (GMT) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id C501543D1F for ; Tue, 28 Dec 2004 00:50:38 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd03.aul.t-online.de by mailout11.sul.t-online.com with smtp id 1Cj5ZN-0007xS-02; Tue, 28 Dec 2004 01:50:37 +0100 Received: from Andro-Beta.Leidinger.net (TF+vcaZdreSw0ih-vBgCbcom2vVb-4eYOrGxlfnFZo77CwzZFz6aZB@[217.229.220.138]) by fmrl03.sul.t-online.com with esmtp id 1Cj5ZK-1aoshk0; Tue, 28 Dec 2004 01:50:34 +0100 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) iBS0oJCq076804; Tue, 28 Dec 2004 01:50:19 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Tue, 28 Dec 2004 01:50:47 +0100 From: Alexander Leidinger To: Kris Kennaway Message-ID: <20041228015047.0f3682e3@Magellan.Leidinger.net> In-Reply-To: <20041227183345.GA39024@xor.obsecurity.org> References: <20041226004746.GA82340@xor.obsecurity.org> <20041226132456.30ba0626@Magellan.Leidinger.net> <20041226151701.GB14852@xor.obsecurity.org> <20041226205407.47db9c72@Magellan.Leidinger.net> <20041227183345.GA39024@xor.obsecurity.org> X-Mailer: Sylpheed-Claws 0.9.13 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ID: TF+vcaZdreSw0ih-vBgCbcom2vVb-4eYOrGxlfnFZo77CwzZFz6aZB@t-dialin.net X-TOI-MSGID: bebd7879-dba6-4277-8b5c-30cb5e64fc42 cc: x11@freebsd.org Subject: What does fc-cache do? (was: Re: [ports-i386@FreeBSD.org: linux-pango-1.2.1_2 failed on i386 4-exp]) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2004 00:50:39 -0000 On Mon, 27 Dec 2004 10:33:45 -0800 Kris Kennaway wrote: [x11@ CCed] > On Sun, Dec 26, 2004 at 08:54:07PM +0100, Alexander Leidinger wrote: > > On Sun, 26 Dec 2004 07:17:01 -0800 > > Kris Kennaway wrote: > > > > > > > /compat/linux/usr/bin/fc-cache: "/root/.fonts": no such directory, skipping > > > > > /compat/linux/usr/bin/fc-cache: succeeded > > > > > > > > There are no font directories. We get them from the FreeBSD install of > > > > X11. Since we don't depend upon the FreeBSD X11 bits, we don't get them. > > > > > > > > Should I let it depends upon some fonts (and if yes, on which ones), or > > > > should I assume an user which needs linux X11 bits already has the > > > > FreeBSD X11 bits installed (the fc-cache run is in the pkg-install > > > > script)? > > > > > > Probably we should depend on the FreeBSD X11 fonts here, otherwise > > > this won't work well by default > > > > I don't think we can do that. The X11 fonts have a dependency upon > > xorg-clients and xorg-libraries (and some more). I think we should > > depend upon common sense (why should we install a linux port which > > depends upon X11 before we installed the FreeBSD X11). It may not a very > > good dependency, but for most of the cases it should be ok, and we don't > > need to rework the FreeBSD X11 font handling so close before the freeze. > > It needs to be carefully tested. For example, this might happen by > accident if someone installs packages from sysinstall (l comes before > x, so the packages might get installed first). I thought a little bit about this issue (someone at x11@ should correct me if something doesn't work as expected): Running the FreeBSD fc-cache program should be enough (it creates the fonts.cache-1 files). I don't think we need to run the linux fc-cache program (maybe we should remove the run of fc-cache when we install the linux-fontconfig port). I can't identify something else the fc-cache program does than creating the fonts.cache-1 files, at least the man-page doesn't mentions more. Since nobody will be able to run a linux X11 program without an X server, and since fonts are a server side issue (at least they where the last time I looked at this topic), we should be on the safe side to not depend upon any fonts on the linux side. BTW: not all font ports run fc-cache: grep -R fc-cache /usr/ports/x11-fonts | grep -v fontconfig [non x11@ issue follows] > I'm not sure how the linux ld works: maybe it automatically checks > those directories at runtime, so rerunning ldconfig is not necessary > as it is on FreeBSD. If it doesn't check them automatically, the pango-querymodules program will not run. Bye, Alexander. -- Yes, I've heard of "decaf." What's your point? http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7