source: chapter06/bzip2.xml@ 69ef7b4

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 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 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
Last change on this file since 69ef7b4 was 1442d77, checked in by Bruce Dubbs <bdubbs@…>, 15 years ago

Update bzip2 installation to install relative symbolic links

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8879 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 8.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-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 to 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>Prepare Bzip2 for compilation with:</para>
55
56<screen><userinput remap="make">make -f Makefile-libbz2_so
57make clean</userinput></screen>
58
59 <variablelist>
60 <title>The meaning of the make parameter:</title>
61
62 <varlistentry>
63 <term><parameter>-f Makefile-libbz2_so</parameter></term>
64 <listitem>
65 <para>This will cause Bzip2 to be built using a different
66 <filename>Makefile</filename> file, in this case the
67 <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
68 <filename class="libraryfile">libbz2.so</filename> library and links
69 the Bzip2 utilities against it.</para>
70 </listitem>
71 </varlistentry>
72
73 </variablelist>
74
75 <para>Compile and test the package:</para>
76
77<screen><userinput remap="make">make</userinput></screen>
78
79 <para>Install the programs:</para>
80
81<screen><userinput remap="install">make PREFIX=/usr install</userinput></screen>
82
83 <para>Install the shared <command>bzip2</command> binary into the
84 <filename class="directory">/bin</filename> directory, make
85 some necessary symbolic links, and clean up:</para>
86
87<screen><userinput remap="install">cp -v bzip2-shared /bin/bzip2
88cp -av libbz2.so* /lib
89ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
90rm -v /usr/bin/{bunzip2,bzcat,bzip2}
91ln -sv bzip2 /bin/bunzip2
92ln -sv bzip2 /bin/bzcat</userinput></screen>
93
94 </sect2>
95
96 <sect2 id="contents-bzip2" role="content">
97 <title>Contents of Bzip2</title>
98
99 <segmentedlist>
100 <segtitle>Installed programs</segtitle>
101 <segtitle>Installed libraries</segtitle>
102
103 <seglistitem>
104 <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp (link to
105 bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep),
106 bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore</seg>
107 <seg>libbz2.{a,so}</seg>
108 </seglistitem>
109 </segmentedlist>
110
111 <variablelist>
112 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
113 <?dbfo list-presentation="list"?>
114 <?dbhtml list-presentation="table"?>
115
116 <varlistentry id="bunzip2">
117 <term><command>bunzip2</command></term>
118 <listitem>
119 <para>Decompresses bzipped files</para>
120 <indexterm zone="ch-system-bzip2 bunzip2">
121 <primary sortas="b-bunzip2">bunzip2</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="bzcat">
127 <term><command>bzcat</command></term>
128 <listitem>
129 <para>Decompresses to standard output</para>
130 <indexterm zone="ch-system-bzip2 bzcat">
131 <primary sortas="b-bzcat">bzcat</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry id="bzcmp">
137 <term><command>bzcmp</command></term>
138 <listitem>
139 <para>Runs <command>cmp</command> on bzipped files</para>
140 <indexterm zone="ch-system-bzip2 bzcmp">
141 <primary sortas="b-bzcmp">bzcmp</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 <varlistentry id="bzdiff">
147 <term><command>bzdiff</command></term>
148 <listitem>
149 <para>Runs <command>diff</command> on bzipped files</para>
150 <indexterm zone="ch-system-bzip2 bzdiff">
151 <primary sortas="b-bzdiff">bzdiff</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="bzegrep">
157 <term><command>bzegrep</command></term>
158 <listitem>
159 <para>Runs <command>egrep</command> on bzipped files</para>
160 <indexterm zone="ch-system-bzip2 bzegrep">
161 <primary sortas="b-bzegrep">bzegrep</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="bzfgrep">
167 <term><command>bzfgrep</command></term>
168 <listitem>
169 <para>Runs <command>fgrep</command> on bzipped files</para>
170 <indexterm zone="ch-system-bzip2 bzfgrep">
171 <primary sortas="b-bzfgrep">bzfgrep</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="bzgrep">
177 <term><command>bzgrep</command></term>
178 <listitem>
179 <para>Runs <command>grep</command> on bzipped files</para>
180 <indexterm zone="ch-system-bzip2 bzgrep">
181 <primary sortas="b-bzgrep">bzgrep</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="bzip2">
187 <term><command>bzip2</command></term>
188 <listitem>
189 <para>Compresses files using the Burrows-Wheeler block sorting text
190 compression algorithm with Huffman coding; the compression rate is
191 better than that achieved by more conventional compressors using
192 <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
193 <indexterm zone="ch-system-bzip2 bzip2">
194 <primary sortas="b-bzip2">bzip2</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="bzip2recover">
200 <term><command>bzip2recover</command></term>
201 <listitem>
202 <para>Tries to recover data from damaged bzipped files</para>
203 <indexterm zone="ch-system-bzip2 bzip2recover">
204 <primary sortas="b-bzip2recover">bzip2recover</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="bzless">
210 <term><command>bzless</command></term>
211 <listitem>
212 <para>Runs <command>less</command> on bzipped files</para>
213 <indexterm zone="ch-system-bzip2 bzless">
214 <primary sortas="b-bzless">bzless</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="bzmore">
220 <term><command>bzmore</command></term>
221 <listitem>
222 <para>Runs <command>more</command> on bzipped files</para>
223 <indexterm zone="ch-system-bzip2 bzmore">
224 <primary sortas="b-bzmore">bzmore</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="libbz2">
230 <term><filename class="libraryfile">libbz2*</filename></term>
231 <listitem>
232 <para>The library implementing lossless, block-sorting data
233 compression, using the Burrows-Wheeler algorithm</para>
234 <indexterm zone="ch-system-bzip2 libbz2">
235 <primary sortas="c-libbz2*">libbz2*</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 </variablelist>
241
242 </sect2>
243
244</sect1>
Note: See TracBrowser for help on using the repository browser.