Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Sat, 28 Apr 2001 13:36:17 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: tar and symlinks
Message-ID: <20010428133617.A20972@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <3AEAF51B.F82E3C04@ece.gatech.edu> <20010428131012.A20786@redhat.com> <3AEAFB36.2ACF1046@ece.gatech.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <3AEAFB36.2ACF1046@ece.gatech.edu>; from cwilson@ece.gatech.edu on Sat, Apr 28, 2001 at 01:17:42PM -0400

On Sat, Apr 28, 2001 at 01:17:42PM -0400, Charles S. Wilson wrote:
>Christopher Faylor wrote:
>> 
>> On Sat, Apr 28, 2001 at 12:51:39PM -0400, Charles S. Wilson wrote:
>> >I just noticed something with my recent ncurses-5.2-5 update.  When I
>> >did the "make install prefix=/tmp/usr" step, /tmp/usr/man/man3/*
>> >contained a lot of symbolic links.  Since I did this under cygwin-1.3.1
>> >without the "useoldsymlinks" switch (whatever it is), these symbolic
>> >links were the "new" kind; Windows understood them.
>> >
>> >However, after I created the tarball & ran setup on it to actually
>> >install the new ncurses on my system prior to uploading it, I discoved
>> >that the symlinks in /usr/man/man3 thus created were OLD style.
>> 
>> setup.exe only understands how to create old-style symlinks currently.
>> I think that this is a good thing until cygwin 1.3.1 is more widely
>> accepted.
>> 
>> So, maybe in three months or so we'll upgrade setup.exe to use the new
>> style but, for now, I think it is doing the right thing.
>
>Sounds ok to me.  BUT, tar.exe all by itself behaves the same way.  Is
>that *also* the "right thing"?  I'm not sure.

Hmm.  I should have checked out what you were saying a little more to
avoid another round of email.

My version of tar creates the new style symlinks.  I just extracted the
cygwin-1.3.1.-1.tar.gz file into a dummy directory.  The symlink files
in the lib directory were 'libm.a.lnk', 'libc.a.lnk', etc.  I verified
this with the 'dir' command.

Setting CYGWIN=nowinsymlinks caused tar to create old-style symlinks.

I don't know why you are seeing different behavior.  AFAIK, tar uses the
symlink call to create symbolic links so I don't see why it would behave
any differently from 'ln -s'.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

