source: BOOK/final-system/common/gzip.xml @ 44426cf

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 44426cf was 44426cf, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Updated to Glibc 2.6. This includes adding a sed to Coreutils and Gzip to rename their internal implementations of futimens which are incompatible with the implementation provided by Glibc. Added a target tripplet based optimization to glibc on x86 and 32bit build on x86_64 so that glibc will build properly now that i386 is no longer supported. Also added a note to the build variables page the i386-pc-linux-gnu is not supported by glibc.

  • Property mode set to 100644
File size: 7.1 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-gzip" role="wrap">
9  <?dbhtml filename="gzip.html"?>
10
11  <title>Gzip-&gzip-version;</title>
12
13  <indexterm zone="ch-system-gzip">
14    <primary sortas="a-Gzip">Gzip</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>The Gzip package contains programs for compressing and decompressing
21    files.</para>
22
23  </sect2>
24
25  <sect2 role="installation">
26    <title>Installation of Gzip</title>
27
28    <para os="s1">The following command renames the internal implementation of
29    futimens to gl_futimens as newer versions of Glibc provide an incompatible
30    version:</para>
31
32<screen os="s2"><userinput>sed -i "s/futimens/gl_&amp;/" $(grep -lr futimens *)</userinput></screen>
33
34    <para os="a">Prepare Gzip for compilation:</para>
35
36<screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
37
38    <para os="c">Compile the package:</para>
39
40<screen os="d"><userinput>make</userinput></screen>
41
42    <para os="e">To test the results, issue: <command>make check</command>.</para>
43
44    <para os="f">Install the package:</para>
45
46<screen os="g"><userinput>make install</userinput></screen>
47
48    <para os="h">Now we will move some of utilities to /usr/bin to meet FHS compliance:</para>
49
50<screen os="i"><userinput>mv /bin/z{egrep,cmp,diff,fgrep,force,grep,less,more,new} /usr/bin</userinput></screen>
51
52  </sect2>
53
54  <sect2 id="contents-gzip" role="content">
55    <title>Contents of Gzip</title>
56
57    <segmentedlist>
58      <segtitle>Installed programs</segtitle>
59
60      <seglistitem>
61        <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff,
62        zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
63      </seglistitem>
64    </segmentedlist>
65
66    <variablelist>
67      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
68      <?dbfo list-presentation="list"?>
69      <?dbhtml list-presentation="table"?>
70
71      <varlistentry id="gunzip">
72        <term><command>gunzip</command></term>
73        <listitem>
74          <para>Decompresses gzipped files</para>
75          <indexterm zone="ch-system-gzip gunzip">
76            <primary sortas="b-gunzip">gunzip</primary>
77          </indexterm>
78        </listitem>
79      </varlistentry>
80
81      <varlistentry id="gzexe">
82        <term><command>gzexe</command></term>
83        <listitem>
84          <para>Creates self-decompressing executable files</para>
85          <indexterm zone="ch-system-gzip gzexe">
86            <primary sortas="b-gzexe">gzexe</primary>
87          </indexterm>
88        </listitem>
89      </varlistentry>
90
91      <varlistentry id="gzip">
92        <term><command>gzip</command></term>
93        <listitem>
94          <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
95          <indexterm zone="ch-system-gzip gzip">
96            <primary sortas="b-gzip">gzip</primary>
97          </indexterm>
98        </listitem>
99      </varlistentry>
100
101      <varlistentry id="uncompress">
102        <term><command>uncompress</command></term>
103        <listitem>
104          <para>Decompresses compressed files</para>
105          <indexterm zone="ch-system-gzip uncompress">
106            <primary sortas="b-uncompress">uncompress</primary>
107          </indexterm>
108        </listitem>
109      </varlistentry>
110
111      <varlistentry id="zcat">
112        <term><command>zcat</command></term>
113        <listitem>
114          <para>Decompresses the given gzipped files to standard output</para>
115          <indexterm zone="ch-system-gzip zcat">
116            <primary sortas="b-zcat">zcat</primary>
117          </indexterm>
118        </listitem>
119      </varlistentry>
120
121      <varlistentry id="zcmp">
122        <term><command>zcmp</command></term>
123        <listitem>
124          <para>Runs <command>cmp</command> on gzipped files</para>
125          <indexterm zone="ch-system-gzip zcmp">
126            <primary sortas="b-zcmp">zcmp</primary>
127          </indexterm>
128        </listitem>
129      </varlistentry>
130
131      <varlistentry id="zdiff">
132        <term><command>zdiff</command></term>
133        <listitem>
134          <para>Runs <command>diff</command> on gzipped files</para>
135          <indexterm zone="ch-system-gzip zdiff">
136            <primary sortas="b-zdiff">zdiff</primary>
137          </indexterm>
138        </listitem>
139      </varlistentry>
140
141      <varlistentry id="zegrep">
142        <term><command>zegrep</command></term>
143        <listitem>
144          <para>Runs <command>egrep</command> on gzipped files</para>
145          <indexterm zone="ch-system-gzip zegrep">
146            <primary sortas="b-zegrep">zegrep</primary>
147          </indexterm>
148        </listitem>
149      </varlistentry>
150
151      <varlistentry id="zfgrep">
152        <term><command>zfgrep</command></term>
153        <listitem>
154          <para>Runs <command>fgrep</command> on gzipped files</para>
155          <indexterm zone="ch-system-gzip zfgrep">
156            <primary sortas="b-zfgrep">zfgrep</primary>
157          </indexterm>
158        </listitem>
159      </varlistentry>
160
161      <varlistentry id="zforce">
162        <term><command>zforce</command></term>
163        <listitem>
164          <para>Forces a <filename class="extension">.gz</filename> extension on
165          all given files that are gzipped files, so that <command>gzip</command>
166          will not compress them again; this can be useful when file names were
167          truncated during a file transfer</para>
168          <indexterm zone="ch-system-gzip zforce">
169            <primary sortas="b-zforce">zforce</primary>
170          </indexterm>
171        </listitem>
172      </varlistentry>
173
174      <varlistentry id="zgrep">
175        <term><command>zgrep</command></term>
176        <listitem>
177          <para>Runs <command>grep</command> on gzipped files</para>
178          <indexterm zone="ch-system-gzip zgrep">
179            <primary sortas="b-zgrep">zgrep</primary>
180          </indexterm>
181        </listitem>
182      </varlistentry>
183
184      <varlistentry id="zless">
185        <term><command>zless</command></term>
186        <listitem>
187          <para>Runs <command>less</command> on gzipped files</para>
188          <indexterm zone="ch-system-gzip zless">
189            <primary sortas="b-zless">zless</primary>
190          </indexterm>
191        </listitem>
192      </varlistentry>
193
194      <varlistentry id="zmore">
195        <term><command>zmore</command></term>
196        <listitem>
197          <para>Runs <command>more</command> on gzipped files</para>
198          <indexterm zone="ch-system-gzip zmore">
199            <primary sortas="b-zmore">zmore</primary>
200          </indexterm>
201        </listitem>
202      </varlistentry>
203
204      <varlistentry id="znew">
205        <term><command>znew</command></term>
206        <listitem>
207          <para>Re-compresses files from <command>compress</command> format to
208          <command>gzip</command> format&mdash;<filename
209          class="extension">.Z</filename> to <filename
210          class="extension">.gz</filename></para>
211          <indexterm zone="ch-system-gzip znew">
212            <primary sortas="b-znew">znew</primary>
213          </indexterm>
214        </listitem>
215      </varlistentry>
216
217    </variablelist>
218
219  </sect2>
220
221</sect1>
Note: See TracBrowser for help on using the repository browser.