Bug 195043 - sci-mathematics/maxima: broken Emacs support
Bug#: 195043 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci-mathematics@gentoo.org Reported By: ulm@gentoo.org
Component: Applications
URL: 
Summary: sci-mathematics/maxima: broken Emacs support
Keywords:  REGRESSION
Status Whiteboard: 
Opened: 2007-10-08 01:33 0000
Description:   Opened: 2007-10-08 01:33 0000
Emacs support is broken in all versions >=maxima-5.11.0-r2, last good version
was 5.11.0-r1 (which is no longer in the tree). To reproduce, type "M-x maxima
RET" in Emacs, which will result in an error message "Cannot open load file:
maxima".

The reason is that handling of the load-path was incorrectly changed between
revisions 5.11.0-r1 and -r2.

Attached patches will restore the previous behaviour and therefore fix the
problem.

------- Comment #1 From Ulrich Müller 2007-10-08 01:36:40 0000 -------
Created an attachment (id=132874) [details]
Patch for maxima-5.13.0-r1.ebuild

This should be applied to all versions >=maxima-5.11.0-r2.

------- Comment #2 From Ulrich Müller 2007-10-08 01:38:24 0000 -------
Created an attachment (id=132875) [details]
Patch for files/50maxima-gentoo.el

This will just undo the previous change to the site-init file.

------- Comment #3 From Ulrich Müller 2007-10-08 07:00:55 0000 -------
As an alternative to applying the two patches, one could call
    einstall emacsdir="${D}${SITELISP}/${PV}"

This would install the elisp files in /usr/share/emacs/site-lisp/maxima which
is the canonical location for Emacs.

------- Comment #4 From Sébastien Fabbro 2007-10-08 10:14:02 0000 -------
fixed. thanks.

------- Comment #5 From Ulrich Müller 2007-10-08 11:05:18 0000 -------
(In reply to comment #4)
> fixed. thanks.

Huh? Looks like you only removed the old versions, but didn't apply the
patches.

------- Comment #6 From Ulrich Müller 2007-10-08 11:07:09 0000 -------
(In reply to comment #5)
> [...] didn't apply the patches.

... neither applied the patches, nor took the solution of comment #3 (which
would also be valid).

------- Comment #7 From Sébastien Fabbro 2007-10-08 11:20:56 0000 -------
thanks for the double check.

------- Comment #8 From Ulrich Müller 2007-10-08 14:29:51 0000 -------
(In reply to comment #3)
> As an alternative to applying the two patches, one could call
>     einstall emacsdir="${D}${SITELISP}/${PV}"

Stupid typo, this should be ${PN} instead of ${PV}. Corrected in CVS.