Installing Ed-0.2

Estimated build time:           0.06 SBU
Estimated required disk space:  3 MB

Contents of Ed

Last checked against version 0.2.

GNU ed is an 8-bit clean, POSIX-compliant line editor.

Ed installs the following:

Program Files

ed and red (link to ed)

Ed Installation Dependencies

Last checked against version 0.2.

Bash: sh
Binutils: ar, as, ld, ranlib
Diffutils: cmp
Fileutils: chmod, cp, install, ln, mv, rm, touch
Gcc: cc1, collect2, cpp0, gcc
Grep: egrep, grep
Make: make
Sed: sed
Sh-utils: hostname
Textutils: cat, tr

Installation of Ed

Note: Ed isn't something which many people use. It's installed here because it can be used by the patch program if you encounter an ed-based patch file. This happens rarely because diff-based patches are preferred these days.

Ed uses mktemp to create temporary files in /tmp, but this function has a security vulnerability (see section on Temporary Files in http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html). This patch makes Ed use mkstemp instead, which is the recommended way to create temporary files.

Apply the patch:

patch -Np1 -i ../ed-0.2.patch

Prepare Ed to be compiled:

./configure --prefix=/usr

Continue with compiling the package:

make

And finish off installing the package:

make install

We need to move the Ed binaries to the /bin directory so they may be used in the event that the /usr partition is unavailable.

mv /usr/bin/{ed,red} /bin