Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193411 - Fix Emacs support in sci-mathematics/singular
Summary: Fix Emacs support in sci-mathematics/singular
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 184166
  Show dependency tree
 
Reported: 2007-09-22 13:53 UTC by Christian Faulhammer (RETIRED)
Modified: 2007-09-30 10:29 UTC (History)
1 user (show)

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


Attachments
Patch for the ebuild (singular_emacs.patch,2.05 KB, patch)
2007-09-22 13:56 UTC, Christian Faulhammer (RETIRED)
Details | Diff
Emacs site-file, to go to ${FILESDIR} (60singular-gentoo.el,401 bytes, text/plain)
2007-09-22 13:57 UTC, Christian Faulhammer (RETIRED)
Details
site-file (60singular-gentoo.el,298 bytes, text/plain)
2007-09-22 16:00 UTC, Christian Faulhammer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Faulhammer (RETIRED) gentoo-dev 2007-09-22 13:53:10 UTC
As always, patches to follow.  Only octave is missing, then we are through with you.
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-22 13:56:34 UTC
Created attachment 131599 [details, diff]
Patch for the ebuild

This fixes Emacs support:
- correct DEPEND
- byte-compilation of Elisp files
- no installation of ESingular, as it is spurious here, it also is coded quite "creatively" and may contain a security issue
- use eclass functions to properly install all support files
- regenerate Emacs start file in postinst and postrm
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-22 13:57:43 UTC
Created attachment 131600 [details]
Emacs site-file, to go to ${FILESDIR}

- Will activate code highlighting on sing files
- allows singular to be run from Emacs directly
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-22 13:59:27 UTC
(In reply to comment #1)
> - no installation of ESingular, as it is spurious here, it also is coded quite
> "creatively" and may contain a security issue

 No security issue, but the code is still very funky...upstream makes use of mktemp, strcat and strcpy, that leaves room for a lot of vulnerabilities.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-22 16:00:11 UTC
Created attachment 131609 [details]
site-file

This is a bit improved as I attached a draft version instead of final the first time.
My proposal to let users preserve the "ESingular experience" would be, that you create a script 

#!/bin/sh
emacs --eval '(singular)'

This is similar to what ESingular did, but not the same, but better than nothing.  Plus an ewarn line in the ebuild this should be enough.
Comment 5 Markus Dittrich (RETIRED) gentoo-dev 2007-09-23 12:41:44 UTC
Hi Christian,

Thanks much! With regard to ESingular I really have no opinion since
I don't use emacs at all; your suggestion to create a wrapper sounds
fine to me and that's probably what I will do.

Thanks,
Markus
Comment 6 Ulrich Müller gentoo-dev 2007-09-23 12:50:13 UTC
(In reply to comment #5)
> With regard to ESingular I really have no opinion since I don't use emacs
> at all; your suggestion to create a wrapper sounds fine to me and that's
> probably what I will do.

Not sure if this is really needed. Emacs users typically have an Emacs open all the time, so why would one start another one by the wrapper script?
Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2007-09-23 12:58:34 UTC
Good point, but there may be users who typically fire up
singular via "Esingular" and may be confused if it is gone;
hard to say. Maybe we should just do away with ESingular  
together with a nice big ewarn. If too many users complain
we could always consider providing a wrapper later on.
Does that sound reasonable?

Markus
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-24 05:58:27 UTC
(In reply to comment #7)
> Good point, but there may be users who typically fire up
> singular via "Esingular" and may be confused if it is gone;

 That was my intention after thinking about it again.

> hard to say. Maybe we should just do away with ESingular  
> together with a nice big ewarn. If too many users complain
> we could always consider providing a wrapper later on.
> Does that sound reasonable?

 That sounds like a solution to me.
Comment 9 Ulrich Müller gentoo-dev 2007-09-24 06:11:18 UTC
(In reply to comment #8)
> > Maybe we should just do away with ESingular together with a nice
> > big ewarn. If too many users complain we could always consider
> > providing a wrapper later on. Does that sound reasonable?
> 
>  That sounds like a solution to me.

+1
Comment 10 Markus Dittrich (RETIRED) gentoo-dev 2007-09-30 10:29:50 UTC
This one has been fixed already last week but I somehow
forgot to close the bug.

Thanks a lot for the patches!

cheers,
Markus