This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Attn: alternatives maintainer] - ghostscript preremove breakage


Hi

This is from the setup run after updating to the latest ghostscript
package:

2008/04/13 22:27:51 Running preremove script for  ghostscript
2008/04/13 22:27:51 running: D:\\bin\bash.exe -c /etc/preremove/ghostscript.sh
2008/04/13 22:27:51 Running preremove script for  ghostscript-base
2008/04/13 22:27:51 Running preremove script for  ghostscript-x11
2008/04/13 22:27:51 running: D:\\bin\bash.exe -c /etc/preremove/ghostscript-x11.sh
path to alternate expected in /var/lib/alternatives/gs
2008/04/13 22:27:51 abnormal exit: exit code=2
2008/04/13 22:27:51 Running preremove script for  _update-info-dir
2008/04/13 22:27:51 Uninstalling ghostscript
unlink D:\/bin//gs-native.exe
2008/04/13 22:27:51 Uninstalling ghostscript-base
unlink D:\/bin//bdftops
:
:
2008/04/13 22:28:00 zsync
2008/04/13 22:28:00 running: D:\\bin\bash.exe -c /etc/postinstall/update-info-dir.sh
2008/04/13 22:28:14 running: D:\\bin\bash.exe -c /etc/postinstall/ghostscript.sh
path to alternate expected in /var/lib/alternatives/gs
2008/04/13 22:28:14 abnormal exit: exit code=2
2008/04/13 22:28:14 running: D:\\bin\bash.exe -c /etc/postinstall/ghostscript-x11.sh
path to alternate expected in /var/lib/alternatives/gs
2008/04/13 22:28:14 abnormal exit: exit code=2
2008/04/13 22:28:20 note: Installation Complete
2008/04/13 22:28:20 Ending cygwin install


What does this

 path to alternate expected in /var/lib/alternatives/gs

mean ?

I can't even do the following anymore

  > alternatives --display gs
  > path to alternate expected in /var/lib/alternatives/gs

These are the two postinstall sripts for the native and the x11 version of
ghostscript:

------------------------------ ghostscript.sh ---------------------------------
#!/bin/sh
prefix=/usr
bindir=${prefix}/bin
sbindir=${prefix}/sbin

${sbindir}/update-alternatives --install ${bindir}/gs gs ${bindir}/gs-native 10
-------------------------------------------------------------------------------

------------------------------ ghostscript-x11.sh -----------------------------
#!/bin/sh
prefix=/usr
bindir=${prefix}/bin
sbindir=${prefix}/sbin

${sbindir}/update-alternatives --install ${bindir}/gs gs ${bindir}/gs-x11 20
-------------------------------------------------------------------------------

And these are the preremove scripts:

------------------------------ ghostscript.sh ---------------------------------
#!/bin/sh
prefix=/usr
bindir=${prefix}/bin
sbindir=${prefix}/sbin

${sbindir}/update-alternatives --remove gs ${bindir}/gs-native
-------------------------------------------------------------------------------

------------------------------ ghostscript-x11.sh -----------------------------
#!/bin/sh
prefix=/usr
bindir=${prefix}/bin
sbindir=${prefix}/sbin

${sbindir}/update-alternatives --remove gs ${bindir}/gs-x11
-------------------------------------------------------------------------------


When I remove /var/lib/alternatives/gs and start from scratch I get:

12:09 AM [499]> rm /var/lib/alternatives/gs
vzell@vzell-de /tmp
12:09 AM [500]> update-alternatives --install /usr/bin/gs gs /usr/bin/gs-x11 20
vzell@vzell-de /tmp
12:10 AM [501]> update-alternatives --display gs                               
path to alternate expected in /var/lib/alternatives/gs
vzell@vzell-de /tmp
12:10 AM [502]> cat /var/lib/alternatives/gs
auto
/usr/bin/gs

/usr/bin/gs-x11
20
vzell@vzell-de /tmp
12:11 AM [505]> ls -lt /usr/bin/gs /etc/alternatives/gs /usr/bin/gs-x11*
lrwxrwxrwx 1 vzell admin       15 Apr 15 00:10 /etc/alternatives/gs -> /usr/bin/gs-x11*
lrwxrwxrwx 1 vzell admin       20 Apr 14 09:11 /usr/bin/gs -> /etc/alternatives/gs*
-rwxr-xr-x 1 vzell users 11212800 Apr 13 17:29 /usr/bin/gs-x11.exe*
vzell@vzell-de /tmp


I also found the following in the archives:

  o http://www.cygwin.com/ml/cygwin/2007-11/msg00304.html

On my machine I get:

alternatives --display unison
path to alternate expected in /var/lib/alternatives/unison

Hmmmmmmmm...

Ciao
  Volker

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]