6.17. Sed-4.1.5

The Sed package contains a stream editor.

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/sed

Auditor Notes: Sed uses temporary files with the --in-place and -i options. This is controled in the ck_mkstemp function in the lib/utils.c file. The “tmpdir” variable is set by the TMPDIR and TMP shell environment variables, at run time, and if neither are set then /tmp is used. Alternatively, setting -DP_tmpdir="/another_tmp" in CFLAGS will replace the hard coded value for /tmp.

6.17.1. Installation of Sed

Patch Sed for uClibc:

patch -Np1 -i ../sed-4.1.5-uClibc-1.patch

Prepare Sed for compilation:

./configure --prefix=/usr --bindir=/bin --enable-html \
    --without-included-regex

The meaning of the new configure option:

--enable-html

This builds the HTML documentation.

Compile the package:

make

To test the results, issue: make check.

Install the package:

make install

6.17.2. Contents of Sed

Installed program: sed

Short Descriptions

sed

Filters and transforms text files in a single pass