delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/14/18:30:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Mailer: 21.4 (patch 21) "Educational Television" XEmacs Lucid (via feedmail 10 I)
To: Cygwin List <cygwin AT cygwin DOT com>
Subject: [Attn: alternatives maintainer] - ghostscript preremove breakage
From: "Dr. Volker Zell" <dr DOT volker DOT zell AT oracle DOT com>
Date: Tue, 15 Apr 2008 00:20:35 +0200
Message-ID: <7zk5j0yt70.fsf@vzell-de.de.oracle.com>
MIME-Version: 1.0
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

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 AT vzell-de /tmp
12:09 AM [500]> update-alternatives --install /usr/bin/gs gs /usr/bin/gs-x11 20
vzell AT vzell-de /tmp
12:10 AM [501]> update-alternatives --display gs                               
path to alternate expected in /var/lib/alternatives/gs
vzell AT vzell-de /tmp
12:10 AM [502]> cat /var/lib/alternatives/gs
auto
/usr/bin/gs

/usr/bin/gs-x11
20
vzell AT 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 AT 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/

- Raw text -


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