Estimated build time: 0.1 SBU Estimated required disk space: 5 MB |
(Last checked against version 2.5.)
Grep is a program used to print lines from a file matching a specified pattern.
Grep installs the following:
egrep (link to grep), fgrep (link to grep) and grep
(Last checked against version 2.4.2.)
Bash: sh
Binutils: as, ld
Coreutils: basename, cat, chmod, echo, expr, hostname, install,
ls, mkdir, mv, rm, sleep, tr, uname
Diffutils: cmp
Gawk: gawk
GCC: cc, cc1, collect2, cpp0, gcc
Gettext: msgfmt, xgettext
Glibc: getconf
Grep: egrep, fgrep, grep
M4: m4
Make: make
Sed: sed
Texinfo: install-info, makeinfo
Prepare Grep to be compiled:
./configure --prefix=/tools \ --disable-perl-regexp --with-included-regex |
The meaning of the configure options:
--disable-perl-regexp: This makes sure that grep does not get linked against a PCRE library that may be present on the host, but would not be available once we enter the chroot environment.
--with-included-regex: This ensures that Grep uses its internal regular expression code. Without it, it will use the code from Glibc, which is known to be slightly buggy.
Compile the programs:
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 |
Then install them and their documentation:
make install |