Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195043 - sci-mathematics/maxima: broken Emacs support
Summary: sci-mathematics/maxima: broken Emacs support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-10-08 01:33 UTC by Ulrich Müller
Modified: 2007-10-08 14:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for maxima-5.13.0-r1.ebuild (maxima-5.13.0-r1.ebuild.diff,826 bytes, patch)
2007-10-08 01:36 UTC, Ulrich Müller
Details | Diff
Patch for files/50maxima-gentoo.el (50maxima-gentoo.el.diff,675 bytes, patch)
2007-10-08 01:38 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2007-10-08 01:33:58 UTC
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 Ulrich Müller gentoo-dev 2007-10-08 01:36:40 UTC
Created attachment 132874 [details, diff]
Patch for maxima-5.13.0-r1.ebuild

This should be applied to all versions >=maxima-5.11.0-r2.
Comment 2 Ulrich Müller gentoo-dev 2007-10-08 01:38:24 UTC
Created attachment 132875 [details, diff]
Patch for files/50maxima-gentoo.el

This will just undo the previous change to the site-init file.
Comment 3 Ulrich Müller gentoo-dev 2007-10-08 07:00:55 UTC
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 Sébastien Fabbro (RETIRED) gentoo-dev 2007-10-08 10:14:02 UTC
fixed. thanks.
Comment 5 Ulrich Müller gentoo-dev 2007-10-08 11:05:18 UTC
(In reply to comment #4)
> fixed. thanks.

Huh? Looks like you only removed the old versions, but didn't apply the patches.
Comment 6 Ulrich Müller gentoo-dev 2007-10-08 11:07:09 UTC
(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 Sébastien Fabbro (RETIRED) gentoo-dev 2007-10-08 11:20:56 UTC
thanks for the double check.
Comment 8 Ulrich Müller gentoo-dev 2007-10-08 14:29:51 UTC
(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.