Author: bdubbs
Date: Sun Jul 27 14:49:13 2014
New Revision: 10658

Log:
Instruct perl to use the system bzip2 library

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/chapter06.xml
   trunk/BOOK/chapter06/perl.xml

Modified: trunk/BOOK/chapter01/changelog.xml
==============================================================================
--- trunk/BOOK/chapter01/changelog.xml  Sun Jul 27 11:24:56 2014        (r10657)
+++ trunk/BOOK/chapter01/changelog.xml  Sun Jul 27 14:49:13 2014        (r10658)
@@ -39,6 +39,9 @@
       <para>2014-07-27</para>
       <itemizedlist>
         <listitem>
+          <para>[bdubbs] - Instruct perl to use the system bzip2 
library.</para>
+        </listitem>
+        <listitem>
           <para>[bdubbs] - Update to check-0.9.14. Fixes
           <ulink url="&lfs-ticket-root;3641">#3641</ulink>.</para>
         </listitem>

Modified: trunk/BOOK/chapter06/chapter06.xml
==============================================================================
--- trunk/BOOK/chapter06/chapter06.xml  Sun Jul 27 11:24:56 2014        (r10657)
+++ trunk/BOOK/chapter06/chapter06.xml  Sun Jul 27 14:49:13 2014        (r10658)
@@ -56,6 +56,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="expat.xml"/>
 
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="inetutils.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="gzip.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="perl.xml"/>
 
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; 
href="xml-parser.xml"/>
@@ -75,7 +76,6 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="xz.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="grub.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="less.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="gzip.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="iproute2.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="kbd.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="kmod.xml"/>

Modified: trunk/BOOK/chapter06/perl.xml
==============================================================================
--- trunk/BOOK/chapter06/perl.xml       Sun Jul 27 11:24:56 2014        (r10657)
+++ trunk/BOOK/chapter06/perl.xml       Sun Jul 27 14:49:13 2014        (r10658)
@@ -47,15 +47,14 @@
 
 <screen><userinput remap="pre">echo "127.0.0.1 localhost $(hostname)" &gt; 
/etc/hosts</userinput></screen>
 
-    <para>This version of Perl now builds the Compress::Raw::Zlib module. By
-    default Perl will use an internal copy of the Zlib source for the build.
-    Issue the following command so that Perl will use the Zlib library
+    <para>This version of Perl now builds the Compress::Raw::Zlib ane 
+    Compress::Raw::BZip2 modules. By
+    default Perl will use an internal copy of the sources for the build.
+    Issue the following command so that Perl will use the libraries
     installed on the system:</para>
 
-<screen><userinput remap="pre">sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = 
False|"           \
-       -e "s|INCLUDE\s*= ./zlib-src|INCLUDE    = /usr/include|" \
-       -e "s|LIB\s*= ./zlib-src|LIB        = /usr/lib|"         \
-    cpan/Compress-Raw-Zlib/config.in</userinput></screen>
+<screen><userinput remap="pre">export BUILD_ZLIB=False
+export BUILD_BZIP2=0</userinput></screen>
 
     <para>To have full control over the way Perl is set up, you can remove the
     <quote>-des</quote> options from the following command and hand-pick the 
way
@@ -115,9 +114,10 @@
 
 <screen><userinput remap="test">make -k test</userinput></screen>
 
-    <para>Install the package:</para>
+    <para>Install the package and clean up:</para>
 
-<screen><userinput remap="install">make install</userinput></screen>
+<screen><userinput remap="install">make install
+unset BUILD_ZLIB BUILD_BZIP2</userinput></screen>
 
   </sect2>
 
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to