Details on this package are located in Section 10.31.2, “Contents of Perl.”
The Perl package contains the Practical Extraction and Report Language.
The following patch causes makedepend.sh to also remove
<command-line>
as well as
<command line>
:
patch -Np1 -i ../perl-5.8.8-gcc42_fix-1.patch
The following patch prevents perl from including asm/page.h which will no longer be available in headers provided by kernel 2.6.25 and forward:
patch -Np1 -i ../perl-5.8.8-no_page_h-1.patch
The following patch fixes known vulnerabilities in perl:
patch -Np1 -i ../perl-5.8.8-security_fixes-1.patch
The following sed causes DynaLoader.a
to be built with -fPIC so it can be linked into a shared library
later:
sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \ -e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH
If you are following the boot method you will need to enable the loopback device as well as set a hostname for some of the tests:
ip link set lo up hostname clfs
Before starting to configure, create a basic /etc/hosts
file which will be referenced by one
of Perl's configuration files as well as used by the testsuite:
echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
To have full control over the way Perl is set up, you can run the interactive Configure script and hand-pick the way this package is built. If you prefer instead to use the defaults that Perl auto-detects, prepare Perl for compilation with:
./configure.gnu --prefix=/usr \ -Dman1dir=/usr/share/man/man1 \ -Dman3dir=/usr/share/man/man3 \ -Dpager="/bin/less -isR" \ -Dcc="gcc ${BUILD32}" \ -Dusethreads
The meaning of the configure option:
-Dpager="/bin/less -isR"
This corrects an error in the way that perldoc invokes the less program.
-Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3
Since Groff is not installed yet, configure.gnu thinks that we do not want man pages for Perl. Issuing these parameters overrides this decision.
-Dusethreads
This tells Perl to use threads.
Compile the package:
make
To test the results, issue: make
test
.
Install the package:
make install
Add a suffix to the perl binary which will be used by the multiarch wrapper:
mv /usr/bin/perl{,-32} mv /usr/bin/perl5.8.8{,-32}
Details on this package are located in Section 10.31.2, “Contents of Perl.”