6.26. Patch-2.6.1

The Patch package contains a program for modifying or creating files by applying a “patch” file typically created by the diff program.

6.26.1. Installation of Patch

When cross-compiling configure cannot properly detect the existance of certain features. Override this behaviour:

echo "ac_cv_func_strnlen_working=yes" > config.cache

Prepare Patch for compilation:

./configure --prefix=/tools \
    --build=${CLFS_HOST} --host=${CLFS_TARGET} \

Compile the package:


Install the package:

make install

Details on this package are located in Section 10.52.2, “Contents of Patch.”