Date: Sun, 26 Dec 2010 12:41:39 -0500 From: Steve Wills <steve@mouf.net> To: freebsd-x11@freebsd.org Subject: fc-cache usage Message-ID: <4D177E53.6010308@mouf.net>
next in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D177E53.6010308>