qLinux
… a distribution study
<< Prev GDBM
Next >> Inetutils
Perl-5.34.0
Reference: 8.41. Perl-5.34.0. First apply a patch to fix all related occurrences of  /bin/sh 
and  /dev/null 
(and a few dev's more):
patch -Np1 -i perl-5.34.0-qlnx-1-20220208.patch
Apply a patch to fix an issue with gdbm:
patch -Np1 -i /_sources/_patches/perl-5.34.0-upstream_fixes-1.patch
Apply a patch to fix some more source files accordingly to qLinux:
patch -Np1 -i perl-5.34.0-qlnx-1-20220208.patch
Now configure the package:
export BUILD_ZLIB=False export BUILD_BZIP2=0 sh Configure -des -Dcc=gcc \ -Dprefix=/plng \ -Dvendorprefix=/plng \ -Dprivlib=/plng/lib/perl \ -Darchlib=/plng/lib/perl \ -Dsitelib=/plng/lib/perl \ -Dsitearch=/plng/lib/perl \ -Dvendorlib=/plng/lib/perl/vendor \ -Dvendorarch=/plng/lib/perl/vendor \ -Dman1dir=/plng/man/man1 \ -Dman3dir=/plng/man/man3 \ -Dpager="/qlnx/bin/less -isR" \ -Duseshrplib \ -Dusethreads
-Dcc=gcc
    The build system searches for  cc 
as the compiler name by default. Because there is no  cc 
this have to be given explicitly.
Compile perl:
make
If desired run the testsuite. Some test will fail, usually this could be ignored right now:
make test
Install1) the package:
make DESTDIR=/plng/pkg/perl install mv -v /plng/pkg/perl/plng /plng/pkg/perl/5.34.0
Extend the PATH environment variable with  /plng/bin 
if required an unset the BUILD variables:
unset BUILD_ZLIB BUILD_BZIP2
<< Prev GDBM
Next >> Inetutils