%general-entities; ]> file &file-version;
&file-url;
File-&file-version; File tools <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../chapter08/file.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&file-tmp-sbu;</seg> <seg>&file-tmp-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of File The file command on the build host needs to be same version as the one we are building in order to create the signature file. Run the following commands to build it: mkdir build pushd build ../configure --disable-bzlib \ --disable-libseccomp \ --disable-xzlib \ --disable-zlib make popd The meaning of the new configure option: --disable-* The configuration script attempts to use some packages from the host distribution if the corresponding library files exist. It may cause compilation failure if a library file exists, but the corresponding header files do not. These options prevent using these unneeded capabilities from the host. Prepare File for compilation: ./configure --prefix=/usr --host=$LFS_TGT --build=$(./config.guess) Compile the package: make FILE_COMPILE=$(pwd)/build/src/file Install the package: make DESTDIR=$LFS install <para>Details on this package are located in <xref linkend="contents-file" role="."/></para> </sect2> </sect1>