Bug 167724

Summary: fix japanese/kon2-16dot doesn't work on 9.0 or amd64
Product: Ports & Packages Reporter: Masamichi Takatsu/高津正道 <taka2>
Component: Individual Port(s)Assignee: Daichi GOTO <daichi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Masamichi Takatsu/高津正道 2012-05-09 04:10:11 UTC
japanese/kon2-16dot doesn't work on 9.0-RELEASE/amd64.
attached patches fix this problem.

This problem is discussed on FreeBSD-users-jp ML.
http://home.jp.freebsd.org/cgi-bin/thread?mesid=%3C20111218163703.0138228427%40kcesx30.koganemaru.co.jp%3E
http://home.jp.freebsd.org/cgi-bin/thread?mesid=%3C120508115220.M2300448%40BULL.doga.jp%3E

---in Japanese---
japanese/kon2-16dot ¤Ï 9.0-RELEASE/amd64¤Ç¤ÏÆ°ºî¤·¤Þ¤»¤ó¡£
źÉդΥѥåÁ¤Ï¤³¤ÎÌäÂê¤ò²ò·è¤¹¤ë¤¿¤á¤Î¤â¤Î¤Ç¤¹¡£

¤³¤ÎÌäÂê¤Ë¤Ä¤¤¤Æ¤Ï¡¢FreeBSD-users-jp ML¤Ë¤ÆµÄÏÀ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
http://home.jp.freebsd.org/cgi-bin/thread?mesid=%3C20111218163703.0138228427%40kcesx30.koganemaru.co.jp%3E
http://home.jp.freebsd.org/cgi-bin/thread?mesid=%3C120508115220.M2300448%40BULL.doga.jp%3E

Fix: 

---in English---
following patches fix this problem.
(for kon2-0.3_4)

Patch for 9.0-RELEASE is based on Koganemaru's Jp.bsdinstall patch(for kon2-0.3_3), and modified to kon2_0.3_4.
http://www.koganemaru.co.jp/#JaInst90
http://home.jp.freebsd.org/cgi-bin/showmail/FreeBSD-users-jp/93700


Patch for amd64 is based on the following site.
http://slashdot.jp/journal/257929/kon2-@-amd64

---in Japanese---
źÉդΥѥåÁ¤Ï¤³¤ÎÌäÂê¤ò½¤Àµ¤¹¤ë¤â¤Î¤Ç¤¹¡£
(kon2-0.3_4 ÍÑ)

9.0Âбþ¤Î¥Ñ¥Ã¥Á¤Ï¾®¶â´Ý¤µ¤ó¤ÎÆüËܸ쥤¥ó¥¹¥È¡¼¥éÍѥѥåÁ(kon2-0.3_3ÍÑ)¤ò¸µ¤Ë¡¢kon2-0.3_4¤ÇÆ°¤¯¤è¤¦¤Ë½¤Àµ¤·¤¿¤â¤Î¤Ç¤¹¡£
http://www.koganemaru.co.jp/#JaInst90
http://home.jp.freebsd.org/cgi-bin/showmail/FreeBSD-users-jp/93700

amd64Âбþ¤Î¥Ñ¥Ã¥Á¤Ï¡¢²¼µ­¥µ¥¤¥È¤Ë¤¢¤ë¤â¤Î¤Ë´ð¤Å¤¤¤Æ¤¤¤Þ¤¹¡£
http://slashdot.jp/journal/257929/kon2-@-amd64
How-To-Repeat: In japanese/kon2-16dot/Makefile, 
this port is marked as broken when ${OSVERSION} > 900007
and ONLY_FOR_ARCHS is assigned "i386" only.
Comment 1 Masamichi Takatsu/高津正道 2012-05-09 04:41:08 UTC
>Number:         167724
>Category:       ports
>Synopsis:       
[PATCH] fix japanese/kon2-16dot doesn't work on  9.0 or amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 09 03:10:11 UTC 2012
>Closed-Date:    
>Last-Modified:  
>Originator:     
Masamichi Takatsu/$B9bDE@5F;(B
>Release:        9.0-RELEASE-p1 amd64
>Organization:
Personal/$B8D?M(B
>Environment:
FreeBSD xs35v2 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012    root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
japanese/kon2-16dot doesn't work on 9.0-RELEASE/amd64.
attached patches fix this problem.

This problem is discussed on FreeBSD-users-jp ML.
http://home.jp.freebsd.org/cgi-bin/thread?mesid=%3C20111218163703.0138228427%40kcesx30.koganemaru.co.jp%3E
http://home.jp.freebsd.org/cgi-bin/thread?mesid=%3C120508115220.M2300448%40BULL.doga.jp%3E

---in Japanese---
japanese/kon2-16dot $B$O(B 9.0-RELEASE/amd64$B$G$OF0:n$7$^$;$s!#(B
$BE:IU$N%Q%C%A$O$3$NLdBj$r2r7h$9$k$?$a$N$b$N$G$9!#(B

$B$3$NLdBj$K$D$$$F$O!"(BFreeBSD-users-jp ML$B$K$F5DO@$5$l$F$$$^$9!#(B
http://home.jp.freebsd.org/cgi-bin/thread?mesid=%3C20111218163703.0138228427%40kcesx30.koganemaru.co.jp%3E
http://home.jp.freebsd.org/cgi-bin/thread?mesid=%3C120508115220.M2300448%40BULL.doga.jp%3E

>How-To-Repeat:
In japanese/kon2-16dot/Makefile, 
this port is marked as broken when ${OSVERSION} > 900007
and ONLY_FOR_ARCHS is assigned "i386" only.
>Fix:
---in English---
following patches fix this problem.
(for kon2-0.3_4)

Patch for 9.0-RELEASE is based on Koganemaru's Jp.bsdinstall patch(for kon2-0.3_3), and modified to kon2_0.3_4.
http://www.koganemaru.co.jp/#JaInst90
http://home.jp.freebsd.org/cgi-bin/showmail/FreeBSD-users-jp/93700


Patch for amd64 is based on the following site.
http://slashdot.jp/journal/257929/kon2-@-amd64

---in Japanese---
$BE:IU$N%Q%C%A$O$3$NLdBj$r=$@5$9$k$b$N$G$9!#(B
(kon2-0.3_4 $BMQ(B)

9.0$BBP1~$N%Q%C%A$O>.6b4]$5$s$NF|K\8l%$%s%9%H!<%iMQ%Q%C%A(B(kon2-0.3_3$BMQ(B)$B$r85$K!"(Bkon2-0.3_4$B$GF0$/$h$&$K=$@5$7$?$b$N$G$9!#(B
http://www.koganemaru.co.jp/#JaInst90
http://home.jp.freebsd.org/cgi-bin/showmail/FreeBSD-users-jp/93700

amd64$BBP1~$N%Q%C%A$O!"2<5-%5%$%H$K$"$k$b$N$K4p$E$$$F$$$^$9!#(B
http://slashdot.jp/journal/257929/kon2-@-amd64

---difference of /usr/ports/japanese/kon2-16dot/Makefile begin---
--- Makefile.orig	2012-05-08 23:15:50.000000000 +0900
+++ Makefile	2012-05-08 22:59:53.000000000 +0900
@@ -22,7 +22,7 @@
 MAINTAINER?=	ports@FreeBSD.org
 COMMENT=	Kanji On Console -- Display kanji characters on your own console
 
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 
 MAN1=		kon.1
 MANLANG=	ja
@@ -32,10 +32,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} > 900007
-BROKEN=		fails to build with new utmpx
-.endif
-
 .if !defined(KONFONT)
 KONFONT=16dot
 KON16FONT=Startup
---difference of /usr/ports/japanese/kon2-16dot/Makefile end---

---additional patch files---
Following files should be stored on /usr/ports/japanese/kon2-16dot/files/

    . patch-doc_kon.1-for_Jp.bsdinstall
    . patch-src_child.c-additional_for_Jp.bsdinstall
    . patch-src_term.c-additional_for_Jp.bsdinstall
        option -s, -e, and -u are added for using in Jp.bsdinstall.

    . patch-src_vt.c-fix_for_libdialog
        escape-sequence bug is fixed for using with libdialog.

    . patch-src_utmp.c-fix_for_FreeBSD9
        support 9.0 utmpx.

    . patch-font_minix.c-fix_for_amd64
        support amd64


begin 664 kon2-0.3_4-patch.tar.gz
M'XL(`*@MJ4\``^T[^W,;QWGY]?!7K.BQ>"``ZN[P(H!0,45!(FN*Y!"@I9KB
M7$ZX`WCQX0YS#Q*,JS]&"3!]I!EKZCB)QG'<C#/1HW[$TW8RD\XX;:?-)'7R
MBY*?_%._;W?O@0=)J56E),6.?>#M[O?>_1Z[IY[FMPYRNM-2WW#L13G7=ESU
MSWJ+MSS=M#U?LZPO_>^;)$FE4H'@+[3Q7TG.EXM$ELM%N:PH4KE$)+F<+^2_
M1*1G0/O,%H"4+K#B.HY_VKRC`\,X31GCPOV1M%PN1\#Z%ZCU!462E9Q4S$EE
M(E>J4JFJR(M2V$A&JDA2*I/)G`"Q5"WFJ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E90PEQJ0A-UKT4_9A,#E09@
M@,6"B4H42@"=X<?7P+[AM>*O#+&QZP^144UH;@]402M%FLEEBE#H+R5\=80J
M9*$6C_!;$,)N2%;75G;4QE85TJH0TG<UVV/74J!/>9_\!;DJ8Z`)STYAX9P^
M+[Z9G#;O#%[6JPDI1F&E?98X%2L2E;I2CC[*H:>1)/H,!L_I5S9?)>R?Z="%
MS2XE$)%I>VG2-/K^N@V9@;\*MJ%']3E!P-X&Q'@Q09PNIYWUJVM-\A4P%X@I
M]9>D*IJS%MYU3)U.4T4!(98IR.B]PC@(7;`1R#(19<CBT/!XYRJW*7#,W@&-
MKW3O]`F>R[*72*'L=/9%^[M9F[59F[59F[59F[59F[59F[59F[59F[59F[59
2F[59F[7_#^V_`:D/]5$`4```
`
end

>Release-Note:
>Audit-Trail:
>Unformatted:
Comment 2 Daichi GOTO freebsd_committer 2012-05-09 16:32:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->daichi

Grab.
Comment 3 Daichi GOTO freebsd_committer 2012-05-09 20:29:14 UTC
State Changed
From-To: open->closed

Committed. Thanks!