Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Mon, 5 Jul 2004 17:31:40 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: tar and the symlinks Message-ID: <20040705213139.GH5602@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <17F5FEED8AA6D41185B100508BAF1B0608E3EF42 AT meteor DOT tls DOT fr DOT astrium DOT corp> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040705140344 DOT 03260e28 AT pop DOT prospeed DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.1.0.6.0.20040705140344.03260e28@pop.prospeed.net> User-Agent: Mutt/1.4.1i On Mon, Jul 05, 2004 at 02:08:44PM -0400, Larry Hall wrote: >At 06:54 AM 7/5/2004, you wrote: >>I (tried to) read the FAQ carefully and did'nt find a clue. >> >>The problem is for the packaging of applications that install some of >>their files in a directory that is a link. On NT4 I have a strange >>behavior: the directory is hidding the link and the files didn't mix. >>OK, I know that my english is not very clear (sorry but I'm french >>:->), >> >>so let's explain with an example: >> >>1/ I am porting the xlockmore application. This is an X11 program and >>after being compiled and configured the X11 resource files will be >>installed in $prefix/lib/X11/app-defaults (prefix is /usr/X11R6) >> >>2/ I package the file within a bzip2 compress tar-ball, and this tar >>(for example for the motif GUI xmlock) contains: >>usr/ >>usr/X11R6/ >>usr/X11R6/bin/ >>usr/X11R6/bin/xmlock.exe >>usr/X11R6/lib/ >>usr/X11R6/lib/X11/ >>usr/X11R6/lib/X11/app-defaults/ >>usr/X11R6/lib/X11/app-defaults/XmLock >>3/ after using setup to install this package I have in /usr/X11R6 a >>directory named app-defaults (which is "hiding" the symlink for the >>initial app-defaults which is a link to /etc/X11/app-defaults and is >>created when installing xorg): > >Right. This is standard 'tar' behavior. There's nothing Cygwin >specific here. 'tar's info page has this to say: Actually, I think what is being described is probably that setup.exe's tar emulation doesn't know about .lnk style symlinks and so it is capable of restoring a symlink to a file in a directory which already has a file or directory with the same name as the symlink. The workaround for this should be to set the CYGWIN environment variable to CYGWIN=nowinsymlinks prior to creating the symlink. setup.exe knows about the non-lnk style symlinks so it may do a better job at detecting this situation. 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/