will not install from apt-get

Bug #36055 reported by Michael Brunton-Spall
26
Affects Status Importance Assigned to Milestone
emacs-extra (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Currently running dapper.

did apt-get install php-mode for php mode supported behaviour in emacs.
Got the following messages...

Setting up php-mode (0.1-1) ...
install/php-mode: Handling install for emacsen flavor emacs21
Wrote /usr/share/emacs21/site-lisp/php-mode/php3-mode.elc
While compiling toplevel forms in file /usr/share/emacs21/site-lisp/php-mode/php-mode.el:
  !! Wrong type argument ((stringp nil))
Done
emacs-package-install: /usr/lib/emacsen-common/packages/install/php-mode emacs21 emacs21 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
Errors were encountered while processing:
 php-mode
E: Sub-process /usr/bin/dpkg returned an error code (1)

Related branches

Revision history for this message
Lothar Braun (typecast) wrote :

This is still a problem on edgy.

Changed in emacs-extra:
status: Unconfirmed → Confirmed
Revision history for this message
speeves (speeves) wrote :

This patch will fix it:
--- php-mode.emacsen-install.orig 2007-02-08 01:07:16.000000000 -0600
+++ php-mode.emacsen-install 2007-02-08 00:57:19.000000000 -0600
@@ -16,7 +16,7 @@
 if [ ${FLAVORTEST} = xemacs ] ; then
     SITEFLAG="-no-site-file"
 else
- SITEFLAG="--no-site-file"
+ SITEFLAG=""
 fi
 FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"

Here are detailed instructions on how I modified the source and compiled the binaries:
http://speeves.erikin.com/2007/02/ubuntu-php-mode-fails-to-install.html

Revision history for this message
Michael Bienia (geser) wrote :

emacs-extra (0.1-1ubuntu1) gutsy; urgency=low

  * debian/php-mode.emacsen-startup:
    Use php-mode instead of c-mode for files ending in .php (LP: #71581).
    (thanks to Michael Speer for the patch)
  * misc/std_comment.el:
    Fix time stamp problem in the template (LP: #67286).
  * debian/php-mode.emacsen-install:
    Fix installation problem with emacs21 (LP: #36055).
  * debian/control: Change Maintainer to XSBC-Original-Maintainer.

 -- Michael Bienia <email address hidden> Tue, 12 Jun 2007 23:24:31 +0200

Changed in emacs-extra:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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