The Mktemp package contains programs used to create secure temporary files in shell scripts.
Many scripts still use the deprecated tempfile program, which has functionality similar to mktemp. Patch Mktemp to include a tempfile wrapper:
patch -Np1 -i ../mktemp-1.5-add_tempfile-3.patch
The configure files in this package do not recognise all of the machines supported by CLFS. This patch updates config.guess and config.sub for other processors.
patch -Np1 -i ../mktemp-1.5-config_update-1.patch
Prepare Mktemp for compilation:
CC="gcc ${BUILD64}" ./configure --prefix=/usr --with-libc
The meaning of the configure option:
This causes the mktemp program to use the mkstemp and mkdtemp functions from the system C library.
Compile the package:
make
This package does not come with a test suite.
Install the package:
make install make install-tempfile