[bug-notifications] [emacs 0004325]: postinstall fails with "ln: emacs not found"

Mantis Bug Tracker noreply at opencsw.org
Mon Mar 8 08:06:08 CET 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=4325 
====================================================================== 
Reported By:                ghenry
Assigned To:                
====================================================================== 
Project:                    emacs
Issue ID:                   4325
Category:                   packaging
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-03-08 08:06 CET
Last Modified:              2010-03-08 08:06 CET
====================================================================== 
Summary:                    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
======================================================================



More information about the bug-notifications mailing list