6.49. Patch-2.5.9

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

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

6.49.1. Installation of Patch

This patch is from Patch-cvs, and fixes a bug with how CR characters are handled, for dos2unix compatability. Apply this patch with the following command:

patch -Np1 -i ../patch-2.5.9-fixes-1.patch

Apply this patch to add the use of the mkstemp(3) function:

patch -Np1 -i ../patch-2.5.9-mkstemp-1.patch

Prepare Patch for compilation.

./configure --prefix=/usr

Compile the package:

make

This package does not come with a test suite.

Install the package:

make install

6.49.2. Contents of Patch

Installed program: patch

Short Descriptions

patch

Modifies files according to a patch file. A patch file is normally a difference listing created with the diff program. By applying these differences to the original files, patch creates the patched versions.