source: chapter06/bzip2.xml@ abbd53b8

multilib-10.1
Last change on this file since abbd53b8 was abbd53b8, checked in by Thomas Trepl <thomas@…>, 5 years ago

Fix library names (new version)

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

  • Property mode set to 100644
File size: 9.9 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-ch6-sbu;</seg>
37 <seg>&bzip2-ch6-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 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
101
102 <sect2 arch="ml_32,ml_all" role="installation">
103 <title>Installation of Bzip2 - 32-bit</title>
104
105 <para>Clean previous build:</para>
106
107<screen><userinput remap="pre">make clean</userinput></screen>
108
109 <para>Compile the package:</para>
110
111<screen><userinput remap="make">sed -e "s/^CC=.*/CC=gcc -m32/" \
112 -i Makefile{,-libbz2_so}
113make -f Makefile-libbz2_so
114make libbz2.a</userinput></screen>
115
116 <para>Install the package:</para>
117
118<screen><userinput remap="install">install -Dm755 libbz2.so.1.0.8 /usr/lib32/libbz2.so.1.0.8
119ln -sf libbz2.so.1.0.8 /usr/lib32/libbz2.so
120ln -sf libbz2.so.1.0.8 /usr/lib32/libbz2.so.1
121ln -sf libbz2.so.1.0.8 /usr/lib32/libbz2.so.1.0
122install -Dm644 libbz2.a /usr/lib32/libbz2.a</userinput></screen>
123
124 </sect2>
125
126 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
127
128 <sect2 arch="ml_x32,ml_all" role="installation">
129 <title>Installation of Bzip2 - x32-bit</title>
130
131 <para>Clean previous build:</para>
132
133<screen><userinput remap="pre">make clean</userinput></screen>
134
135 <para>Compile the package:</para>
136
137<screen><userinput remap="make">sed -e "s/^CC=.*/CC=gcc -mx32/" \
138 -i Makefile{,-libbz2_so}
139make -f Makefile-libbz2_so
140make libbz2.a</userinput></screen>
141
142 <para>Install the package:</para>
143
144<screen><userinput remap="install">install -Dm755 libbz2.so.1.0.8 /usr/libx32/libbz2.so.1.0.8
145ln -sf libbz2.so.1.0.8 /usr/libx32/libbz2.so
146ln -sf libbz2.so.1.0.8 /usr/libx32/libbz2.so.1
147ln -sf libbz2.so.1.0.8 /usr/libx32/libbz2.so.1.0
148install -Dm644 libbz2.a /usr/libx32/libbz2.a</userinput></screen>
149
150 </sect2>
151
152 <sect2 id="contents-bzip2" role="content">
153 <title>Contents of Bzip2</title>
154
155 <segmentedlist>
156 <segtitle>Installed programs</segtitle>
157 <segtitle>Installed libraries</segtitle>
158 <segtitle>Installed directory</segtitle>
159
160 <seglistitem>
161 <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp (link to
162 bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep),
163 bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore</seg>
164 <seg>libbz2.{a,so}</seg>
165 <seg>/usr/share/doc/bzip2-&bzip2-version;</seg>
166 </seglistitem>
167 </segmentedlist>
168
169 <variablelist>
170 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
171 <?dbfo list-presentation="list"?>
172 <?dbhtml list-presentation="table"?>
173
174 <varlistentry id="bunzip2">
175 <term><command>bunzip2</command></term>
176 <listitem>
177 <para>Decompresses bzipped files</para>
178 <indexterm zone="ch-system-bzip2 bunzip2">
179 <primary sortas="b-bunzip2">bunzip2</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 <varlistentry id="bzcat">
185 <term><command>bzcat</command></term>
186 <listitem>
187 <para>Decompresses to standard output</para>
188 <indexterm zone="ch-system-bzip2 bzcat">
189 <primary sortas="b-bzcat">bzcat</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="bzcmp">
195 <term><command>bzcmp</command></term>
196 <listitem>
197 <para>Runs <command>cmp</command> on bzipped files</para>
198 <indexterm zone="ch-system-bzip2 bzcmp">
199 <primary sortas="b-bzcmp">bzcmp</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="bzdiff">
205 <term><command>bzdiff</command></term>
206 <listitem>
207 <para>Runs <command>diff</command> on bzipped files</para>
208 <indexterm zone="ch-system-bzip2 bzdiff">
209 <primary sortas="b-bzdiff">bzdiff</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="bzegrep">
215 <term><command>bzegrep</command></term>
216 <listitem>
217 <para>Runs <command>egrep</command> on bzipped files</para>
218 <indexterm zone="ch-system-bzip2 bzegrep">
219 <primary sortas="b-bzegrep">bzegrep</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="bzfgrep">
225 <term><command>bzfgrep</command></term>
226 <listitem>
227 <para>Runs <command>fgrep</command> on bzipped files</para>
228 <indexterm zone="ch-system-bzip2 bzfgrep">
229 <primary sortas="b-bzfgrep">bzfgrep</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="bzgrep">
235 <term><command>bzgrep</command></term>
236 <listitem>
237 <para>Runs <command>grep</command> on bzipped files</para>
238 <indexterm zone="ch-system-bzip2 bzgrep">
239 <primary sortas="b-bzgrep">bzgrep</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="bzip2">
245 <term><command>bzip2</command></term>
246 <listitem>
247 <para>Compresses files using the Burrows-Wheeler block sorting text
248 compression algorithm with Huffman coding; the compression rate is
249 better than that achieved by more conventional compressors using
250 <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
251 <indexterm zone="ch-system-bzip2 bzip2">
252 <primary sortas="b-bzip2">bzip2</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="bzip2recover">
258 <term><command>bzip2recover</command></term>
259 <listitem>
260 <para>Tries to recover data from damaged bzipped files</para>
261 <indexterm zone="ch-system-bzip2 bzip2recover">
262 <primary sortas="b-bzip2recover">bzip2recover</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry id="bzless">
268 <term><command>bzless</command></term>
269 <listitem>
270 <para>Runs <command>less</command> on bzipped files</para>
271 <indexterm zone="ch-system-bzip2 bzless">
272 <primary sortas="b-bzless">bzless</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 <varlistentry id="bzmore">
278 <term><command>bzmore</command></term>
279 <listitem>
280 <para>Runs <command>more</command> on bzipped files</para>
281 <indexterm zone="ch-system-bzip2 bzmore">
282 <primary sortas="b-bzmore">bzmore</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="libbz2">
288 <term><filename class="libraryfile">libbz2</filename></term>
289 <listitem>
290 <para>The library implementing lossless, block-sorting data
291 compression, using the Burrows-Wheeler algorithm</para>
292 <indexterm zone="ch-system-bzip2 libbz2">
293 <primary sortas="c-libbz2">libbz2</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 </variablelist>
299
300 </sect2>
301
302</sect1>
Note: See TracBrowser for help on using the repository browser.