delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/12/13:01:57

X-Spam-Check-By: sourceware.org
Date: Thu, 12 Apr 2007 13:01:32 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Dave Korn <dave DOT korn AT artimi DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: bash: tar: command not found
In-Reply-To: <016001c77d23$c18f7480$2e08a8c0@CAM.ARTIMI.COM>
Message-ID: <Pine.GSO.4.63.0704121259420.1570@access1.cims.nyu.edu>
References: <BF28B531A8C7E3409A8AC9C741CB580004BA0895 AT nwhqsemail01 DOT WSDOT DOT LOC> <461D6DBB DOT 1000301 AT cygwin DOT com> <BF28B531A8C7E3409A8AC9C741CB580004BA08C3 AT nwhqsemail01 DOT WSDOT DOT LOC> <461D7F29 DOT 10405 AT cygwin DOT com> <BF28B531A8C7E3409A8AC9C741CB580004BA0932 AT nwhqsemail01 DOT WSDOT DOT LOC> <014a01c77d17$0206ac20$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <evll6r$op8$1 AT sea DOT gmane DOT org> <A8C9B1E752D80D42AF1F89CE4D93CB1F024ADDFDB0 AT USIL-EXCHG01 DOT us DOT navigon DOT local> <016001c77d23$c18f7480$2e08a8c0 AT CAM DOT ARTIMI DOT COM>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Thu, 12 Apr 2007, Dave Korn wrote:

> On 12 April 2007 17:49, Jeff Hawk wrote:
>
> >> -----Original Message-----
> >> From: Thorsten Kampe
> >> Sent: Thursday, April 12, 2007 11:03 AM
>
> >> \cygwin\usr\bin and \cygwin\usr\lib are /real/ directories created by
> >> the initial Cygwin installation routine. He shouldn't delete those
> >> directories - just keep them empty...
> >
> > Not true...
> >
> > I have Cygwin installed and there is NO c:\cygwin\usr\bin directory
> >
> > As has been mentioned before, /usr/bin is a *mount* point, not a real
> > directory.
> >
> > 0> mount
> > C:\cygwin\bin on /usr/bin type system (binmode)   <<<<<<<<<<<
> > C:\cygwin\lib on /usr/lib type system (binmode)
> > C:\cygwin on / type system (binmode)
> >
> > Like that ^^^^^^^^^^^
>
>   Yeh, but it helps to create a real directory to back up a mountpoint,
> because that avoids a warning message.

Only if you explicitly use "mount".  If you let setup create the mounts
for you, there is no warning message. :-)

> And setup.exe is /supposed/ to create them:  see do_install_thread in
> install.cc:
>
>   for (i = 0; Installer::StandardDirs[i]; i++)
>   {
>     std::string p = cygpath (Installer::StandardDirs[i]);
>     if (p.size())
>       io_stream::mkpath_p (PATH_TO_DIR, "file://" + p);
>   }
>
> const char *
> Installer::StandardDirs[] = {
>   "/bin",
>   "/etc",
>   "/lib",
>   "/tmp",
>   "/usr",
>   "/usr/bin",
>   "/usr/lib",
>   "/usr/src",
>   "/usr/local",
>   "/usr/local/bin",
>   "/usr/local/etc",
>   "/usr/local/lib",
>   "/usr/tmp",
>   "/var/run",
>   "/var/tmp",
>   0
> };

Setup's io_stream uses Cygwin mounts.  Thus, once "file:///usr" is
created, mkdir_p("file:///usr/bin") is a no-op...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

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