delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/16/14:21:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epamail DOT epa DOT gov>
Subject: Re: [ANNOUNCEMENT] Updated: unison2.13, unison2.17, unison2.27
Date: Fri, 16 Nov 2007 19:20:30 +0000 (UTC)
Lines: 61
Message-ID: <loom.20071116T185718-35@post.gmane.org>
References: <announce DOT OF9FFCF253 DOT FBD18126-ON85257394 DOT 0041D4DE-85257394 DOT 0041A159 AT epamail DOT epa DOT gov> <Xns99E9D941BD770ajm AT 80 DOT 91 DOT 229 DOT 13>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
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

>  The man page for alternatives
> (8) does not seem to specify the allowed range for priority values, but using 
> 2017 for unison 2.17 
> and 2027 for unison 2.27 seem to upset it:
> 
> ajm> /usr/sbin/alternatives.exe --display unison
> path to alternate expected in /var/lib/alternatives/unison
> ajm>
> 
> Editing /var/lib/alternatives/unison as follows seems to fix things:
> 
> ajm> cat /var/lib/alternatives/unison
> auto
> /usr/bin/unison
> 
> /usr/bin/unison-2.17
> 17
> /usr/bin/unison-2.27
> 27
> ajm> /usr/sbin/alternatives.exe --display unison
> unison - status is auto.
>  link currently points to /usr/bin/unison-2.27
> /usr/bin/unison-2.17 - priority 17
> /usr/bin/unison-2.27 - priority 27
> Current `best' version is /usr/bin/unison-2.27.
> ajm ~> 

I can't reproduce this problem on my host:

$ alternatives --display unison
unison - status is auto.
 link currently points to /usr/bin/unison-2.27
/usr/bin/unison-2.13 - priority 2013
/usr/bin/unison-2.17 - priority 2017
/usr/bin/unison-2.27 - priority 2027
Current `best' version is /usr/bin/unison-2.27.

$ cat /var/lib/alternatives/unison
auto
/usr/bin/unison

/usr/bin/unison-2.13
2013
/usr/bin/unison-2.17
2017
/usr/bin/unison-2.27
2027

> I also found a mixture of names - the new versions install "unison" symlinks, 
> but the older versions 
> installed "unison.exe" symlinks. Some of this may have been my hand edits to 
> fix things up though. 

I'm not sure.  At this point I recommend that you remove and reinstall all of
the unison alternatives on your host, as follows:

rm /var/lib/alternatives/unison
for f in /etc/postinstall/unison* ; do $f ; done

and see if that clears up the problem.



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

- Raw text -


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