delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/04/13:49:59

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=tlAo3sMDphY2GWkRXP5zLef/2sp/mnslsFO4T9sh8YY3fSryY1jVN
9Xw4eCH8WAXQAI40iDYagNdLmMz//gigCuGhdp9xzyfuaF915bUK6Yd3258E3+n2
wwEqp0bMSS1l0oOnN0mHew7AOHJFoMILNcXTDIltYz0dHW3lqsucKs=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=oPbgS0gD+whLBIX5xtocDxZEEAw=; b=oGJMiZ6Z3fmfAsVx8Bk7v3jeuhWZ
oZ6egVnLdBsSIGct3svuA2E5L5S04PhKOpo/Gs6jPb2JhDr8DhSGCsUG0t/ssA2w
WpDSQvo+wKVyvbB+ExD1CmS3qIq6CX7dQX5sA0E0+DKPnqeRa4kigD/2wJ0DJmCq
gv9KRzv8D3U9bjU=
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=-3.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Kurt Franke <Kurt-Franke AT web DOT de>
Subject: Re: /usr/local/bin symbolic link disappears every time cyg setup is run
Date: Thu, 4 Sep 2014 17:48:32 +0000 (UTC)
Lines: 57
Message-ID: <loom.20140904T193717-696@post.gmane.org>
References: <CAMQzRBp_wiGu76q8_e42+vE=uo_fHzQU6j6wh-0DDjtP2AVkHw AT mail DOT gmail DOT com> <5407D6E7 DOT 4040509 AT cygwin DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Larry Hall (Cygwin <reply-to-list-only-lh <at> cygwin.com> writes:

> 
> 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. 
> 

I just use /usr/local as a mount point:

$> df /usr/local/
Filesystem                1K-blocks      Used Available Use% Mounted on
D:/cygwin-local/usr/local 766838780 405249584 361589196  53% /usr/local

setup may create any structure under this mount point,
but this has no effect in cygwin due to the mount will hide
the previous files/directories at this location

this methode prevents me from putting directory tres inside cygwin tree
which are not delivered via cygwin setup.
I do this also for /home


snip from /etc/fstab :
D:/cygwin-local/usr/local /usr/local some_fs binary 0 0
D:/cygwin-local/home /home some_fs binary 0 0



regards

kf







--
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