5.27. Sed-4.1.5

The Sed package contains a stream editor.

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

5.27.1. Installation of Sed

This version of Sed assumes our malloc behaves like Glibc's, but in uClibc this compatability is optional. This bug was fixed upstream by adding malloc to Sed: http://lists.gnu.org/archive/html/bug-gnu-utils/2005-08/msg00112.html. The following patch instead modifies Sed for a malloc which behaves like uClibc's:

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

Prepare Sed for compilation:

./configure --prefix=/tools --without-included-regex

The meaning of the configure option:

--without-included-regex

Sed prefers to use its own regex routines by default, for wider portability, but we have these routines in libc and do not need the included version. This also removes a warning about redefining __mempcpy.

Compile the package:

make

Install the package:

make install

Details on this package are located in Section 6.15.2, “Contents of Sed.”