ports/154457: [PATCH] make fc-cache not search user dirs for fonts when installing packages and make it less chatty

Steve Wills steve at mouf.net
Wed Feb 2 03:30:05 UTC 2011


>Number:         154457
>Category:       ports
>Synopsis:       [PATCH] make fc-cache not search user dirs for fonts when installing packages and make it less chatty
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 02 03:30:04 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Steve Wills
>Release:        9-CURRENT
>Organization:
>Environment:
>Description:
fc-cache calls created by bsd.xorg.mk search user dirs by default. They also have a verbose flag. Removing the search of user dirs by adding -s should speed up installation slightly. Removing verbose flag will make things less chatty during package install and make it easier for users to see useful messages.
>How-To-Repeat:
Install any package which calls fc-cache
>Fix:
see attached

Patch attached with submission follows:

Index: Mk/bsd.xorg.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.xorg.mk,v
retrieving revision 1.12
diff -u -r1.12 bsd.xorg.mk
--- Mk/bsd.xorg.mk	1 May 2010 11:40:05 -0000	1.12
+++ Mk/bsd.xorg.mk	2 Feb 2011 03:23:27 -0000
@@ -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 %D/lib/X11/fonts/${_fontdir} 2>/dev/null || true" >> ${TMPPLIST}
+	@${ECHO_CMD} "@unexec fc-cache -s %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


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list