Sun Jul 4 07:18:44 2010 UTC ()
Pullup previous changes on HEAD to pkgsrc-2010Q2 branch to fix branching
error, and to sync with reality.
(agc)
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/Chinput/patches/patch-aa
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/Chinput/patches/patch-ab
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/Chinput/patches/patch-ac
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/Chinput/patches/patch-ad
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/Chinput/patches/patch-ae
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/Chinput/patches/patch-af
diff -r1.3 -r1.3.2.1 pkgsrc/inputmethod/scim-tomoe/Makefile
diff -r1.2 -r1.2.2.1 pkgsrc/inputmethod/scim-tomoe/distinfo
diff -r1.1 -r1.1.2.1 pkgsrc/inputmethod/scim-tomoe/patches/patch-ab
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkfep/patches/patch-ab
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkfep/patches/patch-ac
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkfep/patches/patch-bb
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkfep/patches/patch-bd
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkfep/patches/patch-be
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkfep/patches/patch-bf
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkfep/patches/patch-bg
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkserv/patches/patch-aa
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkserv/patches/patch-ab
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkserv/patches/patch-ac
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkserv/patches/patch-ad
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkserv/patches/patch-ae
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkserv/patches/patch-af
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkserv/patches/patch-bsearch
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/skkserv/patches/patch-jisyo
diff -r1.7 -r1.7.2.1 pkgsrc/inputmethod/tomoe-gtk/Makefile
diff -r1.2 -r1.2.2.1 pkgsrc/inputmethod/tomoe-gtk/distinfo
diff -r0 -r1.1.2.2 pkgsrc/inputmethod/tomoe-gtk/patches/patch-ab
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/unicon-im/patches/patch-aa
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/unicon-im/patches/patch-ac
diff -r1.1 -r1.1.64.1 pkgsrc/inputmethod/unicon-im/patches/patch-ag
--- pkgsrc/inputmethod/Chinput/patches/patch-aa 2002/06/15 09:31:39 1.1
+++ pkgsrc/inputmethod/Chinput/patches/patch-aa 1.1.64.1
--- pkgsrc/inputmethod/Chinput/patches/patch-ab 2002/06/15 09:31:39 1.1
+++ pkgsrc/inputmethod/Chinput/patches/patch-ab 1.1.64.1
--- pkgsrc/inputmethod/Chinput/patches/patch-ac 2002/06/15 09:31:39 1.1
+++ pkgsrc/inputmethod/Chinput/patches/patch-ac 1.1.64.1
--- pkgsrc/inputmethod/Chinput/patches/patch-ad 2002/06/15 09:31:39 1.1
+++ pkgsrc/inputmethod/Chinput/patches/patch-ad 1.1.64.1
--- pkgsrc/inputmethod/Chinput/patches/patch-ae 2002/06/15 09:31:39 1.1
+++ pkgsrc/inputmethod/Chinput/patches/patch-ae 1.1.64.1
--- pkgsrc/inputmethod/Chinput/patches/patch-af 2002/06/15 09:31:39 1.1
+++ pkgsrc/inputmethod/Chinput/patches/patch-af 1.1.64.1
--- pkgsrc/inputmethod/scim-tomoe/Makefile 2010/06/13 22:44:50 1.3
+++ pkgsrc/inputmethod/scim-tomoe/Makefile 2010/07/04 07:18:43 1.3.2.1
--- pkgsrc/inputmethod/scim-tomoe/distinfo 2010/05/28 09:31:35 1.2
+++ pkgsrc/inputmethod/scim-tomoe/distinfo 2010/07/04 07:18:43 1.2.2.1
--- pkgsrc/inputmethod/scim-tomoe/patches/patch-ab 2010/05/28 09:31:35 1.1
+++ pkgsrc/inputmethod/scim-tomoe/patches/patch-ab 2010/07/04 07:18:43 1.1.2.1
--- pkgsrc/inputmethod/skkfep/patches/patch-ab 2002/05/31 13:00:04 1.1
+++ pkgsrc/inputmethod/skkfep/patches/patch-ab 1.1.64.1
--- pkgsrc/inputmethod/skkfep/patches/patch-ac 2002/05/31 13:00:04 1.1
+++ pkgsrc/inputmethod/skkfep/patches/patch-ac 1.1.64.1
--- pkgsrc/inputmethod/skkfep/patches/patch-bb 2002/05/31 13:00:04 1.1
+++ pkgsrc/inputmethod/skkfep/patches/patch-bb 1.1.64.1
@@ -1,146 +0,0 @@
-$NetBSD: patch-bb,v 1.1 2002/05/31 13:00:04 seb Exp $
-
---- connserv.c.orig Tue Jul 7 00:31:16 1998
-+++ connserv.c Tue Nov 7 20:58:57 2000
-@@ -14,6 +14,10 @@
- #include <netinet/in.h>
- #include <netdb.h>
-
-+#ifdef PF_INET6
-+# define HAVE_GETADDRINFO
-+#endif
-+
- #define SKK_PORT_NUMBER 1178
- #define SKK_SERVICENAME "skkserv"
-
-@@ -36,50 +40,112 @@
- int sock;
- int i;
- unsigned short port;
-+#ifdef HAVE_GETADDRINFO
-+ struct addrinfo aihint, *ai0, *ai;
-+ int error;
-+#else
- struct sockaddr_in hostaddr;
- struct hostent *entry;
- struct servent *serv;
- struct protoent *proto;
-- int a1,a2,a3,a4;
-+#endif
- char *hostname;
--
-- serv = getservbyname(SKK_SERVICENAME,"tcp");
-- fillzero((char*)&hostaddr,sizeof(struct sockaddr_in));
-- if ((proto = getprotobyname("tcp")) == NULL) {
-- return -1;
-- }
--
-- if ((sock = socket(AF_INET,SOCK_STREAM,proto->p_proto)) < 0) {
-- return -1;
-+#ifdef SKK_CONF /* use skk.conf */
-+ FILE *conffp;
-+ char line[128];
-+ char hostbuf[128];
-+ char servbuf[128];
-+ char *confhost = NULL;
-+ char *confport = SKK_SERVICENAME;
-+
-+ if ((conffp = fopen(SKK_CONF, "r")) != NULL) {
-+ char *p, *data;
-+
-+ while (fgets(line, sizeof line, conffp) != NULL) {
-+ if ((p = strchr(line, '#')) != NULL)
-+ *p = '\0';
-+ if ((p = strtok(line, ": \t\n")) == NULL)
-+ continue;
-+ if ((data = strtok((char *) NULL, " \t\n")) == NULL)
-+ continue;
-+ if (!strcmp(p, "skkserv_host")) {
-+ strcpy(hostbuf, data);
-+ confhost = hostbuf;
-+ } else if (!strcmp(p, "skkserv_port")) {
-+ strcpy(servbuf, data);
-+ confport = servbuf;
-+ }
-+ }
- }
-+# undef SKK_SERVICENAME
-+# define SKK_SERVICENAME confport
-+#endif
-
- if (SKKServerHost)
- hostname = SKKServerHost;
- else if ((hostname = getenv("SKKSERVER")) == NULL) {
-+#ifdef SKK_CONF
-+ if ((hostname = confhost) == NULL)
-+#endif
- #ifdef SKK_SERVER_HOST
- hostname = SKK_SERVER_HOST;
- #else
- return -1;
- #endif
- }
-- if ('0' <= *hostname && *hostname <= '9') {
-- if (sscanf(hostname,"%d.%d.%d.%d",&a1,&a2,&a3,&a4) != 4) {
-- return -1;
-- }
-- a1 = (a1<<24)|(a2<<16)|(a3<<8)|a4;
-- hostaddr.sin_addr.s_addr = htonl(a1);
-+
-+#ifdef HAVE_GETADDRINFO
-+ fillzero((char*)&aihint, sizeof aihint);
-+ aihint.ai_family = PF_UNSPEC;
-+ aihint.ai_socktype = SOCK_STREAM;
-+ aihint.ai_flags = AI_CANONNAME;
-+ error = getaddrinfo(hostname, SKK_SERVICENAME, &aihint, &ai0);
-+ if (error) {
-+ printf("%s: %s\r\n", gai_strerror(error), hostname);
-+ return -1;
-+ }
-+
-+ sock = -1;
-+ for (ai = ai0; ai; ai = ai->ai_next) {
-+ sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
-+ if (sock >= 0 &&
-+ connect(sock, ai->ai_addr, ai->ai_addrlen) == 0)
-+ break;
-+ close(sock);
-+ sock = -1;
-+ }
-+ if (sock < 0) {
-+ perror(hostname);
-+ return -1;
-+ }
-+#else
-+ serv = getservbyname(SKK_SERVICENAME,"tcp");
-+ fillzero((char*)&hostaddr,sizeof(struct sockaddr_in));
-+ if ((proto = getprotobyname("tcp")) == NULL) {
-+ return -1;
- }
-- else {
-+
-+ if ((sock = socket(AF_INET,SOCK_STREAM,proto->p_proto)) < 0) {
-+ return -1;
-+ }
-+
-+ if ((hostaddr.sin_addr.s_addr = inet_addr(hostname)) == INADDR_NONE) {
- if ((entry = gethostbyname(hostname)) == NULL) {
- return -1;
- }
- bincopy(entry->h_addr, &hostaddr.sin_addr, entry->h_length);
- }
- hostaddr.sin_family = AF_INET;
-- hostaddr.sin_port = serv ? serv->s_port : htons(SKK_PORT_NUMBER);
-+ hostaddr.sin_port =
-+ serv ? serv->s_port :
-+#ifdef SKK_CONF
-+ (i = atoi(confport)) > 0 ? htons(i) :
-+#endif
-+ htons(SKK_PORT_NUMBER);
- if (connect(sock,(struct sockaddr *)&hostaddr,sizeof(struct sockaddr_in)) < 0) {
- return -1;
- }
-+#endif
- printf("SKKSERVER=%s\r\n",hostname);
- skkservsock = sock;
- rserv = fdopen(sock,"r");
--- pkgsrc/inputmethod/skkfep/patches/patch-bd 2002/05/31 13:00:04 1.1
+++ pkgsrc/inputmethod/skkfep/patches/patch-bd 1.1.64.1
--- pkgsrc/inputmethod/skkfep/patches/patch-be 2002/05/31 13:00:04 1.1
+++ pkgsrc/inputmethod/skkfep/patches/patch-be 1.1.64.1
@@ -1,66 +0,0 @@
-$NetBSD: patch-be,v 1.1 2002/05/31 13:00:04 seb Exp $
-
---- readwrite.c.orig Tue Jul 7 00:31:15 1998
-+++ readwrite.c Sun Sep 27 10:24:06 1998
-@@ -4,6 +4,14 @@
- #include "kanjicode.h"
- #include "ctrlcode.h"
-
-+#ifndef STDIN_FILENO
-+#define STDIN_FILENO 0
-+#endif
-+
-+#ifndef STDOUT_FILENO
-+#define STDOUT_FILENO 1
-+#endif
-+
- #ifdef DEBUG
- extern FILE *wrlog;
- #endif
-@@ -29,12 +37,10 @@
- SIC_B,SOC_B,"JIS",3,3,
- };
-
--extern int tty;
--
- char read1()
- { char c;
-
-- if (read(tty,&c,1) != 0)
-+ if (read(STDIN_FILENO,&c,1) != 0)
- return c;
- return EOF;
- }
-@@ -320,13 +326,13 @@
- char *s;
- { int l = strlen(s);
-
-- writeTTYorg(tty,s,l,INTERNALCODE,OutCode,&TInter_Stat,&To_TTY_Stat);
-+ writeTTYorg(STDOUT_FILENO,s,l,INTERNALCODE,OutCode,&TInter_Stat,&To_TTY_Stat);
- }
-
- write1(c)
- char c;
- {
-- writeTTYorg(tty,&c,1,INTERNALCODE,OutCode,&TInter_Stat,&To_TTY_Stat);
-+ writeTTYorg(STDOUT_FILENO,&c,1,INTERNALCODE,OutCode,&TInter_Stat,&To_TTY_Stat);
- }
-
- writeShTty(s,l)
-@@ -334,14 +340,14 @@
- int l;
- {
-
-- writeTTYorg(tty,s,l,WriteCode,OutCode,&From_SH_Stat,&To_TTY_Stat);
-+ writeTTYorg(STDOUT_FILENO,s,l,WriteCode,OutCode,&From_SH_Stat,&To_TTY_Stat);
- }
-
- writeTty(s,l)
- char *s;
- int l;
- {
-- writeTTYorg(tty,s,l,INTERNALCODE,OutCode,&TInter_Stat,&To_TTY_Stat);
-+ writeTTYorg(STDOUT_FILENO,s,l,INTERNALCODE,OutCode,&TInter_Stat,&To_TTY_Stat);
- }
-
-
--- pkgsrc/inputmethod/skkfep/patches/patch-bf 2002/05/31 13:00:04 1.1
+++ pkgsrc/inputmethod/skkfep/patches/patch-bf 1.1.64.1
--- pkgsrc/inputmethod/skkfep/patches/patch-bg 2002/05/31 13:00:04 1.1
+++ pkgsrc/inputmethod/skkfep/patches/patch-bg 1.1.64.1
--- pkgsrc/inputmethod/skkserv/patches/Attic/patch-aa 2002/05/31 12:59:58 1.1
+++ pkgsrc/inputmethod/skkserv/patches/Attic/patch-aa 1.1.64.1
--- pkgsrc/inputmethod/skkserv/patches/patch-ab 2002/05/31 12:59:58 1.1
+++ pkgsrc/inputmethod/skkserv/patches/patch-ab 1.1.64.1
--- pkgsrc/inputmethod/skkserv/patches/patch-ac 2002/05/31 12:59:58 1.1
+++ pkgsrc/inputmethod/skkserv/patches/patch-ac 1.1.64.1
--- pkgsrc/inputmethod/skkserv/patches/patch-ad 2002/05/31 12:59:58 1.1
+++ pkgsrc/inputmethod/skkserv/patches/patch-ad 1.1.64.1
--- pkgsrc/inputmethod/skkserv/patches/patch-ae 2002/05/31 12:59:58 1.1
+++ pkgsrc/inputmethod/skkserv/patches/patch-ae 1.1.64.1
--- pkgsrc/inputmethod/skkserv/patches/Attic/patch-af 2002/05/31 12:59:58 1.1
+++ pkgsrc/inputmethod/skkserv/patches/Attic/patch-af 1.1.64.1
@@ -1,282 +0,0 @@
-$NetBSD: patch-af,v 1.1 2002/05/31 12:59:58 seb Exp $
-
---- skkserv/skkserv.c.orig Tue Jan 21 04:16:36 1997
-+++ skkserv/skkserv.c Mon Nov 6 00:12:57 2000
-@@ -100,14 +100,16 @@
- #define SERVER_NOT_FOUND "4"
- #define SERVER_FULL "9"
-
-+#define warn(m) \
-+ {if (debug) fprintf(errout, "%s: %s\n", pgmnm, m);}
- #define err(m) \
-- {if (debug) fprintf(errout, "%s: %s\n", pgmnm, m); exit(1);}
-+ {warn(m); exit(1);}
-
- /*
- * Global Variables
- */
-
--char pgmver[] = "3.9.4 "; /* version number */
-+char pgmver[] = "3.9.4nb1 "; /* version number */
-
- char *pgmnm; /* program name */
- char *jname; /* name of shared dictionary */
-@@ -121,6 +123,9 @@
- int jtab1[KANAMOJI]; /* index-table by 1st letter (1st part)*/
- int jtab2[KANAMOJI]; /* index-table by 1st letter (2nd part)*/
- int initsock; /* socket for waiting requests */
-+#ifdef PF_INET6
-+int initsock6; /* IPv6 socket for waiting requests */
-+#endif
- int clientsock[MAXCLNT]; /* socket for each client */
- int nclients; /* max index for active clients */
-
-@@ -130,8 +135,18 @@
- int parg;
- int setjisho = 0;
- int ctlterm; /* fildes for control terminal */
-- void reread();
-+ RETSIGTYPE req_reread();
-+
-+#ifdef SKKSERV_UID
-+ gid_t gid = SKKSERV_GID;
-
-+ /* revoke privilege if any */
-+ if (geteuid() == 0) {
-+ setgroups(1, &gid);
-+ setgid(SKKSERV_GID);
-+ setuid(SKKSERV_UID);
-+ }
-+#endif
- pgmnm = argv[0];
- debug = 0;
- errout = stderr;
-@@ -200,7 +215,10 @@
- fclose(stderr);
-
- /* detach child process from control terminal */
--#ifdef HAVE_TIOCNOTTY
-+#ifdef HAVE_SETSID
-+ setsid();
-+#else
-+#ifdef TIOCNOTTY
- if ((ctlterm = open("/dev/tty", 2)) >= 0) {
- ioctl(ctlterm, TIOCNOTTY, 0);
- close(ctlterm);
-@@ -215,6 +233,7 @@
- signal(SIGHUP, SIG_IGN);
- if (fork() != 0) exit(0);
- #endif
-+#endif
- } else { /* debug mode */
- fprintf(errout, "SKK-JISYO is %s\n", jname);
- fflush(errout);
-@@ -222,7 +241,7 @@
- if (errout != stderr) fclose(stderr);
- }
-
-- signal(SIGINT, reread);
-+ signal(SIGINT, req_reread);
- /* 1993/6/5 by kam, re-read dictionary by "INT" signal */
-
- nclients = 0;
-@@ -244,8 +263,11 @@
- mksock()
- {
- struct sockaddr_in sin;
-+#ifdef PF_INET6
-+ struct sockaddr_in6 sin6;
-+#endif
- struct servent *sp;
-- int optbuf = 1; /* enable socket REUSEADDR */
-+ int optbuf; /* enable socket REUSEADDR */
-
- bzero((char*)&sin, sizeof(sin));
- sin.sin_family = AF_INET;
-@@ -262,16 +284,54 @@
- sin.sin_port = htons(portnum);
-
- if ((initsock = socket(PF_INET, SOCK_STREAM, 0)) < 0)
-- err("socket error; socket cannot be created");
-- if (setsockopt(initsock, SOL_SOCKET, SO_REUSEADDR,
-+ warn("socket error; socket cannot be created");
-+#ifdef PF_INET6
-+ bzero((char*)&sin6, sizeof(sin6));
-+ sin6.sin6_family = AF_INET6;
-+ /* sin6.sin6_addr.s6_addr = IN6ADDR_ANY_INIT; ... all-zero pattern */
-+ sin6.sin6_port = htons(portnum);
-+ if ((initsock6 = socket(PF_INET6, SOCK_STREAM, 0)) < 0)
-+ warn("socket error; IPv6 socket cannot be created");
-+#endif
-+ optbuf = 1;
-+ if (initsock >= 0 && setsockopt(initsock, SOL_SOCKET, SO_REUSEADDR,
-+ &optbuf, sizeof(optbuf)) < 0)
-+ warn("socket error; cannot set socket option");
-+#ifdef PF_INET6
-+ optbuf = 1;
-+ if (initsock6 >= 0 && setsockopt(initsock6, SOL_SOCKET, SO_REUSEADDR,
- &optbuf, sizeof(optbuf)) < 0)
-- err("socket error; cannot set socket option");
-- if (bind(initsock, (struct sockaddr *)&sin, sizeof(sin))< 0)
-- err("bind error; the socket is already used");
-- if (listen(initsock, MAXQUE) < 0)
-+ warn("socket error; cannot set socket option");
-+#endif
-+ if (initsock >= 0 && bind(initsock, (struct sockaddr *)&sin, sizeof(sin))< 0) {
-+ warn("bind error; the socket is already used");
-+ close(initsock);
-+ initsock = -1;
-+ }
-+#ifdef PF_INET6
-+ if (initsock6 >= 0 && bind(initsock6, (struct sockaddr *)&sin6, sizeof(sin6))< 0) {
-+ warn("bind error; the socket is already used");
-+ close(initsock6);
-+ initsock6 = -1;
-+ }
-+#endif
-+ if (initsock < 0
-+#ifdef PF_INET6
-+ && initsock6 < 0
-+#endif
-+ )
-+ exit(1);
-+ if (initsock >= 0 && listen(initsock, MAXQUE) < 0)
- err("listen error; something wrong happened with the socket");
-+#ifdef PF_INET6
-+ if (initsock6 >= 0 && listen(initsock6, MAXQUE) < 0)
-+ err("listen error; something wrong happened with the IPv6 socket");
-+#endif
- if (debug) {
- fprintf(errout, "file descriptor for initsock is %d\n", initsock);
-+#ifdef PF_INET6
-+ fprintf(errout, "file descriptor for initsock6 is %d\n", initsock6);
-+#endif
- fflush(errout);
- }
- }
-@@ -303,8 +363,19 @@
- mkoldjtab(buf);
- }
-
-+/* using stdio in signal handler is unsafe */
-+#ifdef __STDC__
-+volatile
-+#endif
-+int reread_requested;
-+
-+RETSIGTYPE req_reread()
-+{
-+ reread_requested = 1;
-+}
-+
- /* 1993/6/5 by kam, re-read dictionary by "INT" signal */
--RETSIGTYPE reread()
-+void reread()
- {
- if (fclose(jisho) < 0) {
- fprintf(stderr,
-@@ -455,15 +526,22 @@
- main_loop()
- {
- fd_set readfds, writefds, exceptfds;
-- fd_set getrfds();
-+ void getrfds();
- struct sockaddr_in from;
-+#ifdef PF_INET6
-+ struct sockaddr_in6 from6;
-+#endif
- int len;
- register int i;
-
- FD_ZERO(&writefds);
- FD_ZERO(&exceptfds);
- for(;;) { /* infinite loop; waiting for client's request */
-- readfds = getrfds();
-+ if (reread_requested) {
-+ reread();
-+ reread_requested = 0;
-+ }
-+ getrfds(&readfds);
- if (select(MAXDTAB, &readfds, &writefds, &exceptfds, NULL) < 0) {
- if (errno == EINTR) /* if signal happens */
- continue;
-@@ -474,16 +552,32 @@
- fflush(errout);
- }
-
-- if (FD_ISSET(initsock, &readfds)) {
-+ if (initsock >= 0 && FD_ISSET(initsock, &readfds)) {
- len = sizeof(from);
- if ((clientsock[nclients ++] = accept(initsock, &from, &len)) < 0) {
- err("accept error; something wrong happened with the socket");
- }
-- if (nclients >= MAXDTAB - 3 - debug * 2) {
-+ if (nclients >= MAXDTAB - 3
-+#ifdef PF_INET6
-+ -1
-+#endif
-+ - debug * 2) {
- write(clientsock[--nclients], SERVER_FULL, 1);
- close(clientsock[nclients]);
- }
- }
-+#ifdef PF_INET6
-+ if (initsock6 >= 0 && FD_ISSET(initsock6, &readfds)) {
-+ len = sizeof(from6);
-+ if ((clientsock[nclients ++] = accept(initsock6, &from6, &len)) < 0) {
-+ err("accept error; something wrong happened with the socket");
-+ }
-+ if (nclients >= MAXDTAB - 4 - debug * 2) {
-+ write(clientsock[--nclients], SERVER_FULL, 1);
-+ close(clientsock[nclients]);
-+ }
-+ }
-+#endif
-
- /* naiive scheduling */
- for (i = 0; i < nclients; i ++)
-@@ -511,16 +605,20 @@
- * get bit pattern of read file descriptor
- */
-
--fd_set getrfds()
-+void getrfds(rfds)
-+fd_set *rfds;
- {
-- fd_set rfds;
- register int i;
-
-- FD_ZERO(&rfds);
-- FD_SET(initsock, &rfds);
-+ FD_ZERO(rfds);
-+ if (initsock >= 0)
-+ FD_SET(initsock, rfds);
-+#ifdef PF_INET6
-+ if (initsock6 >= 0)
-+ FD_SET(initsock6, rfds);
-+#endif
- for (i = 0; i < nclients; i ++)
-- FD_SET(clientsock[i], &rfds);
-- return (rfds);
-+ FD_SET(clientsock[i], rfds);
- }
-
- /*
-@@ -724,6 +822,9 @@
- exit(1);
- }
- hentry = gethostbyname(hname);
-+ if (hentry == NULL) {
-+ fprintf(errout, "%s: WARNING: gethostbyname(%s) failed\n", pgmnm, hname);
-+ } else {
- #ifdef NO_ADDR_LIST
- strcat(hname, ":");
- strcat(hname, hentry->h_addr);
-@@ -736,6 +837,7 @@
- strcat(hname, inet_ntoa(*(struct in_addr *)*p++));
- }
- #endif
-+ }
- strcat(hname, ": ");
- }
-
--- pkgsrc/inputmethod/skkserv/patches/Attic/patch-bsearch 2002/05/31 12:59:59 1.1
+++ pkgsrc/inputmethod/skkserv/patches/Attic/patch-bsearch 1.1.64.1
@@ -1,123 +0,0 @@
-$NetBSD: patch-bsearch,v 1.1 2002/05/31 12:59:59 seb Exp $
-
-Binary search patch.
-Originally from skk-users mailing list
-(Masahiro Doteguchi, Mailinglist-Id: 1779).
-
---- skkserv/skkserv.c.patch1 Mon Nov 6 00:12:57 2000
-+++ skkserv/skkserv.c Mon Nov 6 00:15:00 2000
-@@ -109,7 +109,7 @@
- * Global Variables
- */
-
--char pgmver[] = "3.9.4nb1 "; /* version number */
-+char pgmver[] = "3.9.4nb1 (binary search) "; /* version number */
-
- char *pgmnm; /* program name */
- char *jname; /* name of shared dictionary */
-@@ -622,7 +622,7 @@
- }
-
- /*
-- * reply to client: linear search
-+ * reply to client: binary search
- */
-
- search(commsock)
-@@ -635,6 +635,7 @@
- int n; /* number of characters from client */
- int sttpnt; /* start point of searching */
- int endpnt; /* end point of searching */
-+ int curpnt; /* current point of searching */
- int errcod = 0; /* error flag */
- int sstyle; /* search style */
-
-@@ -743,18 +744,36 @@
- endpnt = jtab1[KANA_END - code + 1];
- }
- }
-- fseek(jisho, sttpnt, 0);
- if (debug)
-- fprintf(stderr, "from %d to %d\n", sttpnt, endpnt);
-+ fprintf(errout, "from %d to %d\n", sttpnt, endpnt);
-
-- while ((c = fgetc(jisho)) != EOF) {
-+ for (;;) {
-+ if ((sstyle & 0x4) == 0) { /* binary search? */
-+ curpnt = (sttpnt + endpnt) / 2;
-+ fseek(jisho, curpnt, 0);
-+ while ((c = fgetc(jisho)) != EOF) {
-+ curpnt++;
-+ if (c == EOL) break;
-+ }
-+ if (c == EOF) break;
-+ if (curpnt >= endpnt) {
-+ fseek(jisho, sttpnt, 0);
-+ sstyle |= 0x4; /* linear search */
-+ }
-+ }
-+
-+ if (debug) {fprintf(errout, "%d:%d\t%d\t%d\t", sstyle, sttpnt, curpnt, endpnt);}
-+ c = fgetc(jisho);
- pbuf = &combuf[1]; /* ' ' is end-symbol */
- while (c == *pbuf && c != ' ' && c != EOL) {
-- if (debug) {fprintf(errout, "1:%d:%d:%d:%d:\n", c, *pbuf, ' ', EOL);}
-+/* if (debug) {fprintf(errout, "1:%d:%d:%d:%d:", c, *pbuf, ' ', EOL);}*/
-+ if (debug) {fprintf(errout, "%c", c);}
- c = fgetc(jisho); pbuf++;
-- }
-- if (debug) {fprintf(errout, "1:%d:%d:%d:%d:\n", c, *pbuf, ' ', EOL);}
-+ }
-+/* if (debug) {fprintf(errout, "1:%d:%d:%d:%d:", c, *pbuf, ' ', EOL);}*/
-+ if (debug) {fprintf(errout, "%c", c);}
- if (c == ' ' && (*pbuf == ' ' || *pbuf == '\n')) { /* found */
-+ if (debug) {fprintf(errout, "found\n");}
- if ((errcod = write(commsock, SERVER_FOUND, 1)) >= 0)
- while ((c = fgetc(jisho)) != EOF) {
- *pbuf = c;
-@@ -770,18 +789,35 @@
- }
- return(0);
- }
-- if (comp(*pbuf, c, sstyle)) {
-- if (debug) {
-- fprintf(stderr, "comp break %d \n", ftell(jisho));
-- }
-- break;
-+ if (debug) {
-+ int ch;
-+
-+ if (c != ' ')
-+ do {
-+ ch = fgetc(jisho);
-+ fprintf(errout, "%c", ch);
-+ } while (ch != ' ' && ch != EOL);
-+ fprintf(errout, "unmatched\n");
- }
-- /* fix 1992/3/6 under suggestion */
-- /* of guchi@pfu.fujitsu.co.jp */
-- while ((c = fgetc(jisho)) != EOF) {
-- if (c == EOL) break;
-+ if (sstyle & 0x4) {
-+ if (comp(*pbuf, c, sstyle&~0x4)) {
-+ if (debug) {
-+ fprintf(stderr, "comp break %d \n", ftell(jisho));
-+ }
-+ break;
-+ }
-+ /* fix 1992/3/6 under suggestion */
-+ /* of guchi@pfu.fujitsu.co.jp */
-+ while ((c = fgetc(jisho)) != EOF) {
-+ if (c == EOL) break;
-+ }
-+ if (ftell(jisho) >= endpnt) break;
-+ } else {
-+ if (comp(*pbuf, c, sstyle&~0x4))
-+ endpnt = curpnt;
-+ else
-+ sttpnt = curpnt;
- }
-- if (ftell(jisho) >= endpnt) break;
- }
-
- if ((errcod = write(commsock, SERVER_NOT_FOUND, 1)) >= 0) {
--- pkgsrc/inputmethod/skkserv/patches/Attic/patch-jisyo 2002/05/31 12:59:59 1.1
+++ pkgsrc/inputmethod/skkserv/patches/Attic/patch-jisyo 1.1.64.1
--- pkgsrc/inputmethod/tomoe-gtk/Makefile 2010/06/13 22:44:50 1.7
+++ pkgsrc/inputmethod/tomoe-gtk/Makefile 2010/07/04 07:18:44 1.7.2.1
--- pkgsrc/inputmethod/tomoe-gtk/distinfo 2010/05/14 11:02:20 1.2
+++ pkgsrc/inputmethod/tomoe-gtk/distinfo 2010/07/04 07:18:44 1.2.2.1
$NetBSD: patch-ab,v 1.1.2.2 2010/07/04 07:18:44 agc Exp $
Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
--- src/tomoe-reading-search.c.orig 2007-04-25 07:49:31.000000000 +0000
+++ src/tomoe-reading-search.c
@@ -203,7 +203,7 @@ tomoe_reading_search_init (TomoeReadingS
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 4);
/*gtk_widget_show (label);*/
- adj = gtk_adjustment_new (1.0, 1.0, 200.0, 1.0, 5.0, 5.0);
+ adj = gtk_adjustment_new (1.0, 1.0, 200.0, 1.0, 5.0, 0.0);
spin = gtk_spin_button_new (GTK_ADJUSTMENT (adj), 0.0, 0);
priv->min_strokes_spin = spin;
g_signal_connect (G_OBJECT (spin), "value-changed",
@@ -217,7 +217,7 @@ tomoe_reading_search_init (TomoeReadingS
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 4);
/*gtk_widget_show (label);*/
- adj = gtk_adjustment_new (20.0, 1.0, 200.0, 1.0, 5.0, 5.0);
+ adj = gtk_adjustment_new (20.0, 1.0, 200.0, 1.0, 5.0, 0.0);
spin = gtk_spin_button_new (GTK_ADJUSTMENT (adj), 0.0, 0);
priv->max_strokes_spin = spin;
g_signal_connect (G_OBJECT (spin), "value-changed",
--- pkgsrc/inputmethod/unicon-im/patches/patch-aa 2002/06/15 09:29:15 1.1
+++ pkgsrc/inputmethod/unicon-im/patches/patch-aa 1.1.64.1
--- pkgsrc/inputmethod/unicon-im/patches/patch-ac 2002/06/15 09:29:15 1.1
+++ pkgsrc/inputmethod/unicon-im/patches/patch-ac 1.1.64.1
--- pkgsrc/inputmethod/unicon-im/patches/patch-ag 2002/06/15 09:29:16 1.1
+++ pkgsrc/inputmethod/unicon-im/patches/patch-ag 1.1.64.1