The Texinfo package contains programs for reading, writing, and converting info pages.
Texinfo allows local users to overwrite arbitrary files via a symlink attack on temporary files. Apply the following patch to fix this:
patch -Np1 -i ../texinfo-4.8a-tempfile_fix-1.patch
Prepare Texinfo for compilation:
./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--prefix=/usr
Compile the package:
make
Install the package:
make DESTDIR=${CLFS} install
The Info documentation system uses a plain text file to hold its list of menu entries. The file is located at /usr/share/info/dir. Unfortunately, due to occasional problems in the Makefiles of various packages, it can sometimes get out of sync with the info pages installed on the system. If the /usr/share/info/dir file ever needs to be recreated, the following optional commands will accomplish the task:
cd ${CLFS}/usr/share/info
rm dir
for f in *
do install-info ${f} dir 2>/dev/null
done