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.
Created attachment 27414 [details] emacs-18.59.ebuild
Created attachment 27415 [details, diff] files/emacs-18.59-unexelf.patch
Created attachment 27416 [details, diff] files/emacs-18.59-gentoo.patch
Created attachment 27464 [details] emacs-18.59.ebuild Oops. Had submitted wrong version of the file.
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.
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).
thanks for the note. they have been removed from patch
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. ;-)
Created attachment 109828 [details] emacs-18.59-r1.ebuild
Created attachment 109829 [details, diff] files/emacs-18.59-gcc4.patch
So you really want it...:) Let me have a look and in the next days I will probably commit it.
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.
I reworked here and there, it works great, so I commited it back. See bug 166839 for the ongoing keywording.