ch6 make check file/text/sh-utils

Erik-Jan ej.lfs at xs4all.nl
Sat Mar 22 13:55:29 PST 2003


Hi there,

When building the remaining packages of ch6 with 'make check' after the
pure-lfs-toolchain-build, I noticed that 'make check' for fileutils,
textutils and sh-utils needed a slightly bigger perl than just miniperl.
It errored out with 'can't find File.pm' and ugly things about
extentions.

I've modified the ch5-build of perl. It builds a perl-binary with the
needed extentions built-in, so all three 'make check's now pass. 

In case anyone wants to make check his utils I've attached a patch.

Groetjes,
Erik-Jan
-------------- next part --------------
--- build-ch5-2.2.1.sh.orig	2003-03-20 19:49:34.000000000 +0000
+++ build-ch5-2.2.1.sh	2003-03-20 20:10:57.000000000 +0000
@@ -1511,6 +1511,11 @@
 # Perl (reqd by glibc)
 # We install miniperl to facilitate the make check of ch6 glibc
 #
+# Building a slightly bigger perl to run 'make check' in ch6 without errors
+# for sh-utils, fileutils and textutils
+# - added extra line to linux.sh to include IO, re and Fcntl in perl-binary 
+# - added "make perl" to make perl-binary 
+# - cp perl instead of cp miniperl
 
 cd ${SRC}
 LOG=perl-miniperl.log
@@ -1529,7 +1533,8 @@
 sed 's at libc=/lib/\$libc at libc=/stage1/lib/\$libc at g' > linux.sh
 echo "locincpth=\"\"
 loclibpth=\"\"
-glibpth=\"/stage1/lib\"" >> linux.sh
+glibpth=\"/stage1/lib\"
+static_ext=\"IO re Fcntl\"" >> linux.sh
 
 cd ${SRC}/${PKGDIR}
 
@@ -1537,11 +1542,13 @@
 ./configure.gnu --prefix=/stage1 -Doptimize='-O2 -pipe' \
       >> ${LOGFILE} 2>&1 &&
 min_log_init ${BUILDLOGS} &&
+make perl \
+      >> ${LOGFILE} 2>&1 &&
 make utilities \
       >> ${LOGFILE} 2>&1 &&
 min_log_init ${INSTLOGS} &&
 {
-   cp miniperl /stage1/bin/perl &&
+   cp perl /stage1/bin/perl &&
    cp pod/pod2man /stage1/bin &&
    mkdir -p /stage1/lib/perl5/${PERL_VER} &&
    cp -R lib/* /stage1/lib/perl5/${PERL_VER}


More information about the lfs-dev mailing list