5.27. 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.

Approximate build time: less than 0.1 SBU
Required disk space: 1.9 MB

5.27.1. Installation of Patch

Prepare Patch for compilation:

LDFLAGS="-no-fatal-warnings" ./configure --prefix=/tools

The LDFLAGS="-no-fatal-warnings" environment variable is needed here because this package uses the mktemp function, which would normally cause our compiler to exit with an error. The Patch developers consider the use of mktemp here to be safe, and therefore have not made an effort to replace it with the mkstemp function.

Compile the package:


Compilation is now complete. As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter. To run the Patch test suite anyway, issue the following command:

make check

Install the package:

make install

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