ports/61751: japanese/kcc: Patch which makes it possible to compile without gcc 2.95
KIMURA Yasuhiro
yasu at home.utahime.org
Thu Jan 22 22:10:21 UTC 2004
>Number: 61751
>Category: ports
>Synopsis: japanese/kcc: Patch which makes it possible to compile without gcc 2.95
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 22 14:10:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: KIMURA Yasuhiro
>Release: FreeBSD 5.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD sugar.home.utahime.org 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Wed Jan 14 10:39:30 JST 2004 root at sugar.home.utahime.org:/usr/obj/am/eastasia/usr1/cvsup/releng_5_2/src/sys/SUGAR i386
>Description:
This patch makes it possible to compile kcc without gcc 2.95 on
5.1-RELEASE of later.
>How-To-Repeat:
>Fix:
--- kcc.port.patch begins here ---
diff -ruN japanese/kcc.dist/Makefile japanese/kcc/Makefile
--- japanese/kcc.dist/Makefile Tue Jan 20 20:34:48 2004
+++ japanese/kcc/Makefile Wed Jan 21 06:32:49 2004
@@ -7,6 +7,7 @@
PORTNAME= kcc
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
DISTNAME= ${PORTNAME}
@@ -18,10 +19,4 @@
MANLANG= ja
MAN1= kcc.1
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 501000
-USE_GCC=2.95
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN japanese/kcc.dist/files/patch-ab japanese/kcc/files/patch-ab
--- japanese/kcc.dist/files/patch-ab Thu Jan 1 09:00:00 1970
+++ japanese/kcc/files/patch-ab Wed Jan 21 06:23:24 2004
@@ -0,0 +1,36 @@
+--- kcc.c.dist Mon Mar 28 20:00:12 1994
++++ kcc.c Wed Jan 21 06:01:11 2004
+@@ -134,7 +134,7 @@
+ extern unsigned short hiragana[];
+ unsigned short *kanatbl = katakana;
+
+-void error();
++void error(char* fmt, ...);
+
+ /**********************************************************************
+ * *
+@@ -364,18 +364,17 @@
+ NAME
+ error - print formatted error message on stderr and die
+ ---------------------------------------------------------------------*/
+-#include <varargs.h>
++#include <stdarg.h>
+
+-void error(va_alist)
+- va_dcl
++void error(char *fmt, ...)
+ {
+- va_list args;
++ va_list ap;
+
+- va_start(args);
++ va_start(ap, fmt);
+ fprintf(stderr, "%s: ", progname);
+- vfprintf(stderr, va_arg(args, char *), args);
++ vfprintf(stderr, fmt, ap);
+ putc('\n', stderr);
+- va_end(args);
++ va_end(ap);
+ exit(1);
+ }
+
--- kcc.port.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list