php-mode package reports a missing file when installing

Bug #359695 reported by Maitre Bart
4
Affects Status Importance Assigned to Milestone
emacs-extra (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: php-mode

Installing the php-mode package (0.1-1ubuntu1) causes the following error to be reported at the end of the installation:

Errors were encountered while processing:
php-mode
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up php-mode (0.1-1ubuntu1) ...
install/php-mode: Handling install for emacsen flavor xemacs21
Compiling /usr/share/xemacs21/site-lisp/php-mode/php-mode.el...
While compiling toplevel forms in file /usr/share/xemacs21/site-lisp/php-mode/php-mode.el:
!! File error (("Cannot open load file" "ezimage"))
>>Error occurred processing php-mode.el: Cannot open load file: ezimage

Compiling /usr/share/xemacs21/site-lisp/php-mode/php3-mode.el...
Wrote /usr/share/xemacs21/site-lisp/php-mode/php3-mode.elc
Done
emacs-package-install: /usr/lib/emacsen-common/packages/install/php-mode xemacs21 xemacs21 failed at /usr/lib/emacsen-common/emacs-package-install line 30, <TSORT> line 1.
dpkg: error processing php-mode (--configure):
subprocess post-installation script returned error exit status 1

I'm using Ubuntu 8.04.2 (release 8.04)

I went on the forum first (please, have a look at http://ubuntuforums.org/showthread.php?t=1115906).
The error still occurs even if I install the emacs21 or emacs22 meta-packages.

The problem is (an annoyance, should I say) that it's all like the php-mode package still remains in the synaptic's installation queue.
So for any other package I try to install thereafter, synaptic will attempt to complete the php-mode every time, but it never succeeds.

Revision history for this message
era (era) wrote :

Quick googling suggests that installing the cedet-common package might provide this file for you, but that's obviously just a quick and dirty workaround.

Installing emacs21 or emacs22-specific stuff will generally put it in locations where Xemacs21 will not see it. It's not clear to me why the guy on the forum believed that emacs22-common would provide this file, anyways. http://packages.ubuntu.com/search?searchon=contents&keywords=ezimage.el&mode=exactfilename&suite=intrepid&arch=any says it's only in cedet-common.

It's not obvious to me how this ought to be fixed; should emacs-extra depend on gnumacsen | cedet-common or what? Actually perhaps it could unconditionally depend on cedet-common I suppose, at least as a quick fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.