Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193430 - Fix Emacs and XEmacs support in sci-mathematics/octave
Summary: Fix Emacs and XEmacs support in sci-mathematics/octave
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luis Medinas (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 184166
  Show dependency tree
 
Reported: 2007-09-22 15:36 UTC by Ulrich Müller
Modified: 2007-12-24 12:58 UTC (History)
3 users (show)

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


Attachments
Patch for octave-2.1.73-r2 (octave-2.1.73-r2-emacs.patch,2.00 KB, text/plain)
2007-09-22 18:41 UTC, Hans de Graaff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2007-09-22 15:36:19 UTC
A mode for octave is included with GNU Emacs since a long time, so for GNU Emacs only the otags binary (and its man page) are needed.

XEmacs support could make use of the new xemacs-elisp-common.eclass.

Patch will follow.
Comment 1 Hans de Graaff gentoo-dev Security 2007-09-22 18:41:28 UTC
Created attachment 131630 [details]
Patch for octave-2.1.73-r2

The attached patch fixes support for both GNU Emacs and XEmacs. It only installs the otags command for GNU Emacs, and also compiles and installs the elisp files for XEmacs.
Comment 2 Ulrich Müller gentoo-dev 2007-09-22 20:36:01 UTC
Thanks Hans.

We also need a new local USE flag:
sci-mathematics/octave:xemacs - Adds support for XEmacs
Comment 3 Ulrich Müller gentoo-dev 2007-12-17 11:41:01 UTC
No reaction since almost three months.
@sci-mathematics: Is there any reason why this cannot be included?
Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2007-12-17 14:02:20 UTC
Hi Ulrich,

Sorry for the delay and no excuse, just really busy :(
I made myself a note and will try to get it done tonight.

That said, we are currently working on the "next 
generation" octave which is currently being 
developped in the science overlay (presently
we're at octave-2.9.19). Since I am planning
on moving octave-2.9.x into the tree sometime
in January it would be great if you guys could
have a look at its (x)emacs support as well if
you get a chance.

Thanks in advance,
Markus

Comment 5 Ulrich Müller gentoo-dev 2007-12-17 14:45:52 UTC
(In reply to comment #4)
> Since I am planning on moving octave-2.9.x into the tree sometime in
> January it would be great if you guys could have a look at its
> (x)emacs support as well if you get a chance.

Looks like the reasoning of comment #0 still applies to octave-2.9.x.
Only otags was renamed to octave-tags, otherwise the attached patch
(attachment #131630 [details]) should just be applied.
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2007-12-17 15:00:25 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Since I am planning on moving octave-2.9.x into the tree sometime in
> > January it would be great if you guys could have a look at its
> > (x)emacs support as well if you get a chance.
> Looks like the reasoning of comment #0 still applies to octave-2.9.x.
> Only otags was renamed to octave-tags, otherwise the attached patch
> (attachment #131630 [details] [edit]) should just be applied.

 Yes, it looks as if the spirit of the patch stays the same...will try to emerge octave from the overlay and report back.
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2007-12-18 07:17:43 UTC
Works fine.  Maybe add some additional die statements.
Comment 8 Ulrich Müller gentoo-dev 2007-12-18 07:22:38 UTC
(In reply to comment #7)
> Maybe add some additional die statements.

The xemacs-elisp-* functions die by their own hand, contrary to their elisp-* equivalents.

(After all, it's XEmacs, so it has to be incompatible. :-P )
Comment 9 Markus Dittrich (RETIRED) gentoo-dev 2007-12-18 10:35:28 UTC
Sorry again for the delay and I've just fixed (x)emacs
support in octave-2.1.73-r2.

Thanks also for looking into octave-2.9.* and I'll apply
the posted patch for 2.1.73-r2 with the naming change 
mentioned in comment #5.

cheers,
Markus
Comment 10 Hans de Graaff gentoo-dev Security 2007-12-24 12:58:52 UTC
@ulm: it seems to make more sense to me for the eclass to handle the die, but I'm happy to change this now that the xemacs eclasses are not heavily used yet.

The advantage of die in the eclass is that the ebuild is simpler and the disadvantage is that problems with elisp compilation or installation are always fatal.