From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11271 invoked by alias); 19 Dec 2002 22:12:20 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 11263 invoked from network); 19 Dec 2002 22:12:20 -0000 Received: from unknown (HELO mta5.snfc21.pbi.net) (206.13.28.241) by 209.249.29.67 with SMTP; 19 Dec 2002 22:12:20 -0000 Received: from modrick ([66.120.11.181]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with SMTP id <0H7E00DVQ0C8U2@mta5.snfc21.pbi.net> for insight@sources.redhat.com; Thu, 19 Dec 2002 14:12:08 -0800 (PST) Date: Thu, 19 Dec 2002 14:12:00 -0000 From: Mo DeJong Subject: Re: [RFA] Find init.tcl on cygwin In-reply-to: <20021219161135.GE25133@redhat.com> To: insight@sources.redhat.com Message-id: <20021219141409.5e1c9709.mdejong@uncounted.org> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit References: <20021219070416.GA21543@redhat.com> <20021219003946.24d69eec.mdejong@uncounted.org> <20021219161135.GE25133@redhat.com> X-SW-Source: 2002-q4/txt/msg00240.txt.bz2 On Thu, 19 Dec 2002 11:11:35 -0500 Christopher Faylor wrote: >> What are the configure flags that you are building with under Cygwin? >> Is it something like `.../configure --prefix=/ --datadir=/usr` ? > > I had hoped not to have to go into a lot of details about how cygwin > works but, no, that's not how I am configuring it. It wouldn't matter > if I was. > > /usr/bin == /bin == x:\cygwin\bin > > tcl apparently converts the cygwin path into a windows path and then looks > for x:\cygwin\share which doesn't exit. x:\cygwin\usr\share does exist. I was under the impression that the only place Tcl did cygwin path conversion was in the PATH env var. As far as I can tell, Tcl does not mess with the PATH, it just calls GetModuleFileName() to return the fully qualified Win32 path where the tclsh83.exe executable lives. It then looks in ../$installLib for the library files. This process works just fine for the normal Source-Navigator install, which is configured with ".../configure --prefix=/somedir/SN". I am concerned that this proposed change is going to break that. How about putting the usr/share change in a __CYGWIN__ ifdef? This should fix the Cygwin use case without breaking the SN use case. Index: win/tclWinInit.c =================================================================== RCS file: /cvs/src/src/tcl/win/tclWinInit.c,v retrieving revision 1.4 diff -u -r1.4 tclWinInit.c --- win/tclWinInit.c 26 Nov 2002 19:48:07 -0000 1.4 +++ win/tclWinInit.c 19 Dec 2002 21:53:02 -0000 @@ -196,7 +196,11 @@ */ /* CYGNUS LOCAL */ +#if defined(__CYGWIN__) + sprintf(installLib, "usr/share/tcl%s", TCL_VERSION); +#else sprintf(installLib, "share/tcl%s", TCL_VERSION); +#endif /* __CYGWIN__ */ /* END CYGNUS LOCAL */ sprintf(developLib, "../tcl%s/library", ((TCL_RELEASE_LEVEL < 2) ? TCL_PATCH_LEVEL : TCL_VERSION)); cheers Mo