source: clfs-sysroot/BOOK/final-system/common/file.xml @ 48b0b67

Last change on this file since 48b0b67 was 48b0b67, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Add file cross-compilation patch.

  • Property mode set to 100644
File size: 3.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-system-file" role="wrap">
9  <?dbhtml filename="file.html"?>
10
11  <title>File-&file-version;</title>
12
13  <indexterm zone="ch-system-file">
14    <primary sortas="a-File">File</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>The File package contains a utility for determining the type of
21    a given file or files.</para>
22
23  </sect2>
24
25  <sect2 role="installation">
26    <title>Installation of File</title>
27
28    <para os="p1">The following patch will fix an issue due to utf-8 with file on documents:</para>
29
30<screen os="p2"><userinput>patch -Np1 -i ../&file-fixes-patch;</userinput></screen>
31
32    <para os="p3">The following patch will add support for new compressors like XZ Utils:</para>
33
34<screen os="p4"><userinput>patch -Np1 -i ../&file-new_compressors-patch;</userinput></screen>
35
36    <para os="ap1">The following patch will fix a compile issue that would prevent
37    a proper creation of the <filename>magic.mgc</filename> file. This would
38    show up as an error messsage.
39    <computeroutput>ERROR: file: File &file-version; supports only 6 version
40    magic files. `/tools/share/file/magic.mgc' is version 2</computeroutput>:</para>
41
42<screen os="ap2"><userinput>patch -Np1 -i ../&file-cross_compile-patch;</userinput></screen>
43
44    <para os="a">Prepare File for compilation:</para>
45
46<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
47    --prefix=/usr</userinput></screen>
48
49    <para os="c">Compile the package:</para>
50
51<screen os="d"><userinput>make</userinput></screen>
52
53    <para os="e">Install the package:</para>
54
55<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
56
57  </sect2>
58
59  <sect2 id="contents-file" role="content">
60    <title>Contents of File</title>
61
62    <segmentedlist>
63      <segtitle>Installed programs</segtitle>
64      <segtitle>Installed library</segtitle>
65
66      <seglistitem>
67        <seg>file</seg>
68        <seg>libmagic.[a,so]</seg>
69      </seglistitem>
70    </segmentedlist>
71
72    <variablelist>
73      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
74      <?dbfo list-presentation="list"?>
75      <?dbhtml list-presentation="table"?>
76
77      <varlistentry id="file">
78        <term><command>file</command></term>
79        <listitem>
80          <para>Tries to classify each given file; it does this by performing
81          several tests&mdash;file system tests, magic number tests, and
82          language tests</para>
83          <indexterm zone="ch-system-file file">
84            <primary sortas="b-file">file</primary>
85          </indexterm>
86        </listitem>
87      </varlistentry>
88
89      <varlistentry id="libmagic">
90        <term><filename class="libraryfile">libmagic</filename></term>
91        <listitem>
92          <para>Contains routines for magic number recognition, used by the
93          <command>file</command> program</para>
94          <indexterm zone="ch-system-file libmagic">
95            <primary sortas="c-libmagic">libmagic</primary>
96          </indexterm>
97        </listitem>
98      </varlistentry>
99
100    </variablelist>
101
102  </sect2>
103
104</sect1>
Note: See TracBrowser for help on using the repository browser.