aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/file.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/file.xml')
-rw-r--r--chapter06/file.xml75
1 files changed, 20 insertions, 55 deletions
diff --git a/chapter06/file.xml b/chapter06/file.xml
index b5e28f244..83a473b70 100644
--- a/chapter06/file.xml
+++ b/chapter06/file.xml
@@ -5,7 +5,7 @@
%general-entities;
]>
-<sect1 id="ch-system-file" role="wrap">
+<sect1 id="ch-tools-file" role="wrap">
<?dbhtml filename="file.html"?>
<sect1info condition="script">
@@ -16,23 +16,25 @@
<title>File-&file-version;</title>
- <indexterm zone="ch-system-file">
+ <indexterm zone="ch-tools-file">
<primary sortas="a-File">File</primary>
+ <secondary>tools</secondary>
</indexterm>
<sect2 role="package">
<title/>
- <para>The File package contains a utility for determining the type of a given
- file or files.</para>
+ <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-ch6-sbu;</seg>
- <seg>&file-ch6-du;</seg>
+ <seg>&file-ch5-sbu;</seg>
+ <seg>&file-ch5-du;</seg>
</seglistitem>
</segmentedlist>
@@ -43,65 +45,28 @@
<para>Prepare File for compilation:</para>
-<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr \
+ --host=$LFS_TGT</userinput></screen>
+<!-- devs: if using - -build here, the build system wants to compile
+ the signature file with "file" on the build system, but stops if it is not
+ the same version. One possibility would be to build "file" on the build
+ system first, but it is simpler to have the system think it is not
+ cross-compiling, and use the just built "file". -->
<para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen>
- <para>To test the results, issue:</para>
-
-<screen><userinput remap="test">make check</userinput></screen>
-
<para>Install the package:</para>
-<screen><userinput remap="install">make install</userinput></screen>
+<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
</sect2>
-
- <sect2 id="contents-file" role="content">
- <title>Contents of File</title>
-
- <segmentedlist>
- <segtitle>Installed programs</segtitle>
- <segtitle>Installed library</segtitle>
-
- <seglistitem>
- <seg>file</seg>
- <seg>libmagic.so</seg>
- </seglistitem>
- </segmentedlist>
-
- <variablelist>
- <bridgehead renderas="sect3">Short Descriptions</bridgehead>
- <?dbfo list-presentation="list"?>
- <?dbhtml list-presentation="table"?>
-
- <varlistentry id="file">
- <term><command>file</command></term>
- <listitem>
- <para>Tries to classify each given file; it does this by performing
- several tests&mdash;file system tests, magic number tests, and language
- tests</para>
- <indexterm zone="ch-system-file file">
- <primary sortas="b-file">file</primary>
- </indexterm>
- </listitem>
- </varlistentry>
-
- <varlistentry id="libmagic">
- <term><filename class="libraryfile">libmagic</filename></term>
- <listitem>
- <para>Contains routines for magic number recognition, used by the
- <command>file</command> program</para>
- <indexterm zone="ch-system-file libmagic">
- <primary sortas="c-libmagic">libmagic</primary>
- </indexterm>
- </listitem>
- </varlistentry>
-
- </variablelist>
+ <sect2 role="content">
+ <title/>
+ <para>Details on this package are located in<!-- TODO
+ <xref linkend="contents-file" role="."/> --></para>
</sect2>