source: chapter06/file.xml@ b3f1ebb3

ml-11.0 multilib
Last change on this file since b3f1ebb3 was b3f1ebb3, checked in by Xℹ Ruoyao <xry111@…>, 3 years ago

First apply of multilib-patch of April 1st, 2019

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11566 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.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 <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-ch6-sbu;</seg>
35 <seg>&file-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of File</title>
43
44 <para>Prepare File for compilation:</para>
45
46<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
47
48 <para>Compile the package:</para>
49
50<screen><userinput remap="make">make</userinput></screen>
51
52 <para>To test the results, issue:</para>
53
54<screen><userinput remap="test">make check</userinput></screen>
55
56 <para>Install the package:</para>
57
58<screen><userinput remap="install">make install</userinput></screen>
59
60 </sect2>
61
62 <sect2 arch="multilib" role="installation">
63 <title>Installation of File - 32-bit</title>
64
65 <para>Clean previous build:</para>
66
67<screen><userinput remap="pre">make distclean</userinput></screen>
68
69 <para>Prepare File for compilation:</para>
70
71<screen><userinput remap="configure">CC="gcc -m32" ./configure \
72 --prefix=/usr \
73 --libdir=/usr/lib32 \
74 --host=i686-pc-linux-gnu</userinput></screen>
75
76 <para>Compile the package:</para>
77
78<screen><userinput remap="make">make</userinput></screen>
79
80 <para>Install the package:</para>
81
82<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
83cp -Rv DESTDIR/usr/lib32/* /usr/lib32
84rm -rf DESTDIR</userinput></screen>
85
86 </sect2>
87
88 <sect2 arch="multilib" role="installation">
89 <title>Installation of File - x32-bit</title>
90
91 <para>Clean previous build:</para>
92
93<screen><userinput remap="pre">make distclean</userinput></screen>
94
95 <para>Prepare File for compilation:</para>
96
97<screen><userinput remap="configure">
98CC="gcc -mx32" ./configure \
99 --prefix=/usr \
100 --libdir=/usr/libx32 \
101 --host=x86_64-pc-linux-gnux32</userinput></screen>
102
103 <para>Compile the package:</para>
104
105<screen><userinput remap="make">make</userinput></screen>
106
107 <para>Install the package:</para>
108
109<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
110cp -Rv DESTDIR/usr/libx32/* /usr/libx32
111rm -rf DESTDIR</userinput></screen>
112
113 </sect2>
114
115 <sect2 id="contents-file" role="content">
116 <title>Contents of File</title>
117
118 <segmentedlist>
119 <segtitle>Installed programs</segtitle>
120 <segtitle>Installed library</segtitle>
121
122 <seglistitem>
123 <seg>file</seg>
124 <seg>libmagic.so</seg>
125 </seglistitem>
126 </segmentedlist>
127
128 <variablelist>
129 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
130 <?dbfo list-presentation="list"?>
131 <?dbhtml list-presentation="table"?>
132
133 <varlistentry id="file">
134 <term><command>file</command></term>
135 <listitem>
136 <para>Tries to classify each given file; it does this by performing
137 several tests&mdash;file system tests, magic number tests, and language
138 tests</para>
139 <indexterm zone="ch-system-file file">
140 <primary sortas="b-file">file</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="libmagic">
146 <term><filename class="libraryfile">libmagic</filename></term>
147 <listitem>
148 <para>Contains routines for magic number recognition, used by the
149 <command>file</command> program</para>
150 <indexterm zone="ch-system-file libmagic">
151 <primary sortas="c-libmagic">libmagic</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 </variablelist>
157
158 </sect2>
159
160</sect1>
Note: See TracBrowser for help on using the repository browser.