source: chapter08/bzip2.xml@ f695e02

multilib-10.1
Last change on this file since f695e02 was 37e35d2, checked in by Thomas Trepl <thomas@…>, 4 years ago

Update to new lfs structure

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

  • Property mode set to 100644
File size: 10.0 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-bzip2" role="wrap">
9 <?dbhtml filename="bzip2.html"?>
10
11 <sect1info condition="script">
12 <productname>bzip2</productname>
13 <productnumber>&bzip2-version;</productnumber>
14 <address>&bzip2-url;</address>
15 </sect1info>
16
17 <title>Bzip2-&bzip2-version;</title>
18
19 <indexterm zone="ch-system-bzip2">
20 <primary sortas="a-Bzip2">Bzip2</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
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>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
36 <seg>&bzip2-fin-sbu;</seg>
37 <seg>&bzip2-fin-du;</seg>
38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Bzip2</title>
45
46 <para>Apply a patch that will install the documentation for this package:</para>
47
48<screen><userinput remap="pre">patch -Np1 -i ../&bzip2-docs-patch;</userinput></screen>
49
50 <para>The following command ensures installation of symbolic links are relative:</para>
51
52<screen><userinput remap="pre">sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile</userinput></screen>
53
54 <para>Ensure the man pages are installed into the correct location:</para>
55
56<screen><userinput remap="pre">sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile</userinput></screen>
57
58 <para>Prepare Bzip2 for compilation with:</para>
59
60<screen><userinput remap="make">make -f Makefile-libbz2_so
61make clean</userinput></screen>
62
63 <variablelist>
64 <title>The meaning of the make parameter:</title>
65
66 <varlistentry>
67 <term><parameter>-f Makefile-libbz2_so</parameter></term>
68 <listitem>
69 <para>This will cause Bzip2 to be built using a different
70 <filename>Makefile</filename> file, in this case the
71 <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
72 <filename class="libraryfile">libbz2.so</filename> library and links
73 the Bzip2 utilities against it.</para>
74 </listitem>
75 </varlistentry>
76
77 </variablelist>
78
79 <para>Compile and test the package:</para>
80
81<screen><userinput remap="make">make</userinput></screen>
82
83 <para>Install the programs:</para>
84
85<screen><userinput remap="install">make PREFIX=/usr install</userinput></screen>
86
87 <para>Install the shared <command>bzip2</command> binary into the
88 <filename class="directory">/bin</filename> directory, make
89 some necessary symbolic links, and clean up:</para>
90
91<screen><userinput remap="install">cp -v bzip2-shared /bin/bzip2
92cp -av libbz2.so* /lib
93ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
94rm -v /usr/bin/{bunzip2,bzcat,bzip2}
95ln -sv bzip2 /bin/bunzip2
96ln -sv bzip2 /bin/bzcat</userinput></screen>
97
98 </sect2>
99
100 <!-- - - - - - - - - - -->
101 <!-- Multilib - 32bit -->
102 <!-- - - - - - - - - - -->
103
104 <sect2 arch="ml_32,ml_all" role="installation">
105 <title>Installation of Bzip2 - 32bit</title>
106
107 <para>Clean previous build:</para>
108
109<screen><userinput remap="pre">make clean</userinput></screen>
110
111 <para>Compile the package:</para>
112
113<screen><userinput remap="make">sed -e "s/^CC=.*/CC=gcc -m32/" -i Makefile{,-libbz2_so}
114make -f Makefile-libbz2_so
115make libbz2.a</userinput></screen>
116
117 <para>Install the package:</para>
118
119<screen><userinput remap="install">install -Dm755 libbz2.so.1.0.8 &usr-lib-m32;/libbz2.so.1.0.8
120ln -sf libbz2.so.1.0.8 &usr-lib-m32;/libbz2.so
121ln -sf libbz2.so.1.0.8 &usr-lib-m32;/libbz2.so.1
122ln -sf libbz2.so.1.0.8 &usr-lib-m32;/libbz2.so.1.0
123install -Dm644 libbz2.a &usr-lib-m32;/libbz2.a</userinput></screen>
124
125 </sect2><!-- m32 -->
126
127 <!-- - - - - - - - - - -->
128 <!-- Multilib - x32bit -->
129 <!-- - - - - - - - - - -->
130
131 <sect2 arch="ml_x32,ml_all" role="installation">
132 <title>Installation of Bzip2 - x32bit</title>
133
134 <para>Clean previous build:</para>
135
136<screen><userinput remap="pre">make clean</userinput></screen>
137
138 <para>Compile the package:</para>
139
140<screen><userinput remap="make">sed -e "s/^CC=.*/CC=gcc -mx32/" -i Makefile{,-libbz2_so}
141make -f Makefile-libbz2_so
142make libbz2.a</userinput></screen>
143
144 <para>Install the package:</para>
145
146<screen><userinput remap="install">install -Dm755 libbz2.so.1.0.8 &usr-lib-mx32;/libbz2.so.1.0.8
147ln -sf libbz2.so.1.0.8 &usr-lib-mx32;/libbz2.so
148ln -sf libbz2.so.1.0.8 &usr-lib-mx32;/libbz2.so.1
149ln -sf libbz2.so.1.0.8 &usr-lib-mx32;/libbz2.so.1.0
150install -Dm644 libbz2.a &usr-lib-mx32;/libbz2.a</userinput></screen>
151
152 </sect2><!-- mx32 -->
153
154 <sect2 id="contents-bzip2" role="content">
155 <title>Contents of Bzip2</title>
156
157 <segmentedlist>
158 <segtitle>Installed programs</segtitle>
159 <segtitle>Installed libraries</segtitle>
160 <segtitle>Installed directory</segtitle>
161
162 <seglistitem>
163 <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp (link to
164 bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep),
165 bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore</seg>
166 <seg>libbz2.{a,so}</seg>
167 <seg>/usr/share/doc/bzip2-&bzip2-version;</seg>
168 </seglistitem>
169 </segmentedlist>
170
171 <variablelist>
172 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
173 <?dbfo list-presentation="list"?>
174 <?dbhtml list-presentation="table"?>
175
176 <varlistentry id="bunzip2">
177 <term><command>bunzip2</command></term>
178 <listitem>
179 <para>Decompresses bzipped files</para>
180 <indexterm zone="ch-system-bzip2 bunzip2">
181 <primary sortas="b-bunzip2">bunzip2</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="bzcat">
187 <term><command>bzcat</command></term>
188 <listitem>
189 <para>Decompresses to standard output</para>
190 <indexterm zone="ch-system-bzip2 bzcat">
191 <primary sortas="b-bzcat">bzcat</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="bzcmp">
197 <term><command>bzcmp</command></term>
198 <listitem>
199 <para>Runs <command>cmp</command> on bzipped files</para>
200 <indexterm zone="ch-system-bzip2 bzcmp">
201 <primary sortas="b-bzcmp">bzcmp</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="bzdiff">
207 <term><command>bzdiff</command></term>
208 <listitem>
209 <para>Runs <command>diff</command> on bzipped files</para>
210 <indexterm zone="ch-system-bzip2 bzdiff">
211 <primary sortas="b-bzdiff">bzdiff</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="bzegrep">
217 <term><command>bzegrep</command></term>
218 <listitem>
219 <para>Runs <command>egrep</command> on bzipped files</para>
220 <indexterm zone="ch-system-bzip2 bzegrep">
221 <primary sortas="b-bzegrep">bzegrep</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="bzfgrep">
227 <term><command>bzfgrep</command></term>
228 <listitem>
229 <para>Runs <command>fgrep</command> on bzipped files</para>
230 <indexterm zone="ch-system-bzip2 bzfgrep">
231 <primary sortas="b-bzfgrep">bzfgrep</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="bzgrep">
237 <term><command>bzgrep</command></term>
238 <listitem>
239 <para>Runs <command>grep</command> on bzipped files</para>
240 <indexterm zone="ch-system-bzip2 bzgrep">
241 <primary sortas="b-bzgrep">bzgrep</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="bzip2">
247 <term><command>bzip2</command></term>
248 <listitem>
249 <para>Compresses files using the Burrows-Wheeler block sorting text
250 compression algorithm with Huffman coding; the compression rate is
251 better than that achieved by more conventional compressors using
252 <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
253 <indexterm zone="ch-system-bzip2 bzip2">
254 <primary sortas="b-bzip2">bzip2</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="bzip2recover">
260 <term><command>bzip2recover</command></term>
261 <listitem>
262 <para>Tries to recover data from damaged bzipped files</para>
263 <indexterm zone="ch-system-bzip2 bzip2recover">
264 <primary sortas="b-bzip2recover">bzip2recover</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="bzless">
270 <term><command>bzless</command></term>
271 <listitem>
272 <para>Runs <command>less</command> on bzipped files</para>
273 <indexterm zone="ch-system-bzip2 bzless">
274 <primary sortas="b-bzless">bzless</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="bzmore">
280 <term><command>bzmore</command></term>
281 <listitem>
282 <para>Runs <command>more</command> on bzipped files</para>
283 <indexterm zone="ch-system-bzip2 bzmore">
284 <primary sortas="b-bzmore">bzmore</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="libbz2">
290 <term><filename class="libraryfile">libbz2</filename></term>
291 <listitem>
292 <para>The library implementing lossless, block-sorting data
293 compression, using the Burrows-Wheeler algorithm</para>
294 <indexterm zone="ch-system-bzip2 libbz2">
295 <primary sortas="c-libbz2">libbz2</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 </variablelist>
301
302 </sect2>
303
304</sect1>
Note: See TracBrowser for help on using the repository browser.