source: chapter08/bzip2.xml@ 0ebda11

ml-11.0 multilib
Last change on this file since 0ebda11 was 0ebda11, checked in by Thomas Trepl (Moody) <thomas@…>, 3 years ago

Remove entities for multilib pathes
Add usage of libc_cv_rtlddir

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