fc-cache usage
Steve Wills
steve at mouf.net
Sun Dec 26 17:56:11 UTC 2010
-----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-----
-------------- next part --------------
--- 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bsd.xorg.mk_patch.txt.sig
Type: application/octet-stream
Size: 287 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20101226/02e3ab04/bsd.xorg.mk_patch.txt.obj
More information about the freebsd-x11
mailing list