X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: /usr/local/bin symbolic link disappears every time cyg setup is run
References: <CAMQzRBp_wiGu76q8_e42+vE=uo_fHzQU6j6wh-0DDjtP2AVkHw@mail.gmail.com>
In-reply-to: <CAMQzRBp_wiGu76q8_e42+vE=uo_fHzQU6j6wh-0DDjtP2AVkHw@mail.gmail.com>
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

