Changeset fcc02767 for chapter06/bzip2.xml
- Timestamp:
- 06/07/2020 08:16:00 PM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 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
- Children:
- 595ff03
- Parents:
- d53fefa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/bzip2.xml
rd53fefa rfcc02767 6 6 ]> 7 7 8 <sect1 id="ch- system-bzip2" role="wrap">8 <sect1 id="ch-tools-bzip2" role="wrap"> 9 9 <?dbhtml filename="bzip2.html"?> 10 10 … … 17 17 <title>Bzip2-&bzip2-version;</title> 18 18 19 <indexterm zone="ch- system-bzip2">19 <indexterm zone="ch-tools-bzip2"> 20 20 <primary sortas="a-Bzip2">Bzip2</primary> 21 <secondary>tools</secondary> 21 22 </indexterm> 22 23 … … 24 25 <title/> 25 26 26 <para>The Bzip2 package contains programs for compressing and decompressing 27 files. Compressing text files with <command>bzip2</command> yields a much 28 better compression percentage than with the traditional 29 <command>gzip</command>.</para> 27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 28 href="../chapter06/bzip2.xml" 29 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 30 30 31 31 <segmentedlist> … … 34 34 35 35 <seglistitem> 36 <seg>&bzip2-ch 6-sbu;</seg>37 <seg>&bzip2-ch 6-du;</seg>36 <seg>&bzip2-ch5-sbu;</seg> 37 <seg>&bzip2-ch5-du;</seg> 38 38 </seglistitem> 39 39 </segmentedlist> … … 44 44 <title>Installation of Bzip2</title> 45 45 46 <para>Apply a patch that will install the documentation for this package:</para> 46 <para>Apply a patch that will install the documentation for this 47 package:</para> 47 48 48 49 <screen><userinput remap="pre">patch -Np1 -i ../&bzip2-docs-patch;</userinput></screen> 49 50 50 <para>The following command ensures installation of symbolic links are relative:</para> 51 <para>The following command ensures installation of symbolic links are 52 relative:</para> 51 53 52 54 <screen><userinput remap="pre">sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile</userinput></screen> … … 56 58 <screen><userinput remap="pre">sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile</userinput></screen> 57 59 58 <para>Prepare Bzip2 for compilation with:</para> 60 <para>The Bzip2 package does not contain a <command>configure</command> 61 script. There are two <filename>Makefile</filename>, one for the shared 62 library, and the other for the static library. Since we need both, We 63 do the compilation in two stages. First the shared library:</para> 59 64 60 <screen><userinput remap="make">make -f Makefile-libbz2_so65 <screen><userinput remap="make">make CC=$LFS_TGT-gcc -f Makefile-libbz2_so 61 66 make clean</userinput></screen> 62 67 … … 77 82 </variablelist> 78 83 79 <para>Compile and test the package :</para>84 <para>Compile and test the package with:</para> 80 85 81 <screen><userinput remap="make">make </userinput></screen>86 <screen><userinput remap="make">make CC=$LFS_TGT-gcc AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib</userinput></screen> 82 87 83 <para>Install the p rograms:</para>88 <para>Install the package:</para> 84 89 85 <screen><userinput remap="install">make PREFIX= /usr install</userinput></screen>90 <screen><userinput remap="install">make PREFIX=$LFS/usr install</userinput></screen> 86 91 87 92 <para>Install the shared <command>bzip2</command> binary into the 88 <filename class="directory">/bin</filename> directory, make 89 s ome necessary symbolic links, and clean up:</para>93 <filename class="directory">/bin</filename> directory, make some necessary 94 symbolic links, and clean up:</para> 90 95 91 <screen><userinput remap="install">cp -v bzip2-shared /bin/bzip292 cp -av libbz2.so* /lib96 <screen><userinput remap="install">cp -v bzip2-shared $LFS/bin/bzip2 97 cp -av libbz2.so* $LFS/lib 93 98 ln -sv ../../lib/libbz2.so.1.0 $LFS/usr/lib/libbz2.so 94 rm -v /usr/bin/{bunzip2,bzcat,bzip2}95 ln -sv bzip2 /bin/bunzip296 ln -sv bzip2 /bin/bzcat</userinput></screen>99 rm -v $LFS/usr/bin/{bunzip2,bzcat,bzip2} 100 ln -sv bzip2 $LFS/bin/bunzip2 101 ln -sv bzip2 $LFS/bin/bzcat</userinput></screen> 97 102 98 103 </sect2> 99 104 100 <sect2 id="contents-bzip2" role="content"> 101 <title>Contents of Bzip2</title> 102 103 <segmentedlist> 104 <segtitle>Installed programs</segtitle> 105 <segtitle>Installed libraries</segtitle> 106 <segtitle>Installed directory</segtitle> 107 108 <seglistitem> 109 <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp (link to 110 bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep), 111 bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore</seg> 112 <seg>libbz2.{a,so}</seg> 113 <seg>/usr/share/doc/bzip2-&bzip2-version;</seg> 114 </seglistitem> 115 </segmentedlist> 116 117 <variablelist> 118 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 119 <?dbfo list-presentation="list"?> 120 <?dbhtml list-presentation="table"?> 121 122 <varlistentry id="bunzip2"> 123 <term><command>bunzip2</command></term> 124 <listitem> 125 <para>Decompresses bzipped files</para> 126 <indexterm zone="ch-system-bzip2 bunzip2"> 127 <primary sortas="b-bunzip2">bunzip2</primary> 128 </indexterm> 129 </listitem> 130 </varlistentry> 131 132 <varlistentry id="bzcat"> 133 <term><command>bzcat</command></term> 134 <listitem> 135 <para>Decompresses to standard output</para> 136 <indexterm zone="ch-system-bzip2 bzcat"> 137 <primary sortas="b-bzcat">bzcat</primary> 138 </indexterm> 139 </listitem> 140 </varlistentry> 141 142 <varlistentry id="bzcmp"> 143 <term><command>bzcmp</command></term> 144 <listitem> 145 <para>Runs <command>cmp</command> on bzipped files</para> 146 <indexterm zone="ch-system-bzip2 bzcmp"> 147 <primary sortas="b-bzcmp">bzcmp</primary> 148 </indexterm> 149 </listitem> 150 </varlistentry> 151 152 <varlistentry id="bzdiff"> 153 <term><command>bzdiff</command></term> 154 <listitem> 155 <para>Runs <command>diff</command> on bzipped files</para> 156 <indexterm zone="ch-system-bzip2 bzdiff"> 157 <primary sortas="b-bzdiff">bzdiff</primary> 158 </indexterm> 159 </listitem> 160 </varlistentry> 161 162 <varlistentry id="bzegrep"> 163 <term><command>bzegrep</command></term> 164 <listitem> 165 <para>Runs <command>egrep</command> on bzipped files</para> 166 <indexterm zone="ch-system-bzip2 bzegrep"> 167 <primary sortas="b-bzegrep">bzegrep</primary> 168 </indexterm> 169 </listitem> 170 </varlistentry> 171 172 <varlistentry id="bzfgrep"> 173 <term><command>bzfgrep</command></term> 174 <listitem> 175 <para>Runs <command>fgrep</command> on bzipped files</para> 176 <indexterm zone="ch-system-bzip2 bzfgrep"> 177 <primary sortas="b-bzfgrep">bzfgrep</primary> 178 </indexterm> 179 </listitem> 180 </varlistentry> 181 182 <varlistentry id="bzgrep"> 183 <term><command>bzgrep</command></term> 184 <listitem> 185 <para>Runs <command>grep</command> on bzipped files</para> 186 <indexterm zone="ch-system-bzip2 bzgrep"> 187 <primary sortas="b-bzgrep">bzgrep</primary> 188 </indexterm> 189 </listitem> 190 </varlistentry> 191 192 <varlistentry id="bzip2"> 193 <term><command>bzip2</command></term> 194 <listitem> 195 <para>Compresses files using the Burrows-Wheeler block sorting text 196 compression algorithm with Huffman coding; the compression rate is 197 better than that achieved by more conventional compressors using 198 <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para> 199 <indexterm zone="ch-system-bzip2 bzip2"> 200 <primary sortas="b-bzip2">bzip2</primary> 201 </indexterm> 202 </listitem> 203 </varlistentry> 204 205 <varlistentry id="bzip2recover"> 206 <term><command>bzip2recover</command></term> 207 <listitem> 208 <para>Tries to recover data from damaged bzipped files</para> 209 <indexterm zone="ch-system-bzip2 bzip2recover"> 210 <primary sortas="b-bzip2recover">bzip2recover</primary> 211 </indexterm> 212 </listitem> 213 </varlistentry> 214 215 <varlistentry id="bzless"> 216 <term><command>bzless</command></term> 217 <listitem> 218 <para>Runs <command>less</command> on bzipped files</para> 219 <indexterm zone="ch-system-bzip2 bzless"> 220 <primary sortas="b-bzless">bzless</primary> 221 </indexterm> 222 </listitem> 223 </varlistentry> 224 225 <varlistentry id="bzmore"> 226 <term><command>bzmore</command></term> 227 <listitem> 228 <para>Runs <command>more</command> on bzipped files</para> 229 <indexterm zone="ch-system-bzip2 bzmore"> 230 <primary sortas="b-bzmore">bzmore</primary> 231 </indexterm> 232 </listitem> 233 </varlistentry> 234 235 <varlistentry id="libbz2"> 236 <term><filename class="libraryfile">libbz2</filename></term> 237 <listitem> 238 <para>The library implementing lossless, block-sorting data 239 compression, using the Burrows-Wheeler algorithm</para> 240 <indexterm zone="ch-system-bzip2 libbz2"> 241 <primary sortas="c-libbz2">libbz2</primary> 242 </indexterm> 243 </listitem> 244 </varlistentry> 245 246 </variablelist> 105 <sect2 role="content"> 106 <title/> 107 <para>Details on this package are located in 108 <xref linkend="contents-bzip2" role="."/></para> 247 109 248 110 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.