Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2013 07:13:07 GMT
From:      Antoine Brodin <antoine@freebsd.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        Rong-En Fan <rafan@freebsd.org>
Subject:   ports/179608: [patch] chinese/ttfm leftovers in dependent fonts
Message-ID:  <201306160713.r5G7D7kq053068@pepperseed.dreadbsd.org>
Resent-Message-ID: <201306160720.r5G7K0B6049927@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179608
>Category:       ports
>Synopsis:       [patch] chinese/ttfm leftovers in dependent fonts
>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:   Sun Jun 16 07:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Antoine Brodin
>Release:        FreeBSD 9.1-RELEASE-p3 amd64
>Organization:
none
>Environment:
System: FreeBSD pepperseed.dreadbsd.org 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


>Description:
Currently,  ports using chinese/ttfm/Makefile.ttf have leftovers on uninstall.

For instance:

=======================<phase: deinstall      >============================
===>  Deinstalling for chinese/arphicttf
===>   Deinstalling zh-arphicttf-2.11_2
...
=========================================================================
====>> Checking for extra files and directories
====>> Files or directories left over:
%%XFONTSDIR%%/fonts.dir
%%XFONTSDIR%%/fonts.scale
@dirrm %%XFONTSDIR%%

Analysis shows that the last font is not removed from fonts.dir

>How-To-Repeat:
poudriere bulk -t chinese/arphicttf

>Fix:
The attached patch is enough to workaround this problem, it was tested with:
poudriere bulk -t chinese/fireflyttf chinese/CJKUnifonts chinese/opendesktop-fonts chinese/moettf chinese/arphicttf chinese/CNS11643-font chinese/cwtexttf vietnamese/urwvn vietnamese/vietunicode-hannom vietnamese/vietunicode-trichlor vietnamese/vietunicode-web1


--- ttfm.diff begins here ---
Index: chinese/ttfm/Makefile.ttf
===================================================================
--- chinese/ttfm/Makefile.ttf	(revision 321006)
+++ chinese/ttfm/Makefile.ttf	(working copy)
@@ -71,6 +71,7 @@
 .	for ttf in ${TTF}
 		@${ECHO_CMD} "@unexec %D/bin/ttfm.sh --remove ${module} ${FONTSDIR}/${ttf} || true" >> ${TMPPLIST}
 .	endfor
+	@${ECHO_CMD} "@unexec %D/bin/ttfm.sh --remove ${module} ${FONTSDIR}/ttfmremovemeharder.ttf > /dev/null 2>&1 || true" >> ${TMPPLIST}
 .endfor
 .for ttf in ${TTF}
 	@${ECHO_CMD} "${FONTSDIR_REL}/${ttf}" >> ${TMPPLIST}
--- ttfm.diff ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306160713.r5G7D7kq053068>