From owner-freebsd-x11@FreeBSD.ORG Sun Dec 26 17:56:11 2010 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 110121065673 for ; Sun, 26 Dec 2010 17:56:11 +0000 (UTC) (envelope-from steve@mouf.net) Received: from mouf.net (mouf.net [204.109.58.86]) by mx1.freebsd.org (Postfix) with ESMTP id A4CEB8FC0A for ; Sun, 26 Dec 2010 17:56:10 +0000 (UTC) Received: from meatwad.mouf.net (cpe-065-190-178-041.nc.res.rr.com [65.190.178.41]) (authenticated bits=0) by mouf.net (8.14.4/8.14.4) with ESMTP id oBQHfd8N086863 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT) for ; Sun, 26 Dec 2010 12:41:43 -0500 (EST) (envelope-from steve@mouf.net) Message-ID: <4D177E53.6010308@mouf.net> Date: Sun, 26 Dec 2010 12:41:39 -0500 From: Steve Wills User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101213 Thunderbird/3.0.11 MIME-Version: 1.0 To: freebsd-x11@freebsd.org X-Enigmail-Version: 1.0.1 Content-Type: multipart/mixed; boundary="------------000007030604030301010806" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mouf.net [204.109.58.86]); Sun, 26 Dec 2010 12:41:44 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.2 at mouf.net X-Virus-Status: Clean Subject: fc-cache usage 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: Sun, 26 Dec 2010 17:56:11 -0000 This is a multi-part message in MIME format. --------------000007030604030301010806 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I was looking for ways to speed up fc-cache and created the attached trivial patch. It changes the fc-cache invocation during package install to add the -s flag, so that it searches for system fonts only, which seems appropriate for pkg install time. This may provide a very minor speed up of package installation. My main goal is to speed up my ports tinderbox which at times seems to spend a good bit of time updating font caches during package installation. Thanks, Steve -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNF35TAAoJEPXPYrMgexuhZvsH/14XefceCSkDWQ9gEE2v6J4L acoYcreuJ62UwKYR+mRcUcE0+UyC2Z/B2FLEW9UKhJUxSKVDDlwke3jyloCfIlwL q0URI0Mw8vRUdqVCuAWjl0UyktBpRVl6xHpB971lYWGrBIOD+LQZuNw5X/6/Lpq6 HVdW0zGioGDfht0In3aNu6g7fT+tJQ7pEZ+Pz2M9lopq+Nd1wFOjjt+gLn7jvqQu K6+VdlRx4HgecwmlaDWCis7RbwIWmAlTDqcXwWPPmPiUa2/TZxONQ+wee37AIxjz VkNYi/dCWYgeCyP/NoDdRybnKLesdXQz5qoVyQ05qXTL5hm56KmhZIfpC/Fj3VU= =Vuvv -----END PGP SIGNATURE----- --------------000007030604030301010806 Content-Type: text/plain; name="bsd.xorg.mk_patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bsd.xorg.mk_patch.txt" --- bsd.xorg.mk.orig 2010-12-23 22:02:11.296150453 -0500 +++ bsd.xorg.mk 2010-12-23 22:02:40.606121663 -0500 @@ -101,8 +101,8 @@ post-install: . if ${INSTALLS_TTF} == "yes" . for _fontdir in ${FONTDIR} - @${ECHO_CMD} "@exec fc-cache -v %D/lib/X11/fonts/${_fontdir} 2>/dev/null || true" >> ${TMPPLIST} - @${ECHO_CMD} "@unexec fc-cache -v %D/lib/X11/fonts/${_fontdir} 2>/dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@exec fc-cache -s -v %D/lib/X11/fonts/${_fontdir} 2>/dev/null || true" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec fc-cache -s -v %D/lib/X11/fonts/${_fontdir} 2>/dev/null || true" >> ${TMPPLIST} @${ECHO_CMD} "@unexec rmdir %D/lib/X11/fonts/${_fontdir} 2>/dev/null || true" >> ${TMPPLIST} . endfor . endif --------------000007030604030301010806 Content-Type: application/octet-stream; name="bsd.xorg.mk_patch.txt.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bsd.xorg.mk_patch.txt.sig" iQEcBAABAgAGBQJNF35TAAoJEPXPYrMgexuhnF4IAJwTA/0Q0CFgOBDCwSx/4vxZd9r2Mxbz NM2CaVLFDc6uBtLD1iyPU5fGEMQYKmNzdemciUCsEoQNUJ/0F20JFwIzOLJ4Wq/wSTyo7Xkt HSvC+d7AAN4JM97UHUd7EiNRZoqwXw/Um3xxYPZPz150Q9anYayf0MM7DxnAxQMNrK87PvS2 TGsYrTJVOfIMOQVZC6bepthx5F4rd7r4Qo/plhgyNiY8vQODLAM37ywGe+1jb6aN71HqdJdT 6JD82tPkgRoiNkAGSy/MuoGa1MKL4zGhRdg+RGRRAK1c57M/wOI/Ur7T2FMAJeWlvlkKQ08T vlMd83oPVl70tYgEK2doro8= --------------000007030604030301010806--