Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  6 Nov 2000 16:19:29 -0800 (PST)
From:      taguchi@tohoku.iij.ad.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/22654: [FIX] japanese/tcl76
Message-ID:  <20001107001929.CEECE37B479@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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>---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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001107001929.CEECE37B479>