Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44766 - emacs-18.59.ebuild
Summary: emacs-18.59.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-03-15 13:17 UTC by Ulrich Müller
Modified: 2007-02-14 14:54 UTC (History)
1 user (show)

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


Attachments
emacs-18.59.ebuild (emacs-18.59.ebuild,1.62 KB, text/plain)
2004-03-15 13:27 UTC, Ulrich Müller
Details
files/emacs-18.59-unexelf.patch (emacs-18.59-unexelf.patch,30.00 KB, patch)
2004-03-15 13:28 UTC, Ulrich Müller
Details | Diff
files/emacs-18.59-gentoo.patch (emacs-18.59-gentoo.patch,3.81 KB, patch)
2004-03-15 13:29 UTC, Ulrich Müller
Details | Diff
emacs-18.59.ebuild (emacs-18.59.ebuild,1.69 KB, text/plain)
2004-03-16 04:55 UTC, Ulrich Müller
Details
emacs-18.59-r1.ebuild (emacs-18.59-r1.ebuild,2.83 KB, text/plain)
2007-02-11 09:52 UTC, Ulrich Müller
Details
files/emacs-18.59-gcc4.patch (emacs-18.59-gcc4.patch,27.65 KB, patch)
2007-02-11 09:53 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 2004-03-15 13:17:27 UTC
Hello,

Please find attached emacs-18.59.ebuild, based on Emacs 18.59 with
Noah Friedman's Linux/ELF modifications. I habe included two more
patches:
- recent unexec code (emacs-18.59-unexelf.patch)
- minor changes, compiler and terminal related (emacs-18.59-gentoo.patch)

The program was compiled and tested for x86 under the following systems:

   Linux       Gentoo     gcc      glibc               ncurses   xfree
   2.6.3-mm3   1.4.3.13   3.3.3    2.3.3_pre20040207   5.3       4.3.0
   2.2.26      1.4.3.13   2.95.3   2.2.5               5.4       (none)

Before you tell me how utterly useless such an old Emacs version is,
here is some motivation:

We use embedded systems for physics data acquisition and slow control,
the smallest of them are diskless and have only 16 MB of memory. Recent
Emacs versions use too much of the systems' resources and start up
slowly. In comparison, Emacs 18 is rather lean, as you can see from
the "ps v" output (the last line is from a different system):
  PID TTY      STAT   TIME  MAJFL   TRS   DRS  RSS %MEM COMMAND
 1269 ttyp0    T      0:00    112   127  1456  528  3.6 vi
 1270 ttyp0    T      0:00    175    94  1597  760  5.3 nano
 1271 ttyp0    T      0:00    318   258  2093 1300  9.0 emacs      # 18.59
27607 pts/151  T      0:00      0  1294 11921 5496  1.0 emacs -nw  # 21.3

In addition, it provides the same user interface and uses the same
extension language as newer Emacs versions (except for missing features,
of course). At least for us it is the ideal solution for occasional
editing on our DAQ systems.

Uli

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ulrich Müller gentoo-dev 2004-03-15 13:27:58 UTC
Created attachment 27414 [details]
emacs-18.59.ebuild
Comment 2 Ulrich Müller gentoo-dev 2004-03-15 13:28:54 UTC
Created attachment 27415 [details, diff]
files/emacs-18.59-unexelf.patch
Comment 3 Ulrich Müller gentoo-dev 2004-03-15 13:29:54 UTC
Created attachment 27416 [details, diff]
files/emacs-18.59-gentoo.patch
Comment 4 Ulrich Müller gentoo-dev 2004-03-16 04:55:09 UTC
Created attachment 27464 [details]
emacs-18.59.ebuild

Oops. Had submitted wrong version of the file.
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2004-05-13 08:32:38 UTC
Thanks for the port, Uli.  I hope you dont mind: I appended -18.59 to the produced binaries and man page so that emacs-21.3 and emacs-18.59 could be installed simultaneously (eg. /usr/bin/emacs-18.59).  I also added  another patch to fix various things GCC 3.4 doesn't like.

*emacs-21.3-r3 (13 May 2004)
                                                                                                                 
  13 May 2004; <mkennedy@gentoo.org> +files/emacs-18.59-gcc-gentoo.patch,
  +files/emacs-18.59-gentoo.patch, +files/emacs-18.59-unexelf.patch,
  +emacs-18.59.ebuild, +emacs-21.3-r3.ebuild:
  Added retro emacs-18.59 w/ SLOT=1 (ebuild contributed by Ulrich Mueller
  <ulm@kph.uni-mainz.de>), resolves Bug #44766; Added new emacs-21.3-r3
  with support for using LessTif instead of OpenMotif (OpenMotif has
  problems which causes Emacs to be unstable); Marked emacs-21.3-r3 as
  ~arch.
Comment 6 Ulrich Müller gentoo-dev 2004-05-13 15:58:14 UTC
Matthew,
thank you for accepting the ebuild.

Unfortunately, emacs-18.59-gcc-gentoo.patch breaks compilation with gcc 2.95
(options -falign-* are not known in that gcc version).
Comment 7 Matthew Kennedy (RETIRED) gentoo-dev 2004-05-16 23:03:10 UTC
thanks for the note. they have been removed from patch
Comment 8 Ulrich Müller gentoo-dev 2007-02-11 09:51:09 UTC
Hello again,
version 18.59 was removed some time ago, which was of course justified since it could not be compiled with GCC 4.

Please find attached an updated version of the ebuild (based on the last versio n in portage), together with emacs-18.59-gcc4.patch.

The package compiles and runs with gcc-4.1.1, glibc-2.5, kernel 2.6.20, and modular X (xorg-x11-7.2).

Reopening. See also bug #122215 comment #5 on why this should be added to the tree again. ;-)
Comment 9 Ulrich Müller gentoo-dev 2007-02-11 09:52:24 UTC
Created attachment 109828 [details]
emacs-18.59-r1.ebuild
Comment 10 Ulrich Müller gentoo-dev 2007-02-11 09:53:24 UTC
Created attachment 109829 [details, diff]
files/emacs-18.59-gcc4.patch
Comment 11 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-11 10:11:14 UTC
So you really want it...:)  Let me have a look and in the next days I will probably commit it.
Comment 12 Ulrich Müller gentoo-dev 2007-02-13 11:23:18 UTC
One additional note (forgot to mention this): emacs-18.59.ebuild had SLOT=1 (see comment #5); however, the updated ebuild has SLOT=18. I don't know if it is necessary if an ebuild was removed from the tree, but I think a "slotmove =app-editors/emacs-18.* 1 18" in profiles/updates should not harm.
Comment 13 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-14 14:54:35 UTC
I reworked here and there, it works great, so I commited it back. 
See bug 166839 for the ongoing keywording.