Update unzip to allow files upto 4 GB

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5574 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Tushar Teredesai 2006-01-18 03:24:46 +00:00
parent b35e86b260
commit cdbfae1b4a
2 changed files with 16 additions and 13 deletions

View File

@ -97,15 +97,15 @@
patch -Np1 -i ../unzip-&unzip-version;-fix_libz-1.patch &&
patch -Np1 -i ../unzip-&unzip-version;-dont_make_noise-1.patch &&
cp -v unix/Makefile . &&
make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK linux &&
make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK linux_shlibz</userinput></screen>
make prefix=/usr LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux &amp;&amp;
make prefix=/usr LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux_shlibz</userinput></screen>
<para>To test the results, issue: <command>LD_LIBRARY_PATH=$PWD
make check</command>.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK install &amp;&amp;
<screen role="root"><userinput>make prefix=/usr install &amp;&amp;
cp -v -d libunzip.so* /usr/lib</userinput></screen>
</sect2>
@ -113,15 +113,14 @@ cp -v -d libunzip.so* /usr/lib</userinput></screen>
<sect2 role="commands">
<title>Command Explanations</title>
<para><command>make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK linux</command>:
This command overrides the <varname>prefix</varname> variable that is
set to <filename class="directory">/usr/local</filename> in the
<filename>Makefile</filename>, sets the <envar>LOCAL_UNZIP</envar>
environment variable to instruct <application>UnZip</application> to use
the shrinking algorithm based on the LZW compression
algorithm, and builds the executables for a Linux system.
The alternatives to 'linux' can be seen with a
<command>make list</command> command.</para>
<para><parameter>linux</parameter>:
This target in the <filename>Makefile</filename> makes assumptions
that are useful for a Linux system when compiling the executables.
To obtain alternatives to this target, use <command>make list</command></para>
<para><parameter>LOCAL_UNZIP=...</parameter>:
This sets the compilation flags to allow <application>UnZip</application>
to handle files upto 4 GB.</para>
<para><command>make ... linux_shlibz</command>: Build shared
<filename>libunzip</filename> and link <application>UnZip</application>

View File

@ -44,7 +44,11 @@
<para>January 17th, 2006</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Added patch to clear selected environment variables.
<para>[tushar] - Modify unzip compilation to enable unzip to
unzip files upto 4 GB.</para>
</listitem>
<listitem>
<para>[bdubbs] - Added patch for sudo to clear selected environment variables.
Submitted by archaic.</para>
</listitem>
<listitem>