delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/10/24/10:11:59

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Wed, 24 Oct 2001 18:10:36 +0400
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.53 RC/4)
Reply-To: egor duda <cygwin-developers AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <4412910263.20011024181036@logos-m.ru>
To: Earnie Boyd <earnie_boyd AT yahoo DOT com>
CC: cygwin-developers AT cygwin DOT com
Subject: Re: Need name and functionality suggestions for a new utility
In-Reply-To: <3BD6C60D.B37C39EE@yahoo.com>
References: <20011024005137 DOT A29851 AT redhat DOT com>
<007f01c15c7b$84f86a50$65f504c0 AT sos> <3BD6AFAF DOT 8DC42F4A AT yahoo DOT com>
<539145530 DOT 20011024170752 AT logos-m DOT ru> <3BD6C60D DOT B37C39EE AT yahoo DOT com>
MIME-Version: 1.0

Hi!

Wednesday, 24 October, 2001 Earnie Boyd earnie_boyd AT yahoo DOT com wrote:

>> Wednesday, 24 October, 2001 Earnie Boyd earnie_boyd AT yahoo DOT com wrote:
>> 
>> EB> Ok, for item 1 you simply
>> 
>> EB> * mkdir /dll-1.3.3
>> EB> * mkdir /dll-test
>> EB> * move /bin/cygwin1.dll to /dll-1.3.3
>> EB> * install your test cygwin1.dll to /dll-test
>> EB> * cp /etc/profile /etc/profile-rls
>> EB> * cp /etc/profile /etc/profile-test
>> EB> * add the /dll-1.3.3 to the PATH settings in the /etc/profile-rls.
>> EB> * add the /dll-test to the PATH settings in the /etc/profile-test.
>> EB> * cp /cygwin.bat /cygwin-rls.bat
>> EB> * cp /cygwin.bat /cygwin-test.bat
>> EB> * add a copy of /etc/profile-rls to /etc/profile in the cygwin-rls.bat
>> EB> * add a copy of /etc/profile-test to /etc/profile in the cygwin-test.bat
>> EB> * issue - executing cygwin binaries outside of a Cygwin enabled shell.
>> EB> * resolution - set the PATH manually before executing binaries.
>> 
>> EB> This gives the isolation you need for the current releases of Cygwin
>> EB> without fancy manipulations.
>> 
>> EB> Given the simplicity of the isolation above, are differing mount tables
>> EB> necessary?
>> 
>> 1. somebody may want to have, say, /usr/include different across
>> his cygwin "environments" or "profiles".

EB> Ok

EB> * mv /usr/include /usr/include-rls
EB> * install your test versions to /usr/include-test
EB> * ln -s /usr/include-rls /usr/include (or create a mount entry).
EB> * modify your cygwin-rls.bat and cygwin-test.bat files to do the proper
EB> forced symlink (or forced mount entry).

but i want to use these environments (gasp) simultaneously! Ain't it
a multitasking OS?

>> 2. changing $PATH is not enough. for example, system() calls /bin/sh,
>> and doesn't perform $PATH lookup.

EB> That's fine, in the scenario I described above the part that changed was
EB> the cygwin1.dll not the sh.exe binary.  I just don't get why anything
EB> else is necessary to isolate a test version of cygwin1.dll.

the problem is not with test versions, but with separate environments.
changing $PATH works as long as programs are called without full path.
and calling application using full path is rather common practice,
isn't it? :)

EB> If a differing mount table is desired, and I do see potential PRO's for
EB> such a thing then a CYGWIN option "mountkey=foo" should be added and a
EB> tool "cygremount" that copies the "mount v2" keys to a user specified
EB> value be given.

exactly.

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019