mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.41 - Build perl
This commit is contained in:
parent
b1f251d70b
commit
0ebac94eb3
2 changed files with 55 additions and 0 deletions
43
scripts/chapter8/8.41-perl.sh
Normal file
43
scripts/chapter8/8.41-perl.sh
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
tar xf perl-5.36.0.tar.xz
|
||||||
|
cd perl-5.36.0
|
||||||
|
|
||||||
|
export BUILD_ZLIB=False
|
||||||
|
export BUILD_BZIP2=0
|
||||||
|
|
||||||
|
sh Configure -des \
|
||||||
|
-Dprefix=/usr \
|
||||||
|
-Dvendorprefix=/usr \
|
||||||
|
-Dprivlib=/usr/lib/perl5/5.36/core_perl \
|
||||||
|
-Darchlib=/usr/lib/perl5/5.36/core_perl \
|
||||||
|
-Dsitelib=/usr/lib/perl5/5.36/site_perl \
|
||||||
|
-Dsitearch=/usr/lib/perl5/5.36/site_perl \
|
||||||
|
-Dvendorlib=/usr/lib/perl5/5.36/vendor_perl \
|
||||||
|
-Dvendorarch=/usr/lib/perl5/5.36/vendor_perl \
|
||||||
|
-Dman1dir=/usr/share/man/man1 \
|
||||||
|
-Dman3dir=/usr/share/man/man3 \
|
||||||
|
-Dpager="/usr/bin/less -isR" \
|
||||||
|
-Duseshrplib \
|
||||||
|
-Dusethreads
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make -j5
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make test
|
||||||
|
|
||||||
|
make install
|
||||||
|
unset BUILD_ZLIB BUILD_BZIP2
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
rm -rf perl-5.36.0
|
|
@ -1031,3 +1031,15 @@ then
|
||||||
stop_script "chapter8/8.40-less.sh"
|
stop_script "chapter8/8.40-less.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Chapter 8.41
|
||||||
|
# ============
|
||||||
|
echo "Building perl"
|
||||||
|
su -c "bash $SCRIPT/chapter8/8.41-perl.sh"
|
||||||
|
|
||||||
|
# Exit on error
|
||||||
|
check_exit_code
|
||||||
|
if [ $exit_status -ne 0 ]
|
||||||
|
then
|
||||||
|
stop_script "chapter8/8.41-perl.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue