Changeset 37e35d2 for chapter06/file.xml
- Timestamp:
- 06/29/2020 07:55:01 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- c4804e8
- Parents:
- d4fdde6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/file.xml
rd4fdde6 r37e35d2 6 6 ]> 7 7 8 <sect1 id="ch- system-file" role="wrap">8 <sect1 id="ch-tools-file" role="wrap"> 9 9 <?dbhtml filename="file.html"?> 10 10 … … 17 17 <title>File-&file-version;</title> 18 18 19 <indexterm zone="ch- system-file">19 <indexterm zone="ch-tools-file"> 20 20 <primary sortas="a-File">File</primary> 21 <secondary>tools</secondary> 21 22 </indexterm> 22 23 … … 24 25 <title/> 25 26 26 <para>The File package contains a utility for determining the type of a given 27 file or files.</para> 27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 28 href="../chapter08/file.xml" 29 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 28 30 29 31 <segmentedlist> … … 32 34 33 35 <seglistitem> 34 <seg>&file- ch6-sbu;</seg>35 <seg>&file- ch6-du;</seg>36 <seg>&file-tmp-sbu;</seg> 37 <seg>&file-tmp-du;</seg> 36 38 </seglistitem> 37 39 </segmentedlist> … … 44 46 <para>Prepare File for compilation:</para> 45 47 46 <screen><userinput remap="configure">./configure --prefix=/usr </userinput></screen>48 <screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT</userinput></screen> 47 49 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 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ --> 63 64 <sect2 arch="ml_32,ml_all" role="installation"> 65 <title>Installation of File - 32-bit</title> 66 67 <para>Clean previous build:</para> 68 69 <screen><userinput remap="pre">make distclean</userinput></screen> 70 71 <para>Prepare File for compilation:</para> 72 73 <screen><userinput remap="configure">CC="gcc -m32" ./configure \ 74 --prefix=/usr \ 75 --libdir=/usr/lib32 \ 76 --host=i686-pc-linux-gnu</userinput></screen> 77 50 <!-- devs: if using - -build here, the build system wants to compile 51 the signature file with "file" on the build system, but stops if it is not 52 the same version. One possibility would be to build "file" on the build 53 system first, but it is simpler to have the system think it is not 54 cross-compiling, and use the just built "file". --> 78 55 <para>Compile the package:</para> 79 56 … … 82 59 <para>Install the package:</para> 83 60 84 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 85 cp -Rv DESTDIR/usr/lib32/* /usr/lib32 86 rm -rf DESTDIR</userinput></screen> 61 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 87 62 88 63 </sect2> 89 64 90 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ --> 91 92 <sect2 arch="ml_x32,ml_all" role="installation"> 93 <title>Installation of File - x32-bit</title> 94 95 <para>Clean previous build:</para> 96 97 <screen><userinput remap="pre">make distclean</userinput></screen> 98 99 <para>Prepare File for compilation:</para> 100 101 <screen><userinput remap="configure">CC="gcc -mx32" ./configure \ 102 --prefix=/usr \ 103 --libdir=/usr/libx32 \ 104 --host=x86_64-pc-linux-gnux32</userinput></screen> 105 106 <para>Compile the package:</para> 107 108 <screen><userinput remap="make">make</userinput></screen> 109 110 <para>Install the package:</para> 111 112 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 113 cp -Rv DESTDIR/usr/libx32/* /usr/libx32 114 rm -rf DESTDIR</userinput></screen> 115 116 </sect2> 117 118 <sect2 id="contents-file" role="content"> 119 <title>Contents of File</title> 120 121 <segmentedlist> 122 <segtitle>Installed programs</segtitle> 123 <segtitle>Installed library</segtitle> 124 125 <seglistitem> 126 <seg>file</seg> 127 <seg>libmagic.so</seg> 128 </seglistitem> 129 </segmentedlist> 130 131 <variablelist> 132 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 133 <?dbfo list-presentation="list"?> 134 <?dbhtml list-presentation="table"?> 135 136 <varlistentry id="file"> 137 <term><command>file</command></term> 138 <listitem> 139 <para>Tries to classify each given file; it does this by performing 140 several tests—file system tests, magic number tests, and language 141 tests</para> 142 <indexterm zone="ch-system-file file"> 143 <primary sortas="b-file">file</primary> 144 </indexterm> 145 </listitem> 146 </varlistentry> 147 148 <varlistentry id="libmagic"> 149 <term><filename class="libraryfile">libmagic</filename></term> 150 <listitem> 151 <para>Contains routines for magic number recognition, used by the 152 <command>file</command> program</para> 153 <indexterm zone="ch-system-file libmagic"> 154 <primary sortas="c-libmagic">libmagic</primary> 155 </indexterm> 156 </listitem> 157 </varlistentry> 158 159 </variablelist> 65 <sect2 role="content"> 66 <title/> 67 <para>Details on this package are located in <xref linkend="contents-file" role="."/></para> 160 68 161 69 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.