unzip: Use the generic target (new in unzip60, apparently) : this fixes unzipping to files larger than 2GiB - e.g. raspberry pi images - on i686.It also mean we do the same for i686 and x86_64. The previous commented option might have also worked, but I guess nobody used to have any reason to unzip such large files.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15811 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Ken Moffat 2015-04-08 21:33:38 +00:00
parent 25c5f53e3c
commit abd464a786
2 changed files with 12 additions and 24 deletions

View File

@ -181,41 +181,25 @@
the first required security patch will have some offsets. Now install
<application>UnZip</application> by running the following commands:</para> -->
<screen><userinput>case `uname -m` in
i?86)
sed -i -e 's/DASM_CRC"/DASM_CRC -DNO_LCHMOD"/' unix/Makefile
make -f unix/Makefile linux
;;
*)
sed -i -e 's/CFLAGS="-O -Wall/&amp; -DNO_LCHMOD/' unix/Makefile
make -f unix/Makefile linux_noasm
;;
esac</userinput></screen>
<screen><userinput>make -f unix/Makefile generic</userinput></screen>
<para>To test the results, issue: <command>make check</command>.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make prefix=/usr MANDIR=/usr/share/man/man1 install</userinput></screen>
<screen role="root"><userinput>make prefix=/usr MANDIR=/usr/share/man/man1 \
-f unix/Makefile install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><command>sed ...</command>: This command ensures an obsolete
system call is not made.</para>
<para><parameter>linux, linux_noasm</parameter>:
The linux target in the <filename>Makefile</filename> makes assumptions
that are useful for a Linux system when compiling the executables, but
also uses some 32-bit x86 assembler code. The linux_noasm target will
build on all linux hosts. To obtain alternatives to these targets, use
<command>make -f unix/Makefile list</command></para>
<!-- <para><parameter>LOCAL_UNZIP=...</parameter>:
This sets the compilation flags to allow <application>UnZip</application>
to handle files up to 4 GB.</para> -->
<para><parameter>make -f unix/Makefile generic</parameter>:
This target begins by running a configure script (unlike the older targets
such as linux and linux_noasm) which creates a flags file that is then used
in the build. This ensures that the 32-bit x86 build receives the right
flags to unzip files which which are larger than 2GB when extracted.</para>
</sect2>

View File

@ -47,6 +47,10 @@
<listitem>
<para>April 8th, 2015</para>
<itemizedlist>
<listitem>
<para>[ken] - Use the generic target in unzip, this fixes unzipping
files larger than 2GB on i686.</para>
</listitem>
<listitem>
<para>[fernando] - Archive Totem-3.16.0, Grilo-0.2.12 and
Grilo-Plugins-0.2.14. Fixes