delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/03/23:06:04

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: <cygwin.cygwin.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
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 AT cygwin DOT com>
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: <CAMQzRBp_wiGu76q8_e42+vE=uo_fHzQU6j6wh-0DDjtP2AVkHw AT mail DOT gmail DOT com>
In-reply-to: <CAMQzRBp_wiGu76q8_e42+vE=uo_fHzQU6j6wh-0DDjtP2AVkHw@mail.gmail.com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019