Le 02/02/2012 00:38, Thomas Pegg a écrit :
Patch is applied as or r3540 and r3541. Did a seperate commit for the
fix on the testsuites, caught it after I made the first one. Thanks
for your patch Pierre.

Thomas
Hi,

Here are a few corrections which allow ICA to work, correct a bug
in docbook-xml (for BLFS tools) when package management
is not used, writes more accurate package versions in
/var/lib/jhalfs/BLFS (for BLFS tools again), and use the ldd
trick in func_check_version. Also, I have
added the possibility to compile kernel with MAKEFLAGS (line
342 of LFS/master.sh). It is a big time saver...

See attached file jhalfs20120203.patch.

Regards
Pierre
Index: LFS/master.sh
===================================================================
--- LFS/master.sh	(revision 3542)
+++ LFS/master.sh	(working copy)
@@ -172,9 +172,14 @@
     cp chapter06/* chapter06$N
     for script in chapter06$N/* ; do
       # Overwrite existing symlinks, files, and dirs
-      sed -e 's/ln -sv/&f/g' \
-          -e 's/mv -v/&f/g' \
-          -e 's/mkdir -v/&p/g' -i ${script}
+      sed -e 's/ln *-sv/&f/g' \
+          -e 's/mv *-v/&f/g' \
+          -e 's/mkdir *-v/&p/g' -i ${script}
+      # Suppress the mod of "test-installation.pl" because now
+      # the library path points to /usr/lib
+      if [[ ${script} =~ glibc ]]; then
+          sed '/DL=/,/unset DL/d' -i ${script}
+      fi
       # Rename the scripts
       mv ${script} ${script}$N
     done
@@ -337,6 +342,9 @@
               CHROOT_wrt_TouchTimestamp
             fi
             CHROOT_Unpack "$pkg_tarball"
+            # If using optimizations, use MAKEFLAGS (unless blacklisted)
+            # no setting of CFLAGS and friends.
+            [[ "$OPTIMIZE" != "0" ]] &&  wrt_makeflags "$name"
        ;;
     esac
 
Index: common/libs/func_check_version.sh
===================================================================
--- common/libs/func_check_version.sh	(revision 3542)
+++ common/libs/func_check_version.sh	(working copy)
@@ -90,10 +90,7 @@
   check_version "2.6.25"  "`uname -r`"          "KERNEL"
   check_version "3.2"     "$BASH_VERSION"       "BASH"
   check_version "4.1.2"   "`gcc -dumpversion`"  "GCC"  
-  libcLib="`find /lib /lib64 -name libc.so.6 -print`"
-  libcVer="`/${libcLib} | head -n1`"
-  libcVer="${libcVer##*version }"
-  check_version "2.5.1"   "${libcVer%%,*}"        "GLIBC"
+  check_version "2.5.1"   "$(ldd --version  | head -n1 | awk '{print $NF}')"        "GLIBC"
   check_version "2.17"    "$(ld --version  | head -n1 | awk '{print $NF}')"    "BINUTILS"
   check_version "1.18"    "$(tar --version | head -n1 | cut -d" " -f4)"        "TAR"
   bzip2Ver="$(bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f8)"
Index: common/libs/func_download_pkgs
===================================================================
--- common/libs/func_download_pkgs	(revision 3542)
+++ common/libs/func_download_pkgs	(working copy)
@@ -121,7 +121,7 @@
     fi
 
       # Good or bad we write the original md5sum to a file
-    echo "$MD5" >> MD5SUM
+    echo "$MD5" >> MD5SUMS
 
      # Copy the freshly downloaded file
      # to the source archive.
Index: common/libs/func_blfs_deps
===================================================================
--- common/libs/func_blfs_deps	(revision 3542)
+++ common/libs/func_blfs_deps	(working copy)
@@ -196,9 +196,10 @@
     # Touch the tracking file.
     case $name in
       docbook-xml )  pkg_ver=DocBook-4.5 ;;
-      lynx )  pkg_ver=lynx-2.8.7 ;;
+      lynx )  pkg_ver=lynx-2.8.7rel.2 ;;
       tidy )  pkg_ver=html-tidy-cvs_20101110 ;;
       unzip ) pkg_ver=unzip-6.0 ;;
+      sqlite ) pkg_ver=sqlite-3.7.8 ;;
       * )     pkg_ver=$(echo $pkg_tarball | sed -e 's/.tar.*//;s/.tgz//;s/.zip//') ;;
     esac
     if [ "$PROGNAME" = "clfs2" ]; then
Index: common/blfs-tool-deps/905-docbook-xml
===================================================================
--- common/blfs-tool-deps/905-docbook-xml	(revision 3542)
+++ common/blfs-tool-deps/905-docbook-xml	(working copy)
@@ -102,8 +102,10 @@
     "file:///etc/xml/docbook" \
     $PKG_DEST/etc/xml/catalog
 done
-export PKGDIR=/sources/docbook-xml
-packInstall
+if ! [ -z "$PKG_DEST" ]; then
+  export PKGDIR=/sources/docbook-xml
+  packInstall
+fi
 rm -rf $PKG_DEST
 cd ..
 rm -rf docbook-xml
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to