Bug 200065

Summary: [patch] japanese/kanji26: Fix installation of fonts.alias and some fix
Product: Ports & Packages Reporter: WATANABE Kazuhiro <CQG00620>
Component: Individual Port(s)Assignee: MIHIRA Sanpei Yoshiro <sanpei>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (sanpei)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
A patch for japanese/kanji26
none
poudriere testport log without the patch (10.1-RELEASE amd64)
none
poudriere testport log with the patch (10.1-RELEASE amd64) none

Description WATANABE Kazuhiro 2015-05-09 08:41:57 UTC
Created attachment 156543 [details]
A patch for japanese/kanji26

Due to massive updates which is related with USES=fonts [1],
japanese/kanji26 fails to update fonts.alias.

(1) Fix pathnames in INSTALL.tmpl and DEINSTALL.tmpl.

(2) Remove mkfontdir from INSTALL.tmpl and DEINSTALL.tmpl.
    It is handled by USES=fonts automatically.

(3) Remove fonts.dir deleting code from DEINSTALL.tmpl.
    It is handled by USES=fonts automatically.

A small problem still remains.  If "%%LOCALBASE%%/bin/xset fp rehash"
is failed, these scripts shows the message below:

| **********************************************************
| You should restart X server or do 'xset fp rehash' command
| to enable this update.
| **********************************************************

But now the fonts are installed to ${PREFIX}/share/fonts/kanji
which is not listed in the default X's FontPath.  So the message is
not enough for appropriate fontpath setting.

[1] https://svnweb.freebsd.org/ports?view=revision&revision=381876
Comment 1 WATANABE Kazuhiro 2015-05-09 08:42:36 UTC
Created attachment 156544 [details]
poudriere testport log without the patch (10.1-RELEASE amd64)
Comment 2 WATANABE Kazuhiro 2015-05-09 08:43:44 UTC
Created attachment 156545 [details]
poudriere testport log with the patch (10.1-RELEASE amd64)
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-07-18 02:11:50 UTC
A commit references this bug:

Author: sanpei
Date: Sat Jul 18 02:10:58 UTC 2015
New revision: 392404
URL: https://svnweb.freebsd.org/changeset/ports/392404

Log:
  fix issues related with USES=fonts

  PR:		200064, 200065
  Submitted by:	WATANABE Kazuhiro

Changes:
  head/japanese/kanji18/Makefile
  head/japanese/kanji18/files/DEINSTALL.tmpl
  head/japanese/kanji18/files/INSTALL.tmpl
  head/japanese/kanji26/files/DEINSTALL.tmpl
  head/japanese/kanji26/files/INSTALL.tmpl