Re: [ANNOUNCEMENT] Updated: unison2.13, unison2.17, unison2.27

2007-11-22 Thread Igor Peshansky
On Wed, 14 Nov 2007, Andrew Schulman wrote:

  Also is bash style shell arithmetic used for the priority allowed in a
  /bin/sh script ?

 I'm not sure, since bash is the default shell now.  But since ash is
 still out there, I've removed the offending arithmetic (which I now take
 care of in my makefile instead).

Or you could make the postinstall script a bash script, and make bash a
prerequisite of unison (no big deal, as bash is already in Base).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

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



Re: [ANNOUNCEMENT] Updated: unison2.13, unison2.17, unison2.27

2007-11-19 Thread Andy Moreton
On Fri, 16 Nov 2007 19:20:30 GMT, Andrew Schulman wrote:

 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.

After removing all fo the unison packages, all of the alternatives and then 
reinstalling, everything 
appears to be happy again.

Thanks,

AndyM


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



Re: [ANNOUNCEMENT] Updated: unison2.13, unison2.17, unison2.27

2007-11-16 Thread Andrew Schulman
  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/



Re: [ANNOUNCEMENT] Updated: unison2.13, unison2.17, unison2.27

2007-11-15 Thread Andy Moreton
On Thu, 15 Nov 2007 12:01:29 GMT,  Andrew E. Schulman wrote:

 Changes in these releases:
 - Fixed two bugs in the postinstall scripts.  One of them caused
 installation to fail in some cases.  Thanks to Andy Moreton for pointing
 these out.

Thanks for updating this, but there still seem to be minor problems. 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 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. 

AndyM



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



Re: [ANNOUNCEMENT] Updated: unison2.13, unison2.17, unison2.27

2007-11-14 Thread Andy Moreton
On Wed, 14 Nov 2007 17:20:33 GMT,  Andrew Schulman wrote:

 New versions of the unison2.13, unison2.17, and unison2.27 packages are
 available in the Cygwin distribution.

The /etc/postinstall/unison... installer scripts assume that alternatives is 
available on the path. On 
my system /usr/sbin is not on the PATH, so the postinstall script fails.

Also is bash style shell arithmetic used for the priority allowed in a /bin/sh 
script ?

AndyM


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



Re: [ANNOUNCEMENT] Updated: unison2.13, unison2.17, unison2.27

2007-11-14 Thread Andrew Schulman
 The /etc/postinstall/unison... installer scripts assume that alternatives is 
 available on the path. On 
 my system /usr/sbin is not on the PATH, so the postinstall script fails.

Oops.

 Also is bash style shell arithmetic used for the priority allowed in a 
 /bin/sh script ?

I'm not sure, since bash is the default shell now.  But since ash is still out
there, I've removed the offending arithmetic (which I now take care of in my
makefile instead).

Thanks for pointing these out.  I've just uploaded a new version that fixes
both of these problems.  It should be out shortly.

Thanks,
Andrew.


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