[79fe359] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[79fe359] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[8ef4836] | 8 | <sect1 id="ch-cross-tools-file" role="wrap">
|
---|
[79fe359] | 9 | <?dbhtml filename="file.html"?>
|
---|
| 10 |
|
---|
[78a04c8] | 11 | <title>File-&file-version;</title>
|
---|
[79fe359] | 12 |
|
---|
[fd9c7d4] | 13 | <indexterm zone="ch-cross-tools-file">
|
---|
| 14 | <primary sortas="a-File">File</primary>
|
---|
[979b26f] | 15 | <secondary>cross tools</secondary>
|
---|
[fd9c7d4] | 16 | </indexterm>
|
---|
| 17 |
|
---|
[dabbced] | 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[fd9c7d4] | 19 | href="../../final-system/common/file.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 21 |
|
---|
[79fe359] | 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of File</title>
|
---|
| 24 |
|
---|
[3a4cb53] | 25 | <para>One method that <command>file</command> uses for identifying a given
|
---|
| 26 | file is to run <quote>magic tests</quote>, where it compares the file's
|
---|
| 27 | contents to data in <quote>magic files</quote>, which contain information
|
---|
| 28 | about a number of standard file formats. When File is compiled, it will run
|
---|
| 29 | <command>file -C</command> to combine the information from the
|
---|
| 30 | magic files in its source tree into a single <filename>magic.mgc</filename>
|
---|
| 31 | file, which it will use after it is installed. When we build File in
|
---|
| 32 | <xref linkend="chapter-temp-system"/>, it will be cross-compiled, so it
|
---|
| 33 | will not be able to run the <command>file</command> program that it just
|
---|
| 34 | built, which means that we need one that will run on the host system.</para>
|
---|
[6fde8a9] | 35 |
|
---|
[79fe359] | 36 | <para>Prepare File for compilation:</para>
|
---|
| 37 |
|
---|
[5201afa] | 38 | <screen><userinput>./configure --prefix=/cross-tools</userinput></screen>
|
---|
[79fe359] | 39 |
|
---|
[5cbf8bc] | 40 | <variablelist>
|
---|
[2a6ed66] | 41 | <title>The meaning of the configure options:</title>
|
---|
| 42 |
|
---|
| 43 | <varlistentry>
|
---|
| 44 | <term><parameter>--prefix=/cross-tools</parameter></term>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>This tells the configure script to prepare to install the
|
---|
| 47 | package in the <filename class="directory">/cross-tools</filename>
|
---|
| 48 | directory.</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | </varlistentry>
|
---|
[5cbf8bc] | 51 |
|
---|
| 52 | </variablelist>
|
---|
| 53 |
|
---|
[8ba5b4d] | 54 | <para>Compile the package:</para>
|
---|
[79fe359] | 55 |
|
---|
| 56 | <screen><userinput>make</userinput></screen>
|
---|
| 57 |
|
---|
| 58 | <para>Install the package:</para>
|
---|
| 59 |
|
---|
| 60 | <screen><userinput>make install</userinput></screen>
|
---|
| 61 |
|
---|
| 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2 role="content">
|
---|
| 65 | <title/>
|
---|
| 66 |
|
---|
| 67 | <para>Details on this package are located in <xref
|
---|
| 68 | linkend="contents-file" role="."/></para>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | </sect1>
|
---|