From nobody@FreeBSD.ORG  Mon Nov  6 16:19:29 2000
Return-Path: <nobody@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
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: [FIX] japanese/tcl76
X-Send-Pr-Version: www-1.0

>Number:         22654
>Category:       ports
>Synopsis:       [FIX] japanese/tcl76
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 06 16:20:00 PST 2000
>Closed-Date:    Mon Nov 13 02:01:12 PST 2000
>Last-Modified:  Mon Nov 13 02:01:59 PST 2000
>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>---8<CUT HERE>8---
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>---8<CUT HERE>8---




>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: asami 
State-Changed-When: Mon Nov 13 02:01:12 PST 2000 
State-Changed-Why:  
Thanks, committed fix.  I didn't change PORTREVISION since the 
port didn't build before, and thus there is no need to ask people 
to upgrade. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22654 
>Unformatted:
