From owner-freebsd-ports Mon Nov 6 16:20: 6 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1608437B4D7 for ; Mon, 6 Nov 2000 16:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA86752; Mon, 6 Nov 2000 16:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id CEECE37B479; Mon, 6 Nov 2000 16:19:29 -0800 (PST) Message-Id: <20001107001929.CEECE37B479@hub.freebsd.org> Date: Mon, 6 Nov 2000 16:19:29 -0800 (PST) From: taguchi@tohoku.iij.ad.jp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/22654: [FIX] japanese/tcl76 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22654 >Category: ports >Synopsis: [FIX] japanese/tcl76 >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 06 16:20:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Taguchi, Takeshi >Release: FreeBSD-4.1.1-STABLE >Organization: IIJ >Environment: >Description: japanese/tcl76, old japanized tcl interp, was broken. >How-To-Repeat: # cd ${PORTSDIR}/japanese/tcl76 # make .... you will get error! >Fix: Now, FreeBSD-4-STABLE, Posix error codes ENOTSUP and EOPNOTSUP have same value. See /usr/include/sys/errno.h: #define ENOTSUP EOPNOTSUP BUT in tcl76, #ifdef ENOTSUP case ENOTSUP: hogehoge... #endif ... #ifdef EOPNOTSUPP case EOPNOTSUP: gehogeho... #endif This will make error(diplicated case eror). Apply following patch. Thanks. BEGIN>---88--- diff -urN tcl76.old/Makefile tcl76/Makefile --- tcl76.old/Makefile Tue Nov 7 09:17:09 2000 +++ tcl76/Makefile Tue Nov 7 09:16:03 2000 @@ -7,6 +7,7 @@ PORTNAME= tcl PORTVERSION= 7.6 +PORTREVISION= 1 CATEGORIES= japanese lang MASTER_SITES= ftp://ftp.scriptics.com/pub/tcl/tcl7_6/ DISTNAME= ${PORTNAME}${PORTVERSION}p2 diff -urN tcl76.old/files/patch-ae tcl76/files/patch-ae --- tcl76.old/files/patch-ae Thu Jan 1 09:00:00 1970 +++ tcl76/files/patch-ae Tue Nov 7 09:12:13 2000 @@ -0,0 +1,20 @@ +--- ../generic/tclPosixStr.c~ Fri Oct 11 05:58:40 1996 ++++ ../generic/tclPosixStr.c Tue Nov 7 09:11:13 2000 +@@ -336,7 +336,7 @@ + #ifdef ENXIO + case ENXIO: return "ENXIO"; + #endif +-#ifdef EOPNOTSUPP ++#if defined(EOPNOTSUPP) && (EOPNOTSUPP != ENOTSUP) + case EOPNOTSUPP: return "EOPNOTSUPP"; + #endif + #ifdef EPERM +@@ -783,7 +783,7 @@ + #ifdef ENXIO + case ENXIO: return "no such device or address"; + #endif +-#ifdef EOPNOTSUPP ++#if defined(EOPNOTSUPP) && (EOPNOTSUPP != ENOTSUP) + case EOPNOTSUPP: return "operation not supported on socket"; + #endif + #ifdef EPERM END>---88--- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message