source: general/sysutils/unzip.xml@ 1353bb4

systemd-13485
Last change on this file since 1353bb4 was 1353bb4, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to LibRaw-0.17.2
Update to libevdev-1.5.1
Above merged from trunk r17363.
GCC6 Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17364 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.8 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 <!ENTITY unzip-download-http "&sourceforge-repo;/infozip/unzip60.tar.gz">
8 <!-- <!ENTITY unzip-download-http "http://www.mirrorservice.org/sites/ftp.info-zip.org/pub/infozip/src/unzip552.tar.gz">
9 <!ENTITY unzip-download-ftp "ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tar.gz">
10 <!ENTITY unzip-download-ftp "ftp://tug.ctan.org/tex-archive/tools/zip/info-zip/src/unzip552.tar.gz"> -->
11 <!ENTITY unzip-download-ftp " ">
12 <!ENTITY unzip-md5sum "62b490407489521db863b523a7f86375">
13 <!ENTITY unzip-size "1.3 MB">
14 <!ENTITY unzip-buildsize "9 MB">
15 <!ENTITY unzip-time "less than 0.1 SBU">
16]>
17
18<sect1 id="unzip" xreflabel="UnZip-&unzip-version;">
19 <?dbhtml filename="unzip.html"?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>UnZip-&unzip-version;</title>
27
28 <indexterm zone="unzip">
29 <primary sortas="a-UnZip">UnZip</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to UnZip</title>
34
35 <para>The <application>UnZip</application> package contains
36 <filename>ZIP</filename> extraction utilities. These are useful for
37 extracting files from <filename>ZIP</filename> archives.
38 <filename>ZIP</filename> archives are created with
39 <application>PKZIP</application> or <application>Info-ZIP</application>
40 utilities, primarily in a DOS environment.</para>
41
42 &lfs79_checked;
43
44 &gcc6_checked;
45
46 <caution>
47 <para>The previous version of the <application>UnZip</application>
48 package had some locale related issues. Currently there are no BLFS
49 editors capable of testing these local issues. Therefore, the
50 locale related information is left on this page, but has not been
51 tested. <!--Note that the patch recommended for the locale issues will not
52 apply to this version of <application>UnZip</application>. See the
53 discussion below in <xref linkend="unzip-locale-issues"/>. --> A more
54 general discussion of these problems can be found in the
55 <xref linkend="locale-assumed-encoding"/> section of the
56 <xref linkend="locale-issues"/> page.</para>
57 </caution>
58
59 <bridgehead renderas="sect3">Package Information</bridgehead>
60 <itemizedlist spacing="compact">
61 <listitem>
62 <para>Download (HTTP): <ulink url="&unzip-download-http;"/></para>
63 </listitem>
64 <listitem>
65 <para>Download (FTP): <ulink url="&unzip-download-ftp;"/></para>
66 </listitem>
67 <listitem>
68 <para>Download MD5 sum: &unzip-md5sum;</para>
69 </listitem>
70 <listitem>
71 <para>Download size: &unzip-size;</para>
72 </listitem>
73 <listitem>
74 <para>Estimated disk space required: &unzip-buildsize;</para>
75 </listitem>
76 <listitem>
77 <para>Estimated build time: &unzip-time;</para>
78 </listitem>
79 </itemizedlist>
80<!--
81 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
82 <itemizedlist spacing='compact'> -->
83 <!-- <listitem>
84 <para>Required patch: <ulink
85 url="&patch-root;/unzip-&unzip-version;-security_fix-1.patch"/></para>
86 </listitem>
87 <listitem>
88 <para>Required patch: <ulink
89 url="&patch-root;/unzip-&unzip-version;-security_fix-2.patch"/></para>
90 </listitem> -->
91 <!--
92 <listitem>
93 <para>Optional patch (will not apply properly): <ulink
94 url="&patch-root;/unzip-5.50-alt-iconv-v1.1.patch"/></para>
95 </listitem>
96 </itemizedlist>
97 -->
98 <para condition="html" role="usernotes">User Notes:
99 <ulink url="&blfs-wiki;/unzip"/></para>
100
101 </sect2>
102
103 <sect2 id="unzip-locale-issues">
104 <title>UnZip Locale Issues</title>
105
106 <note>
107 <para>Use of <application>UnZip</application> in the
108 <application>JDK</application>, <application>Mozilla</application>,
109 <application>DocBook</application> or any other BLFS package
110 installation is not a problem, as BLFS instructions never use
111 <application>UnZip</application> to extract a file with non-ASCII
112 characters in the file's name.</para>
113 </note>
114
115 <para>The <application>UnZip</application> package assumes that filenames
116 stored in the ZIP archives created on non-Unix systems are encoded in
117 CP850, and that they should be converted to ISO-8859-1 when writing files
118 onto the filesystem. Such assumptions are not always valid. In fact,
119 inside the ZIP archive, filenames are encoded in the DOS codepage that is
120 in use in the relevant country, and the filenames on disk should be in
121 the locale encoding. In MS Windows, the OemToChar() C function (from
122 <filename>User32.DLL</filename>) does the correct conversion (which is
123 indeed the conversion from CP850 to a superset of ISO-8859-1 if MS
124 Windows is set up to use the US English language), but there is no
125 equivalent in Linux.</para>
126
127 <para>When using <command>unzip</command> to unpack a ZIP archive
128 containing non-ASCII filenames, the filenames are damaged because
129 <command>unzip</command> uses improper conversion when any of its
130 encoding assumptions are incorrect. For example, in the ru_RU.KOI8-R
131 locale, conversion of filenames from CP866 to KOI8-R is required, but
132 conversion from CP850 to ISO-8859-1 is done, which produces filenames
133 consisting of undecipherable characters instead of words (the closest
134 equivalent understandable example for English-only users is rot13). There
135 are several ways around this limitation:</para>
136
137 <para>1) For unpacking ZIP archives with filenames containing non-ASCII
138 characters, use <ulink url="http://www.winzip.com/">WinZip</ulink> while
139 running the <ulink url="http://www.winehq.com/">Wine</ulink> Windows
140 emulator.</para>
141
142 <para>2) After running <command>unzip</command>, fix the damage made to
143 the filenames using the <command>convmv</command> tool
144 (<ulink url="http://j3e.de/linux/convmv/"/>). The following is an example
145 for the ru_RU.KOI8-R locale:</para>
146
147 <blockquote>
148 <para>Step 1. Undo the conversion done by
149 <command>unzip</command>:</para>
150
151<screen><userinput>convmv -f iso-8859-1 -t cp850 -r --nosmart --notest \
152 <replaceable>&lt;/path/to/unzipped/files&gt;</replaceable></userinput></screen>
153
154 <para>Step 2. Do the correct conversion instead:</para>
155
156<screen><userinput>convmv -f cp866 -t koi8-r -r --nosmart --notest \
157 <replaceable>&lt;/path/to/unzipped/files&gt;</replaceable></userinput></screen>
158 </blockquote>
159<!--
160 <para>3) Apply the optional
161 <filename>unzip-5.50-alt-iconv-v1.1.patch</filename> patch to
162 <application>UnZip</application>. It will apply with some offsets.</para>
163
164 <para>It allows to specify the assumed filename encoding in the ZIP
165 archive using the <option>-O charset_name</option> option and the
166 on-disk filename encoding using the <option>-I charset_name</option>
167 option. Defaults: the on-disk filename encoding is the locale encoding,
168 the encoding inside the ZIP archive is guessed according to the builtin
169 table based on the locale encoding. For US English users, this still
170 means that unzip converts from CP850 to ISO-8859-1 by default.</para>
171
172 <para>Caveat: this method works only with 8-bit locale encodings, not
173 with UTF-8. Attempting to use a patched <command>unzip</command> in UTF-8
174 locales may result in a segmentation fault and is probably a security
175 risk.</para>
176-->
177 </sect2>
178
179 <sect2 role="installation">
180 <title>Installation of UnZip</title>
181
182 <!-- <para>Note that if you applied the patch described above for locale issues,
183 the first required security patch will have some offsets. Now install
184 <application>UnZip</application> by running the following commands:</para> -->
185
186<screen><userinput>make -f unix/Makefile generic</userinput></screen>
187
188 <para>The test suite does not work for present target <quote>generic</quote>.</para>
189
190 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
191
192<screen role="root"><userinput>make prefix=/usr MANDIR=/usr/share/man/man1 \
193 -f unix/Makefile install</userinput></screen>
194
195 </sect2>
196
197 <sect2 role="commands">
198 <title>Command Explanations</title>
199
200 <para><parameter>make -f unix/Makefile generic</parameter>:
201 This target begins by running a configure script (unlike the older targets
202 such as linux and linux_noasm) which creates a flags file that is then used
203 in the build. This ensures that the 32-bit x86 build receives the right
204 flags to unzip files which which are larger than 2GB when extracted.</para>
205
206 </sect2>
207
208 <sect2 role="content">
209 <title>Contents</title>
210
211 <segmentedlist>
212 <segtitle>Installed Programs</segtitle>
213 <segtitle>Installed Libraries</segtitle>
214 <segtitle>Installed Directories</segtitle>
215
216 <seglistitem>
217 <seg>funzip, unzip, unzipfsx, zipgrep, and zipinfo</seg>
218 <seg>None</seg>
219 <seg>None</seg>
220 </seglistitem>
221 </segmentedlist>
222
223 <variablelist>
224 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
225 <?dbfo list-presentation="list"?>
226 <?dbhtml list-presentation="table"?>
227
228 <varlistentry id="funzip">
229 <term><command>funzip</command></term>
230 <listitem>
231 <para>allows the output of <command>unzip</command> commands to be
232 redirected.</para>
233 <indexterm zone="unzip funzip">
234 <primary sortas="b-funzip">funzip</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="unzip-prog">
240 <term><command>unzip</command></term>
241 <listitem>
242 <para>lists, tests or extracts files from a <filename>ZIP</filename>
243 archive.</para>
244 <indexterm zone="unzip unzip-prog">
245 <primary sortas="b-unzip">unzip</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="unzipfsx">
251 <term><command>unzipfsx</command></term>
252 <listitem>
253 <para>is a self-extracting stub that can be prepended to a
254 <filename>ZIP</filename> archive. Files in this format allow the
255 recipient to decompress the archive without installing
256 <application>UnZip</application>.</para>
257 <indexterm zone="unzip unzipfsx">
258 <primary sortas="b-unzipfsx">unzipfsx</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="zipgrep">
264 <term><command>zipgrep</command></term>
265 <listitem>
266 <para>searches files in a <filename>ZIP</filename> archive for
267 lines matching a pattern.</para>
268 <indexterm zone="unzip zipgrep">
269 <primary sortas="b-zipgrep">zipgrep</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="zipinfo">
275 <term><command>zipinfo</command></term>
276 <listitem>
277 <para>produces technical information about the files in a
278 <filename>ZIP</filename> archive, including file access permissions,
279 encryption status, type of compression, etc.</para>
280 <indexterm zone="unzip zipinfo">
281 <primary sortas="b-zipinfo">zipinfo</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285<!--
286 <varlistentry id="libunzip">
287 <term><filename class='libraryfile'>libunzip.so</filename></term>
288 <listitem>
289 <para>contains the API functions required by the
290 <application>UnZip</application> programs.</para>
291 <indexterm zone="unzip libunzip">
292 <primary sortas="c-libunzip">libunzip.so</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296-->
297 </variablelist>
298
299 </sect2>
300
301</sect1>
Note: See TracBrowser for help on using the repository browser.