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/



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

2007-11-15 Thread Schulman . Andrew

New versions of the unison2.13, unison2.17, and unison2.27 packages are
available in the Cygwin distribution. Unison is a file synchronizer for
Unix and Windows. It allows two replicas of a collection of files and
directories to be stored on different hosts (or different disks on the
same host), modified separately, and then brought up to date by
propagating the changes in each replica to the other.

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.

Unison is packaged for Cygwin as three independent packages, each
representing a version of Unison that is incompatible with the other
two.  You have to run the same version of Unison on the client and
server, or Unison will issue an error message and quit.  By installing
one or more of these packages side by side, you can use whichever one
you need to synchronize with a particular host.  Please read
/usr/share/doc/unison*/README.Cygwin for more details.

The unison* packages also install a convenience symlink from
/usr/bin/unison to one of the versioned unison executables, e.g.
unison-2.27.exe.  alternatives(8) is used to manage the symlink.  If the
symlink is being managed in auto mode, then it will automatically
track the highest numbered version of unison that you have installed.
You can override this choice by either changing the symlink manually
with ln(1), or by using alternatives(8):

alternatives --display unison   shows you the installed versions of
unison, their priorities, which executable the symlink points to, and
whether the symlink is being managed in auto or manual mode.

alternatives --config unison   presents a menu from which you can choose
which version you want to use as the default.  This puts the symlink in
manual mode.

alternatives --auto unison   puts the symlink in automatic mode, where
it will always point to the highest numbered version of unison that's
installed on your host.

alternatives --set unison /usr/bin/unison-$V.exe   forces the symlink to
point to unison-$V.exe, and puts it in manual mode.

Please see alternatives(8) for more details.  Please note:  if you
installed any of the unison* packages prior to this release, a symlink
from /usr/bin/unison was created for you on installation.
alternatives(8) considers this symlink to be in manual mode, so it
will not touch it until or unless you run alternatives with --config,
--auto, or --set as described above.

Andrew E. Schulman


***


To update your installation, click on the Install Cygwin now link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the List-Unsubscribe:  tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


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



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

2007-11-14 Thread Schulman . Andrew

New versions of the unison2.13, unison2.17, and unison2.27 packages are
available in the Cygwin distribution. Unison is a file synchronizer for
Unix and Windows. It allows two replicas of a collection of files and
directories to be stored on different hosts (or different disks on the
same host), modified separately, and then brought up to date by
propagating the changes in each replica to the other.

Unison is packaged for Cygwin as three independent packages, each
representing a version of Unison that is incompatible with the other
two.  You have to run the same version of Unison on the client and
server, or Unison will issue an error message and quit.  By installing
one or more of these packages side by side, you can use whichever one
you need to synchronize with a particular host.  Please read
/usr/share/doc/unison*/README.Cygwin for more details.

The unison* packages also install a convenience symlink from
/usr/bin/unison to one of the versioned unison executables, e.g.
unison-2.27.exe.  alternatives(8) is used to manage the symlink.  If the
symlink is being managed in auto mode, then it will automatically
track the highest numbered version of unison that you have installed.
You can override this choice by either changing the symlink manually
with ln(1), or by using alternatives(8):

alternatives --display unison   shows you the installed versions of
unison, their priorities, which executable the symlink points to, and
whether the symlink is being managed in auto or manual mode.

alternatives --config unison   presents a menu from which you can choose
which version you want to use as the default.  This puts the symlink in
manual mode.

alternatives --auto unison   puts the symlink in automatic mode, where
it will always point to the highest numbered version of unison that's
installed on your host.

alternatives --set unison /usr/bin/unison-$V.exe   forces the symlink to
point to unison-$V.exe, and puts it in manual mode.

Please see alternatives(8) for more details.  Please note:  if you
installed any of the unison* packages prior to this release, a symlink
from /usr/bin/unison was created for you on installation.
alternatives(8) considers this symlink to be in manual mode, so it
will not touch it until or unless you run alternatives with --config,
--auto, or --set as described above.

Changes in these releases:

unison2.27-2.27.48-1:
- Many upstream bug fixes, new features, and rewrites.  See
http://www.seas.upenn.edu/~bcpierce/unison/download/releases/beta/unison-manual.html#news
 for details.
- Fixed unwanted output when -terse or -silent is in effect.
- Renamed unison-manual.html to unison-2.27.48-manual.html in Cygwin
source.
- Use alternatives(8) to manage /usr/bin/unison symlink.

unison2.17-2.17.1-3:
- Renamed unison-manual.html to unison-2.17.1-manual.html in Cygwin
source.
- Use alternatives(8) to manage /usr/bin/unison symlink.

unison2.13-2.13.16-1:
- Renamed unison-manual.html to unison-2.13.16-manual.html in Cygwin
source.
- Use alternatives(8) to manage /usr/bin/unison symlink.

Andrew E. Schulman


***


To update your installation, click on the Install Cygwin now link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the List-Unsubscribe:  tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


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