Changes to the Perl build in Chapter 6

Randy McMurchy randy at linuxfromscratch.org
Tue Oct 7 05:52:33 PDT 2008


Hi all,

Thanks to Greg Shafer who pointed out several things about our
current Perl build method in Chapter 6, I'd like to propose the
following changes:

1. Remove the sed for the "Fix an incompatibility with gcc-4.3.2:"
I have confirmed it is not required.

2. Add the following before the configuration step:

   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|"         \
     ext/Compress/Raw/Zlib/config.in

This will cause the Compress::Raw::Zlib module to link to the
system-installed version of the zlib library instead of the
internal copy in the Perl tree.

Over at DIY, it shows this could be done with a one-liner
(the last two sed expressions are not used, but the way shown
above is the Perl recommended method, same as we use in BLFS).

3. Change the command to run the testsuite to "make test".
All the checks should pass (zero failures), so anything else
on the command is not required. Note:

   All tests successful.
   u=17.67  s=2.96  cu=1457.45  cs=78.78  scripts=1385  tests=188172
   make[2]: Leaving directory `/home/rml/build/perl-5.10.0'
   make[1]: Leaving directory `/home/rml/build/perl-5.10.0'


Additionally, Greg says that --prefix=/usr is the default and
could be removed, but I didn't read his mail until after I did
a test build, so I didn't confirm it. But I don't see any harm
in leaving it.

Unless there are objections or other info about this, I'll make
the changes.

Oh yeah, thanks to Greg for the heads-up.

-- 
Randy



More information about the lfs-dev mailing list