[6370fa6] | 1 | <sect1 id="ch06-ed">
|
---|
[793c2f7] | 2 | <title>Installing Ed-&ed-version;</title>
|
---|
[576e206] | 3 | <?dbhtml filename="ed.html" dir="chapter06"?>
|
---|
[6370fa6] | 4 |
|
---|
[b822811] | 5 | <screen>Estimated build time: &ed-time;
|
---|
[6403026] | 6 | Estimated required disk space: &ed-compsize;</screen>
|
---|
[3554fa3a] | 7 |
|
---|
[c7d3040] | 8 | &aa-ed-shortdesc;
|
---|
[9c38d4e] | 9 | &aa-ed-desc;
|
---|
[6370fa6] | 10 |
|
---|
[73aedd1d] | 11 | <sect2><title> </title><para> </para></sect2>
|
---|
| 12 |
|
---|
| 13 | <sect2>
|
---|
| 14 | <title>Installation of Ed</title>
|
---|
| 15 |
|
---|
| 16 | <note><para>Ed isn't something which many people use. It's installed here
|
---|
| 17 | because it can be used by the patch program if you encounter an ed-based patch
|
---|
| 18 | file. This happens rarely because diff-based patches are preferred these
|
---|
| 19 | days.</para></note>
|
---|
| 20 |
|
---|
| 21 | <para>Ed normally uses the mktemp function to create temporary files in
|
---|
| 22 | <filename class="directory">/tmp</filename>, but this function contains a
|
---|
| 23 | vulnerability (see the section on Temporary Files in <ulink
|
---|
| 24 | url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>). The
|
---|
| 25 | following patch makes Ed use mkstemp instead, which is the recommended way to
|
---|
| 26 | create temporary files.</para>
|
---|
| 27 |
|
---|
| 28 | <para>Apply the patch:</para>
|
---|
| 29 |
|
---|
| 30 | <screen><userinput>patch -Np1 -i ../&ed-patch;</userinput></screen>
|
---|
| 31 |
|
---|
| 32 | <para>Now prepare Ed for compilation:</para>
|
---|
| 33 |
|
---|
[8ffb41ed] | 34 | <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
|
---|
| 35 |
|
---|
| 36 | <para>The meaning of the configure option:</para>
|
---|
| 37 |
|
---|
| 38 | <itemizedlist>
|
---|
| 39 | <listitem><para><userinput>--exec-prefix=""</userinput>: This forces the
|
---|
| 40 | programs to be installed into the <filename>/bin</filename> directory. Having
|
---|
| 41 | the programs available there is useful in the event of the
|
---|
| 42 | <filename>/usr</filename> partition being unavailable.</para></listitem>
|
---|
| 43 | </itemizedlist>
|
---|
[73aedd1d] | 44 |
|
---|
| 45 | <para>Compile the package:</para>
|
---|
[6370fa6] | 46 |
|
---|
[73aedd1d] | 47 | <screen><userinput>make</userinput></screen>
|
---|
| 48 |
|
---|
| 49 | <para>This package has a test suite available which can perform a number of
|
---|
| 50 | checks to ensure it built correctly. Should you choose to run it, the
|
---|
| 51 | following command will do so:</para>
|
---|
| 52 |
|
---|
| 53 | <screen><userinput>make check</userinput></screen>
|
---|
| 54 |
|
---|
| 55 | <para>Install the package:</para>
|
---|
| 56 |
|
---|
| 57 | <screen><userinput>make install</userinput></screen>
|
---|
| 58 |
|
---|
| 59 | </sect2>
|
---|
| 60 |
|
---|
| 61 | </sect1>
|
---|
[6370fa6] | 62 |
|
---|