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
[-- Attachment #1 --] -----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----- [-- Attachment #2 --] --- 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 [-- Attachment #3 --] M~S b {^ !`8,Yw34͂iR ή,S*csu霉@ Pm 38xZI<y-+ 3G{#Qf_ԛ|q`O^tC֧a; ;>Lk2U99Yަq^+wB26&<,7,{coQtS"6@K/̺1E>DdQ \??RS %奾Y COSzV^+gh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D177E53.6010308>
