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

Last change on this file since f12c7f6 was 12e6567, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Added a sysroot wrapper.
Updated the build variables section of the book, each package uses its own.

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