Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2002 13:20:41 +0800 (CST)
From:      Kuang-che Wu <kcwu@kcwu.dyndns.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/41535: chinese/xcin2.5: it may build fail on some env
Message-ID:  <200208110520.g7B5Kfo49596@kcwu.dyndns.org>

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

>Number:         41535
>Category:       ports
>Synopsis:       chinese/xcin2.5: it may build fail on some env
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 10 22:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kuang-che Wu
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD m722 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sat Apr 6 14:30:47 CST 2002 root@m722:/usr/obj/usr/src/sys/M722 i386


	
>Description:
	One function of chewing/sort_word.c omitted its return value.
	This may cause build fail on some environment/compiler.

	
>How-To-Repeat:
	
>Fix:
diff -urN xcin25.orig/Makefile xcin25/Makefile
--- xcin25.orig/Makefile	Fri Aug  2 00:22:04 2002
+++ xcin25/Makefile	Sun Aug 11 13:09:50 2002
@@ -58,8 +58,10 @@
 	@${ECHO} --
 .endif
 
+post-extract:
+	${MV} ${WRKDIR}/chewing ${WRKSRC}/src/Cinput
+
 post-patch:
-	@mv ${WRKDIR}/chewing ${WRKSRC}/src/Cinput
 	@cd ${WRKSRC}/src/Cinput/chewing; ${SH} ./patch_chewing
 
 post-install:
diff -urN xcin25.orig/files/patch-chewing::sort_word.c xcin25/files/patch-chewing::sort_word.c
--- xcin25.orig/files/patch-chewing::sort_word.c	Thu Jan  1 08:00:00 1970
+++ xcin25/files/patch-chewing::sort_word.c	Sun Aug 11 12:35:11 2002
@@ -0,0 +1,10 @@
+--- src/Cinput/chewing/sort_word.c.orig	Sun Aug 11 12:32:03 2002
++++ src/Cinput/chewing/sort_word.c	Sun Aug 11 12:32:20 2002
+@@ -40,6 +40,7 @@
+   Key2Pho(phoneBuf, keyBuf, KB_DEFAULT, 1) ;
+   word_data[nWord].num = PhoneBg2Uint(phoneBuf) ;
+   nWord++ ;
++  return 0;
+ }
+ 
+ void Output()

	


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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