From 78bf0c1739a3328e64471847f6703b2be7e455c8 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 27 Jul 2014 21:49:13 +0000 Subject: [PATCH] Instruct perl to use the system bzip2 library git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10658 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 3 +++ chapter06/chapter06.xml | 2 +- chapter06/perl.xml | 18 +++++++++--------- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 55a156a08..dbed74d8b 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -38,6 +38,9 @@ 2014-07-27 + + [bdubbs] - Instruct perl to use the system bzip2 library. + [bdubbs] - Update to check-0.9.14. Fixes #3641. diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index d10b804a5..879cccc58 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -56,6 +56,7 @@ + @@ -75,7 +76,6 @@ - diff --git a/chapter06/perl.xml b/chapter06/perl.xml index 645016932..170aa2388 100644 --- a/chapter06/perl.xml +++ b/chapter06/perl.xml @@ -47,15 +47,14 @@ echo "127.0.0.1 localhost $(hostname)" > /etc/hosts - 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 + 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: -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 +export BUILD_ZLIB=False +export BUILD_BZIP2=0 To have full control over the way Perl is set up, you can remove the -des options from the following command and hand-pick the way @@ -115,9 +114,10 @@ make -k test - Install the package: + Install the package and clean up: -make install +make install +unset BUILD_ZLIB BUILD_BZIP2