source: chapter08/file.xml@ e128c68

11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since e128c68 was e128c68, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Add the File upstream fixes patch to the book.

  • Property mode set to 100644
File size: 3.0 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 <sect1info condition="script">
12 <productname>file</productname>
13 <productnumber>&file-version;</productnumber>
14 <address>&file-url;</address>
15 </sect1info>
16
17 <title>File-&file-version;</title>
18
19 <indexterm zone="ch-system-file">
20 <primary sortas="a-File">File</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The File package contains a utility for determining the type of a given
27 file or files.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&file-fin-sbu;</seg>
35 <seg>&file-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of File</title>
43
44 <para>First, fix a few regressions in File:</para>
45
46<screen><userinput remap="pre">patch -Np1 -i ../file-&file-version;-upstream_fixes-1.patch</userinput></screen>
47
48 <para>Prepare File for compilation:</para>
49
50<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
51
52 <para>Compile the package:</para>
53
54<screen><userinput remap="make">make</userinput></screen>
55
56 <para>To test the results, issue:</para>
57
58<screen><userinput remap="test">make check</userinput></screen>
59
60 <para>Install the package:</para>
61
62<screen><userinput remap="install">make install</userinput></screen>
63
64 </sect2>
65
66
67 <sect2 id="contents-file" role="content">
68 <title>Contents of File</title>
69
70 <segmentedlist>
71 <segtitle>Installed programs</segtitle>
72 <segtitle>Installed library</segtitle>
73
74 <seglistitem>
75 <seg>file</seg>
76 <seg>libmagic.so</seg>
77 </seglistitem>
78 </segmentedlist>
79
80 <variablelist>
81 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
82 <?dbfo list-presentation="list"?>
83 <?dbhtml list-presentation="table"?>
84
85 <varlistentry id="file">
86 <term><command>file</command></term>
87 <listitem>
88 <para>Tries to classify each given file; it does this by performing
89 several tests&mdash;file system tests, magic number tests, and language
90 tests</para>
91 <indexterm zone="ch-system-file file">
92 <primary sortas="b-file">file</primary>
93 </indexterm>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry id="libmagic">
98 <term><filename class="libraryfile">libmagic</filename></term>
99 <listitem>
100 <para>Contains routines for magic number recognition, used by the
101 <command>file</command> program</para>
102 <indexterm zone="ch-system-file libmagic">
103 <primary sortas="c-libmagic">libmagic</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 </variablelist>
109
110 </sect2>
111
112</sect1>
Note: See TracBrowser for help on using the repository browser.