source: chapter06/file.xml@ 4680459

10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 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 ml-11.0 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 4680459 was 4680459, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Wording and format changes

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12117 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[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>
47 The <command>file</command> command on the build host needs
48 to be same version as the one we are building in order to
49 create the signature file. Run the following commands to build it:
50 </para>
[df2e99e]51
52<screen><userinput remap="pre">mkdir build
53pushd build
[4680459]54 ../configure
55 make
[df2e99e]56popd</userinput></screen>
57
[54e422c1]58 <para>Prepare File for compilation:</para>
[6370fa6]59
[305ab2a]60<screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT --build=$(./config.guess)</userinput></screen>
[5888299]61
[fcc02767]62<!-- devs: if using - -build here, the build system wants to compile
63 the signature file with "file" on the build system, but stops if it is not
64 the same version. One possibility would be to build "file" on the build
65 system first, but it is simpler to have the system think it is not
66 cross-compiling, and use the just built "file". -->
[54e422c1]67 <para>Compile the package:</para>
[673b0d8]68
[df2e99e]69<screen><userinput remap="make">make FILE_COMPILE=$(pwd)/build/src/file</userinput></screen>
[81fd230]70
[54e422c1]71 <para>Install the package:</para>
[81fd230]72
[fcc02767]73<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
[673b0d8]74
[54e422c1]75 </sect2>
76
[fcc02767]77 <sect2 role="content">
78 <title/>
[ee00c3b]79 <para>Details on this package are located in <xref linkend="contents-file" role="."/></para>
[54e422c1]80
81 </sect2>
[673b0d8]82
83</sect1>
Note: See TracBrowser for help on using the repository browser.