OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004325 [emacs] packaging block always 2010-03-08 08:06 2012-06-18 13:18
Reporter ghenry View Status public  
Assigned To pfelecan
Priority normal Resolution fixed  
Status closed  
Summary 0004325: postinstall fails with "ln: emacs not found"
Description on solaris 10 sparc, the postinstall script failed. I added "set -x" in the script emacs-chooser, and got:
+ printf '%s: current default toolkit: ' emacs-chooser
emacs-chooser: current default toolkit: + '[' -h emacs ']'
+ printf 'none\n' emacs-chooser
none
+ '[' '!' -z athena ']'
++ ls emacs-athena-22.1 emacs-athena-23.1
+ '[' '!' -z 'emacs-athena-22.1
emacs-athena-23.1' ']'
+ '[' -h emacs ']'
+ ln -s emacs-athena-22.1 emacs-athena-23.1 emacs
ln: emacs not found
+ Error emacs-chooser 'cannot link the new toolkit'
+ PrintAnomaly emacs-chooser 'cannot link the new toolkit'
+ printf '%s : anomaly : %s\n' emacs-chooser 'cannot link the new toolkit'
emacs-chooser : anomaly : cannot link the new toolkit

i think it's because there are several emacs binaries?:
calypso-root% ls -l /opt/csw/bin/emacs*
-rwxr-xr-x 1 root bin 5591108 Sep 21 2005 /opt/csw/bin/emacs-21.4
-rwxr-xr-x 1 root bin 7074860 Jun 6 2007 /opt/csw/bin/emacs-athena-22.1
-rwxr-xr-x 1 root bin 9585896 Aug 19 2009 /opt/csw/bin/emacs-athena-23.1
-rwxr-xr-x 1 root bin 6418 Mar 8 08:01 /opt/csw/bin/emacs-chooser
-rwxr-xr-x 1 root bin 26580 Aug 19 2009 /opt/csw/bin/emacsclient


if i did:
calypso-root% mv /opt/csw/bin/emacs-athena-22.1 /tmp/
because:
calypso-root% pkgchk -l -l /opt/csw/bin/emacs-athena-22.1
WARNING: no pathnames were associated with </opt/csw/bin/emacs-athena-22.1>

the postinstall script succeeds! so i suggest that the script prevents the user that there are several emcas binaries, doesn'nt it?

thanks
Additional Information Do you want to continue with the installation of <CSWemacs> [y,n,?] y

Installing emacs - the Emacs editor based on the Athena toolkit as <CSWemacs>

## Installing part 1 of 1.
/opt/csw/bin/emacs-athena-23.1
/opt/csw/share/doc/emacs/COPYING
[ verifying class <none> ]
## Executing postinstall script.
postinstall: info: Setting the Athena toolkit based Emacs as the system wide default:
emacs-chooser: installed toolkits: athena athena
emacs-chooser: current default toolkit: /dev/null
ln: emacs not found
emacs-chooser : anomaly : cannot link the new toolkit
postinstall: warning: Setting the Athena toolkit based Emacs as the system wide default failed!

Installation of <CSWemacs> was successful.
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007655)
pfelecan (manager)
2010-03-16 17:02

It's true that there is a hole in the logic... However, I would like to know how you have more than 1 binary for one toolkit?
(0007657)
ghenry (reporter)
2010-03-16 17:51

i think it's old installations, because /opt/csw/bin/emacs-athena-22.1 doesn't belong to a package.
(0009877)
pfelecan (manager)
2012-05-30 11:42

the 23.4 to be uploaded in the near future solves this issue by using the new alternatives mechanism.
(0009957)
pfelecan (manager)
2012-06-18 13:18

Emacs 23.4 available


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker