delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/08/22:27:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 8 May 2005 22:26:11 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Fixing strace and cygcheck so that they work with mount -X
Message-ID: <20050509022611.GA7850@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <427BE5FE DOT 7020000 AT fabeljet DOT com> <cb51e2e0505071711201152ca AT mail DOT gmail DOT com> <20050508003215 DOT GA24398 AT trixie DOT casa DOT cgf DOT cx> <cb51e2e0505081248560c07c8 AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 61 DOT 0505081605450 DOT 21700 AT slinky DOT cs DOT nyu DOT edu> <20050508230637 DOT GD3896 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT GSO DOT 4 DOT 61 DOT 0505081958360 DOT 21700 AT slinky DOT cs DOT nyu DOT edu> <20050509002126 DOT GH3896 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20050509002126.GH3896@trixie.casa.cgf.cx>
User-Agent: Mutt/1.5.8i

On Sun, May 08, 2005 at 08:21:26PM -0400, Christopher Faylor wrote:
>Ultimately, I just have to make strace and cygcheck understand the
>cygwin arguments and environment variables.  Then we won't need this.

I just changed cygcheck.exe, and strace.exe so that they will play
better when living in a directory which is mounted with the "-X" option.
This requires new versions of the two programs as well as a new version
of cygwin1.dll.  Since cygcheck and strace will understand cygwin
command line arguments and environment variables, this means that
special mounts for these two programs will not be needed and the newly
minted http://cygwin.com/faq/faq0.html#TOC93 can eventually be
simplified when cygwin 1.5.17 is released.

I would appreciate it if people would check out the latest snapshot to
verify if I actually got this working in all scenarios (directories
mounted with -X, -x, not mounted at all, or mounted without -X and -x).

Since the snapshot has changes to cygcheck.exe and strace.exe, this will
entail downloading and installing the cygwin-inst-*.tar.bz2 file,
extracting cygwin1.dll, cygcheck.exe, and strace.exe from it, and moving
these files to the correct locations with non-cygwin commands.

e.g.:

  c:\>bash
  bash$ cd /tmp
  bash$ mkdir deleteme
  bash$ cd deleteme
  bash$ wget http://cygwin.com/snapshots/cygwin-inst-20050508.tar.bz2
  bash
  bash$ tar xjf cygwin-inst-20050508.tar.bz2 usr/bin/cygwin1.dll usr/bin/cygcheck.exe usr/bin/strace.exe
  bash$ cp /bin/cygwin1.dll /bin/cygwin1.dll.safe
  bash$ exit # terminate all cygwin processes
  c:\>copy c:\cygwin\tmp\deleteme\usr\bin\*.* c:\cygwin\bin
  c:\>bash
  bash$ rm -r /tmp/deleteme 
  bash$ # play with strace/cygcheck

(
The above is an *example* of what could be done to install the needed
files.  There may be typos in the example or it may not work perfectly
on your system.  It is intended as a *hint* for those who are savvy
enough to test things without excessive amounts of hand holding.

If you are not comfortable with UNIX commands like "wget" or "tar",
please do not attempt this.

If you do not know what a Windows command shell is or you cannot figure
out how to run bash from the command shell or you are not comfortable
with command shell commands like "copy" please do not try this.

May cause intense itching.

Discontinue if symptoms persist for more than a millennium.

May suddenly accelerate to dangerous speeds.

Do not taunt the Cygwin snapshot.

Not valid in Alaska or Tennessee.

UNIX ® is a registered trademark of the Open Group in the United States
and other countries.
)

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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