X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=r2j55UjzQ+ztsHVt ecdCMxRRj1g+qhnBZfYNe+JDbz4U3BNHelXNo3KE017uWbl/hiGrAKpht/HDN3io hUwIdO9C4NN+IueCll36TybhFo3foGgzLzpuDj+NHZkjFFT+jFqQbRNCkI2rgWP2 ID5/9o4xS867+RtDhRBGme25G2Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=/SlQ8/qqw5iK1njbxQJlxL M7eAk=; b=Rt6tSi8L2bkLP+PelxysB0Bko7T7JSft6hWB8MF2AGIQtZ6gFF//s4 jml/cAwkaoewS/u2Sio6AvPYdKzxdJHHMuJCctnYQ+ctTCORZ7Ende0ta97c7hxP QAxOmql+4E2IQ8Q9qzewJ/YBxhdoOTghIzYUFYMBqh5PnXMQZgX5g= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: vms173021pub.verizon.net Message-id: <5407D6E7.4040509@cygwin.com> Date: Wed, 03 Sep 2014 23:05:11 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: /usr/local/bin symbolic link disappears every time cyg setup is run References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit On 09/03/2014 05:19 PM, Dat Head wrote: > I have a symlink from /usr/local/bin to /3TB-external/bin/CYGWIN to keep > architecture independent bin files on an external drive for portability. > > every time I run cyg setup.exe it removes the symlink and creates an > empty /usr/local/bin directory - is it really supposed to do that? > are there some cygwin pkgs (none that I have installed because it has > never put anything there) that put files there? (even if there are, > it shouldn't zap the symlink) /usr/local is a common subtree on Linux systems, common enough that setup makes sure it exists by creating it. Setup, though, doesn't know about all the variations of symlinks that Cygwin itself does so its pretty heavy-handed when it comes to symlinks that get in its way. As a work-around, you could script setup so that it recreates the symlink you want with each run. You could even make your own "mirror" which provides a package that contains only a postinstall script that does this, so that anytime you run setup, you could install or reinstall this package from your own mirror to make this more generic and integrated. Another alternative is to take a look at setup's source and see if you can create a patch to handle this better. You can probably think up some other possibilities for a solution that you like even better. :-) -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple