Skip to content

Commit

Permalink
Update Canna to 3.6p1.
Browse files Browse the repository at this point in the history
Changes from 3.5b2 are:
	* Add -inet option not to allow TCP connections by default.
	* Fix a buffer overflow.  (This fix was already incorpolated
	  in Pkgsrc version.)
	* Improve dicionary.
	* Improve conversion engine.
	* Other bug fixes.

Patch is made by Yoshifumi Hiramatsu.  Tested by Toru Takamizu.
  • Loading branch information
uebayasi committed Dec 27, 2002
1 parent 2e18bd5 commit b4c2452
Show file tree
Hide file tree
Showing 16 changed files with 187 additions and 775 deletions.
6 changes: 5 additions & 1 deletion doc/CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: CHANGES,v 1.925 2002/12/27 05:03:49 grant Exp $
$NetBSD: CHANGES,v 1.926 2002/12/27 08:43:15 uebayasi Exp $

Changes to the packages collection and infrastructure in 2002:

Expand Down Expand Up @@ -4279,3 +4279,7 @@ Changes to the packages collection and infrastructure in 2002:
Updated dict-server to 1.8.1nb1 [uebayasi 2002-12-27]
Updated dict-client to 1.8.1nb1 [uebayasi 2002-12-27]
Added dict-dictionaries-1.8.1 [uebayasi 2002-12-27]
Updated Canna-dict to 3.6.1 [uebayasi 2002-12-27]
Updated Canna-lib to 3.6.1 [uebayasi 2002-12-27]
Updated Canna-server to 3.6.1 [uebayasi 2002-12-27]
Updated Canna-server-bin to 3.6.1 [uebayasi 2002-12-27]
18 changes: 6 additions & 12 deletions inputmethod/canna-dict/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# $NetBSD: Makefile,v 1.2 2002/08/21 02:43:45 grant Exp $
# $NetBSD: Makefile,v 1.3 2002/12/27 08:41:23 uebayasi Exp $

DISTNAME= Canna35b2
PKGNAME= Canna-dict-3.5.2
PKGREVISION= 2
DISTNAME= Canna36p1
PKGNAME= Canna-dict-3.6.1
CATEGORIES= japanese inputmethod
MASTER_SITES= ftp://ftp.nec.co.jp/pub/Canna/Canna35/

PATCH_SITES= http://www.jaist.ac.jp/~fujieda/canna/
PATCHFILES= Canna35b2-unoff1.patch.gz Canna35b2-unoff2.patch.gz \
Canna35b2-hack1.patch.gz
PATCH_DIST_STRIP= -p1
MASTER_SITES= http://downloads.sourceforge.jp/canna/1722/

MAINTAINER= [email protected]
HOMEPAGE= http://www.nec.co.jp/japanese/product/computer/soft/canna/
HOMEPAGE= http://canna.sourceforge.jp/
COMMENT= Kana-Kanji conversion system (dictionary)

BUILD_DEPENDS+= Canna-server-bin>=3.5.2nb2:../canna-server-bin
BUILD_DEPENDS+= Canna-server-bin>=3.6.1:../canna-server-bin

FILESDIR= ${.CURDIR}/../canna-lib/files
DISTINFO_FILE= ${.CURDIR}/../canna-lib/distinfo
Expand Down
16 changes: 5 additions & 11 deletions inputmethod/canna-lib/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
# $NetBSD: Makefile,v 1.4 2002/08/25 19:22:55 jlam Exp $
# $NetBSD: Makefile,v 1.5 2002/12/27 08:41:24 uebayasi Exp $
#

DISTNAME= Canna35b2
PKGNAME= Canna-lib-3.5.2
PKGREVISION= 2
DISTNAME= Canna36p1
PKGNAME= Canna-lib-3.6.1
CATEGORIES= japanese inputmethod
MASTER_SITES= ftp://ftp.nec.co.jp/pub/Canna/Canna35/

PATCH_SITES= http://www.jaist.ac.jp/~fujieda/canna/
PATCHFILES= Canna35b2-unoff1.patch.gz Canna35b2-unoff2.patch.gz \
Canna35b2-hack1.patch.gz
PATCH_DIST_STRIP= -p1
MASTER_SITES= http://downloads.sourceforge.jp/canna/1722/

MAINTAINER= [email protected]
HOMEPAGE= http://www.nec.co.jp/japanese/product/computer/soft/canna/
HOMEPAGE= http://canna.sourceforge.jp/
COMMENT= Kana-Kanji conversion system (library)

INSTALL_TARGET= install install.man
Expand Down
47 changes: 44 additions & 3 deletions inputmethod/canna-lib/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.4 2002/08/25 19:22:55 jlam Exp $
@comment $NetBSD: PLIST,v 1.5 2002/12/27 08:41:24 uebayasi Exp $
include/canna/RK.h
include/canna/jrkanji.h
include/canna/keydef.h
Expand All @@ -19,6 +19,7 @@ lib/libcanna16.a
lib/libcanna16.so
lib/libcanna16.so.1
lib/libcanna16.so.1.0
man/ja_JP.EUC/man3/RkBgnBun.3
man/ja_JP.EUC/man3/RkCloseRoma.3
man/ja_JP.EUC/man3/RkCvtEuc.3
man/ja_JP.EUC/man3/RkCvtHan.3
Expand Down Expand Up @@ -49,7 +50,6 @@ man/ja_JP.EUC/man3/RkOpenRoma.3
man/ja_JP.EUC/man3/RkPrev.3
man/ja_JP.EUC/man3/RkRemountDic.3
man/ja_JP.EUC/man3/RkResize.3
man/ja_JP.EUC/man3/RkRgnBun.3
man/ja_JP.EUC/man3/RkRight.3
man/ja_JP.EUC/man3/RkShorten.3
man/ja_JP.EUC/man3/RkStoreYomi.3
Expand All @@ -61,6 +61,48 @@ man/ja_JP.EUC/man3/cannalib.3
man/ja_JP.EUC/man3/jrKanjiControl.3
man/ja_JP.EUC/man3/jrKanjiString.3
man/ja_JP.EUC/man3/uilib.3
man/man3/RkBgnBun.3
man/man3/RkCloseRoma.3
man/man3/RkCvtEuc.3
man/man3/RkCvtHan.3
man/man3/RkCvtHira.3
man/man3/RkCvtKana.3
man/man3/RkCvtRoma.3
man/man3/RkCvtZen.3
man/man3/RkDefineDic.3
man/man3/RkDeleteDic.3
man/man3/RkEndBun.3
man/man3/RkEnlarge.3
man/man3/RkFinalize.3
man/man3/RkGetDicList.3
man/man3/RkGetKanji.3
man/man3/RkGetLex.3
man/man3/RkGetStat.3
man/man3/RkGetYomi.3
man/man3/RkGoto.3
man/man3/RkInitialize.3
man/man3/RkIntro.3
man/man3/RkLeft.3
man/man3/RkMapPhonogram.3
man/man3/RkMapRoma.3
man/man3/RkMountD.3
man/man3/RkNext.3
man/man3/RkNfer.3
man/man3/RkOpenRoma.3
man/man3/RkPrev.3
man/man3/RkRemountDic.3
man/man3/RkResize.3
man/man3/RkRight.3
man/man3/RkShorten.3
man/man3/RkStoreYomi.3
man/man3/RkUnmountDic.3
man/man3/RkXfer.3
man/man3/XKanjiControl.3
man/man3/XLookupKanjiString.3
man/man3/cannalib.3
man/man3/jrKanjiControl.3
man/man3/jrKanjiString.3
man/man3/uilib.3
share/canna/default.canna
share/canna/dic/default.cbp
share/canna/dic/english.cbp
Expand Down Expand Up @@ -90,7 +132,6 @@ share/canna/dic/sokuon.cbp
share/canna/dic/tut.cbp
share/canna/dic/vje.cbp
share/canna/dic/wx2+.cbp
share/canna/engine.cf
share/canna/sample/1.1.canna
share/canna/sample/1.2.canna
share/canna/sample/default.canna
Expand Down
4 changes: 2 additions & 2 deletions inputmethod/canna-lib/buildlink2.mk
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 19:22:55 jlam Exp $
# $NetBSD: buildlink2.mk,v 1.3 2002/12/27 08:41:24 uebayasi Exp $

.if !defined(CANNA_BUILDLINK2_MK)
CANNA_BUILDLINK2_MK= # defined

BUILDLINK_PACKAGES+= canna
BUILDLINK_DEPENDS.canna?= Canna-lib>=3.5.2
BUILDLINK_DEPENDS.canna?= Canna-lib>=3.6.1
BUILDLINK_PKGSRCDIR.canna?= ../../inputmethod/canna-lib

EVAL_PREFIX+= BUILDLINK_PREFIX.canna=canna-lib
Expand Down
24 changes: 6 additions & 18 deletions inputmethod/canna-lib/distinfo
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
$NetBSD: distinfo,v 1.4 2002/12/02 03:40:20 itojun Exp $
$NetBSD: distinfo,v 1.5 2002/12/27 08:41:24 uebayasi Exp $

SHA1 (Uum4.109.tar.gz) = 9d57fa67fc321c0b1101970b02154b5d6e42e88e
Size (Uum4.109.tar.gz) = 43738 bytes
SHA1 (Canna35b2.tar.gz) = 66742205272cbc6bd91f272596381f761feac0a2
Size (Canna35b2.tar.gz) = 1333329 bytes
SHA1 (Canna35b2-unoff1.patch.gz) = 19579591190f7ace7d3ec5f61a7d01ca3bc576c1
Size (Canna35b2-unoff1.patch.gz) = 21443 bytes
SHA1 (Canna35b2-unoff2.patch.gz) = 16d578ed0558a632832194fffad8fcf24c9181fb
Size (Canna35b2-unoff2.patch.gz) = 11375 bytes
SHA1 (Canna35b2-hack1.patch.gz) = 24ab2baf104ef9748f92bd5315d4100a7ee961ab
Size (Canna35b2-hack1.patch.gz) = 8384 bytes
SHA1 (patch-aa) = 45cdfd8107ee0beeae878c9940273fc6bca0385a
SHA1 (patch-ab) = 38f3ad4e022299a4dfd8d9391b1742b0d0f02a71
SHA1 (Canna36p1.tar.gz) = 3e08fc03e16298ad7941a923989ea35929cdf3ba
Size (Canna36p1.tar.gz) = 1337483 bytes
SHA1 (patch-aa) = 816a5fddac06c980eaa7f622b6872231741c76a5
SHA1 (patch-ab) = b203ad0cb1285ffed0037e0eced3ae298bec5eb9
SHA1 (patch-ac) = 8f9f999eb8abd9c8e3d3e5c66cf55150ce700919
SHA1 (patch-ad) = dd2eb94e75dc4789e298aa1601280d32fbe5ec96
SHA1 (patch-ae) = e44c60ddf1e042ab5df1457b6723071c38baae02
SHA1 (patch-ad) = d4b5720c206f81124e0d53e71590de86f66c524c
SHA1 (patch-af) = 2700fc8395895176c16562af66ea5bf0b13d4e10
SHA1 (patch-ag) = 5436f27d2f5fff1d317d58b3beeb1233d801ef32
SHA1 (patch-ah) = eee6fc00787dbb59fd7571ba09cbed28c5c18e9c
SHA1 (patch-ai) = 77cc19926b80f503c9b5171e10722ed0a492dec4
86 changes: 57 additions & 29 deletions inputmethod/canna-lib/patches/patch-aa
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
$NetBSD: patch-aa,v 1.3 2002/08/25 19:22:55 jlam Exp $

--- Canna.conf- Fri Dec 1 00:31:14 2000
+++ Canna.conf Fri Dec 1 00:31:36 2000
@@ -130,10 +130,14 @@
$NetBSD: patch-aa,v 1.4 2002/12/27 08:41:24 uebayasi Exp $
--- Canna.conf.orig Thu Dec 5 22:25:03 2002
+++ Canna.conf Thu Dec 5 22:51:29 2002
@@ -132,11 +132,11 @@

-cannaBinDir = /usr/local/canna/bin
-cannaSrvDir = /usr/local/canna/bin
-cannaLibDir = /usr/local/canna/lib
-cannaManDir = /usr/local/canna/man
-cannaIncDir = /usr/local/canna/include/canna
/* root�ˤʤ餺�˥��󥹥ȡ��뤹����Ϥ����������Ʋ����� */
/* #define InstallAsUser */
-cannaPrefix = /usr/local/canna
+cannaPrefix = ${PREFIX}
cannaExecPrefix = $(cannaPrefix)
cannaBinDir = $(cannaExecPrefix)/bin
-cannaSrvDir = $(cannaExecPrefix)/bin
-cannaLibDir = $(cannaPrefix)/lib
+cannaSrvDir = $(cannaExecPrefix)/sbin
+cannaLibDir = $(cannaPrefix)/share/canna
cannaManDir = $(cannaPrefix)/man
cannaIncDir = $(cannaPrefix)/include/canna

@@ -144,17 +144,19 @@
libCannaDir = $(cannaExecPrefix)/lib
ErrDir = $(cannaExecPrefix)/log
#else
-libCannaDir = /usr/lib
-
-ErrDir = /usr/spool/canna
+cannaBinDir = ${PREFIX}/bin
+cannaSrvDir = ${PREFIX}/sbin
+cannaLibDir = ${PREFIX}/share/canna
+cannaManDir = ${PREFIX}/man/ja_JP.EUC
+cannaIncDir = ${PREFIX}/include/canna
+libCannaDir = ${PREFIX}/lib
+
+libCannaDir = $(cannaPrefix)/lib
+ErrDir = ${CANNA_SPOOL}
+
+/* INET6 related stuff */
+INET6_DEFS = ${INET6}
+INET6_LIBS = #-L/usr/local/v6/lib -linet6
#endif

@@ -141,6 +145,6 @@
+INET6_DEFS = ${INET6}
+
/* ����3�Ԥ��ѹ����ʤ��Ǥ������� */
wcharDefinition = -DCANNA_WCHAR
Wlib =
-JapaneseLocale = japanese
+JapaneseLocale = ja_JP.eucJP
Expand All @@ -35,20 +39,29 @@ $NetBSD: patch-aa,v 1.3 2002/08/25 19:22:55 jlam Exp $
+cannaOwner = ${CANNAOWNER}
+cannaGroup = ${CANNAGROUP}

@@ -150,3 +154,3 @@
#ifdef InstallAsUser
cannaOwnerGroup =
@@ -164,7 +166,7 @@

pointerIntegerDef =

-cannaDsoRev = 1
+cannaDsoRev = 1.0
/* SunOS 4.x �򤪻Ȥ������� shared object �����Ѥ�����ˤ�
@@ -203,6 +207,5 @@
cannaDsoRev = 1.1
�Ȼ��ꤷ�Ƥ����������ޤ���FreeBSD �����Ѥ�����ϡ�
@@ -229,7 +231,7 @@
* ���ޥ������󥯤�����ϡ����� YES �ˤ��Ƥ�������
*/
-/* #define UseInstalledLibCanna YES */
/* #define UseInstalledLibCanna YES */
-#define UseInstalledLibCanna NO
+#define UseInstalledLibCanna YES

DicDir = $(cannaLibDir)/dic

@@ -241,14 +244,14 @@
@@ -274,18 +276,18 @@
DEPCANNALIB = $(libCannaDir)/libcanna.a
#endif
# endif
- CANNALIB = -L$(libCannaDir) -lcanna $(DLLIB)
+ CANNALIB = -Wl,-rpath,$(libCannaDir) -L$(libCannaDir) -lcanna $(DLLIB)
Expand All @@ -68,7 +81,11 @@ $NetBSD: patch-aa,v 1.3 2002/08/25 19:22:55 jlam Exp $
- CANNALIB = -L$(CANNASRC) -lcanna $(DLLIB)
+ CANNALIB = -Wl,-rpath,$(libCannaDir) -L$(libCannaDir) -lcanna $(DLLIB)
#endif /* UseInstalledLibCanna */
@@ -261,10 +264,10 @@

#if UseInstalledLibCanna
@@ -294,14 +296,14 @@
# else
DEPCANNALIB16 = $(libCannaDir)/libcanna16.a
# endif
- CANNALIB16 = -L$(libCannaDir) -lcanna16 $(DLLIB)
+ CANNALIB16 = -Wl,-rpath,$(libCannaDir) -L$(libCannaDir) -lcanna16 $(DLLIB)
Expand All @@ -81,5 +98,16 @@ $NetBSD: patch-aa,v 1.3 2002/08/25 19:22:55 jlam Exp $
+ DEPCANNALIB16 = $(libCannaDir)/libcanna16.a
# endif
- CANNALIB16 = -L$(CANNASRC) -lcanna16 $(DLLIB)
+ CANNALIB16 = -Wl,-rpath,$(libCannaDir) -L$(libCannaDir) -lcanna16 $(DLLIB)
+ CANNALIB16 = -L$(libCannaDir) -lcanna16 $(DLLIB)
#endif /* UseInstalledLibCanna */

/*
@@ -318,7 +320,7 @@
SCRIPTS_DEFINES =

#ifdef JAPANESEMAN
-JMNLOCALE = ja
+JMNLOCALE = ja_JP.EUC
#endif

/* USE_OBSOLETE_STYLE_FILENAME ��������뤿������ */
15 changes: 9 additions & 6 deletions inputmethod/canna-lib/patches/patch-ab
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
$NetBSD: patch-ab,v 1.3 2002/08/25 19:22:56 jlam Exp $

--- ./Imakefile.orig Wed Nov 27 16:01:34 1996
+++ ./Imakefile Fri Jul 30 19:17:44 1999
@@ -61,5 +61,5 @@
$NetBSD: patch-ab,v 1.4 2002/12/27 08:41:24 uebayasi Exp $
--- Imakefile.orig Thu Dec 5 22:39:41 2002
+++ Imakefile Thu Dec 5 22:40:03 2002
@@ -60,7 +60,7 @@
for i in $(SERVERDIR) ;\
do \
(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
- $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
+ $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install install.man); \
done

@@ -69,5 +69,5 @@
instclient::
@@ -68,7 +68,7 @@
for i in $(CLIENTDIR) ;\
do \
(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
- $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
+ $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install install.man); \
done

instsgs::
35 changes: 12 additions & 23 deletions inputmethod/canna-lib/patches/patch-ad
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
$NetBSD: patch-ad,v 1.3 2002/08/25 19:22:56 jlam Exp $
--- server/misc.c~ Fri Jul 29 12:03:54 1994
+++ server/misc.c Fri Jun 30 10:16:39 2000
@@ -788,12 +788,19 @@

if (client->username && client->username[0]) {
if (client->groupname && client->groupname[0]) {
+ if (strlen(DDUSER) + strlen(client->username) +
+ strlen(DDGROUP) + strlen(client->groupname) +
+ strlen(DDPATH) + 4 >= 256)
+ return ( -1 );
sprintf(dichome, "%s/%s:%s/%s:%s",
DDUSER, client->username,
DDGROUP, client->groupname,
DDPATH);
}
else {
+ if (strlen(DDUSER) + strlen(client->username) +
+ strlen(DDPATH) + 2 >= 256)
+ return ( -1 );
sprintf(dichome, "%s/%s:%s",
DDUSER, client->username,
DDPATH);
$NetBSD: patch-ad,v 1.4 2002/12/27 08:41:24 uebayasi Exp $
--- dic/ideo/pubdic/Imakefile.orig Thu Dec 5 23:43:40 2002
+++ dic/ideo/pubdic/Imakefile Thu Dec 5 23:43:52 2002
@@ -9,7 +9,7 @@
CANNAROOT = ../../..
CANNACMDDIR = $(CANNAROOT)/cmd
MERGE = $(CANNACMDDIR)/mergewd/mergeword
- INCLUDES = -I$(CANNAROOT)/include
+ INCLUDES = -I$(CANNAROOT)/canna
#endif
TARGETS = iroha.t
PUBDICS = a.p k.p s.p t.p n.p h.p m.p y.p r.p w.p x.p
Loading

0 comments on commit b4c2452

Please sign in to comment.