source: chapter06/file.xml@ ac82b96

xry111/clfs-ng
Last change on this file since ac82b96 was 360fdfca, checked in by Pierre Labastie <pierre.labastie@…>, 7 months ago

Fix punctuation in quotes, and quote signs

  • period and comma inside quotes
  • " to <quote>
  • some " to <literal> when it is a var value
  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[7152faa]1<?xml version="1.0" encoding="UTF-8"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[6370fa6]7
[fcc02767]8<sect1 id="ch-tools-file" role="wrap">
[54e422c1]9 <?dbhtml filename="file.html"?>
[5888299]10
[e747759]11 <sect1info condition="script">
12 <productname>file</productname>
13 <productnumber>&file-version;</productnumber>
14 <address>&file-url;</address>
15 </sect1info>
16
[54e422c1]17 <title>File-&file-version;</title>
[673b0d8]18
[fcc02767]19 <indexterm zone="ch-tools-file">
[54e422c1]20 <primary sortas="a-File">File</primary>
[fcc02767]21 <secondary>tools</secondary>
[54e422c1]22 </indexterm>
[3554fa3a]23
[54e422c1]24 <sect2 role="package">
25 <title/>
[73aedd1d]26
[fcc02767]27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
28 href="../chapter08/file.xml"
29 xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
[73aedd1d]30
[54e422c1]31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
[73aedd1d]34
[54e422c1]35 <seglistitem>
[fb386e0]36 <seg>&file-tmp-sbu;</seg>
37 <seg>&file-tmp-du;</seg>
[54e422c1]38 </seglistitem>
39 </segmentedlist>
[73aedd1d]40
[54e422c1]41 </sect2>
[73aedd1d]42
[54e422c1]43 <sect2 role="installation">
44 <title>Installation of File</title>
[73aedd1d]45
[4680459]46 <para>
[2967da32]47 The <command>file</command> command on the build host needs
[6dff9ef]48 to be the same version as the one we are building in order to
49 create the signature file. Run the following commands to make a
50 temporary copy of the <command>file</command> command:
[4680459]51 </para>
[df2e99e]52
53<screen><userinput remap="pre">mkdir build
54pushd build
[a649b07]55 ../configure --disable-bzlib \
[5d2fe08]56 --disable-libseccomp \
57 --disable-xzlib \
58 --disable-zlib
[4680459]59 make
[df2e99e]60popd</userinput></screen>
61
[5d2fe08]62 <variablelist>
63 <title>The meaning of the new configure option:</title>
64
65 <varlistentry>
66 <term><parameter>--disable-*</parameter></term>
67 <listitem>
[114a300]68 <para>The configuration script attempts to use some packages from
[5d2fe08]69 the host distribution if the corresponding library files exist.
70 It may cause compilation failure if a library file exists, but
[114a300]71 the corresponding header files do not. These options prevent
72 using these unneeded capabilities from the host.</para>
[5d2fe08]73 </listitem>
74 </varlistentry>
75 </variablelist>
76
[54e422c1]77 <para>Prepare File for compilation:</para>
[6370fa6]78
[305ab2a]79<screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT --build=$(./config.guess)</userinput></screen>
[5888299]80
[54e422c1]81 <para>Compile the package:</para>
[673b0d8]82
[df2e99e]83<screen><userinput remap="make">make FILE_COMPILE=$(pwd)/build/src/file</userinput></screen>
[81fd230]84
[54e422c1]85 <para>Install the package:</para>
[81fd230]86
[fcc02767]87<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
[673b0d8]88
[6099a471]89 <para>Remove the libtool archive file because it is harmful for cross
90 compilation:</para>
91
92<screen><userinput remap="install">rm -v $LFS/usr/lib/libmagic.la</userinput></screen>
93
[54e422c1]94 </sect2>
95
[fcc02767]96 <sect2 role="content">
97 <title/>
[ee00c3b]98 <para>Details on this package are located in <xref linkend="contents-file" role="."/></para>
[54e422c1]99
100 </sect2>
[673b0d8]101
102</sect1>
Note: See TracBrowser for help on using the repository browser.