From owner-freebsd-ports@FreeBSD.ORG Wed Mar 14 12:39:29 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC99A16A400 for ; Wed, 14 Mar 2007 12:39:29 +0000 (UTC) (envelope-from martin@matuska.org) Received: from mail.vx.sk (neo.vx.sk [88.198.35.14]) by mx1.freebsd.org (Postfix) with ESMTP id A707213C448 for ; Wed, 14 Mar 2007 12:39:29 +0000 (UTC) (envelope-from martin@matuska.org) Received: from localhost (localhost [127.0.0.1]) by mail.vx.sk (Postfix) with ESMTP id 11CAF3F454; Wed, 14 Mar 2007 13:19:37 +0100 (CET) X-Virus-Scanned: amavisd-new at mail.vx.sk Received: from mail.vx.sk ([127.0.0.1]) by localhost (mail.vx.sk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DYX1fXDpqD8v; Wed, 14 Mar 2007 13:19:33 +0100 (CET) Received: from [10.114.10.10] (gw1-nat-107.roburnet.sk [85.248.125.107]) by mail.vx.sk (Postfix) with ESMTP id A08CB3F431; Wed, 14 Mar 2007 13:19:33 +0100 (CET) Message-ID: <45F7E854.4090609@matuska.org> Date: Wed, 14 Mar 2007 13:19:32 +0100 From: Martin Matuska User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: Stephen Montgomery-Smith References: <45F71306.8040306@math.missouri.edu> In-Reply-To: <45F71306.8040306@math.missouri.edu> X-Enigmail-Version: 0.94.1.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-ports@freebsd.org Subject: Re: Why so many tcl's and tk's X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 12:39:30 -0000 Stephen Montgomery-Smith wrote / napísal(a): > Are the different versions of tcl and tk really not backwards > compatible with earlier versions? I can guess that there have been > heated conversations about this, but a my look at the mailing list > archives didn't give me anything. But it sure would be much nicer if > there was just a tcl and a tcl-devel port or something like that. Are > there really applications that need tcl83 but break on tcl84? > > Stephen > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" The various Tcl and Tk versions do have incompatible changes in the interfaces and in the command syntax. It is very much like Berkeley DB - you have several versions, too. You have to rewrite your program to support more (or newer) Tcl versions. The idea on the current implementation in the FreeBSD ports tree is to stay compatible with older tcl scripts and libraries, too. But the structure of the supporting bsd.tcl.mk is very old and does not suit the needs of current applications anymore. Another recent issue is the handling of threaded and non-threaded versions of Tcl 8.4 and 8.5. The current implementation ist just a workaround, so that applications that explicitly require a threaded Tcl build can use it. A threaded Tcl build is 100% compatible to a non-threaded Tcl. As far as I know, threaded Tcl 8.4 builds and runs on all common FreeBSD architectures. A very clean and good solution would to have a threaded Tcl only. I will test this against all libraries from the FreeBSD ports that extend Tcl to check if they work with the threaded version correctly. I am working with miwi@ on a new implementation of bsd.tcl.mk A first working version can be viewed under: http://www.matuska.org/martin/cgi/viewvc.cgi/ports/Mk/bsd.tcl.mk The final version will probably be different - the threading part might be removed completely in favour of using threaded tcl by default.