Installing Ed-&ed-version;
The Ed package contains a spartan line editor.
&buildtime; &ed-time;
&diskspace; &ed-compsize;
&aa-ed-down;
&aa-ed-dep;
Installation of Ed
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 normally uses the mktemp function to create temporary files in
/tmp, but this function contains a
vulnerability (see the section on Temporary Files in ). The
following patch makes Ed use mkstemp instead, which is the recommended way to
create temporary files.
Apply the patch:
patch -Np1 -i ../&ed-patch;
Now prepare Ed for compilation:
./configure --prefix=/usr --exec-prefix=""
The meaning of the configure option:
--exec-prefix="": This forces the
programs to be installed into the /bin directory. Having
the programs available there is useful in the event of the
/usr partition being unavailable.
Compile the package:
make
This package has a test suite available which can perform a number of
checks to ensure it built correctly. Should you choose to run it, the
following command will do so:
make check
Install the package:
make install
&aa-ed-shortdesc;
&aa-ed-desc;