The Embedded CLFS book's version-check.sh script (from 20101128 git repo) in
section iv cuts the wrong fields on some versions of Binutils (like Debian 5
Lenny).  Currently it cuts fields 3-4, should cut fields 3-.

Other LFS books have been updated previously.  Attached is a patch to do the
same to the Embedded CLFS book.

Regards,
Andrew
From be22b9b92bb300b5877256ac97b75a17721433d4 Mon Sep 17 00:00:00 2001
From: Andrew Bradford <[email protected]>
Date: Wed, 15 Dec 2010 07:32:40 -0500
Subject: [PATCH] Binutils version-check.sh line update

Binutils versions can be longer than just 2 fields.  Books other than the embedded book use fields 3-, updated embedded book to use this too.
---
 BOOK/prologue/common/hostreqs.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/BOOK/prologue/common/hostreqs.xml b/BOOK/prologue/common/hostreqs.xml
index 7b73d7d..33cdbf5 100644
--- a/BOOK/prologue/common/hostreqs.xml
+++ b/BOOK/prologue/common/hostreqs.xml
@@ -97,7 +97,7 @@
 # Simple script to list version numbers of critical development tools
 
 bash --version | head -n1 | cut -d" " -f2-4
-echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-4
+echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
 bzip2 --version 2&gt;&amp;1 &lt; /dev/null | head -n1 | cut -d" " -f1,6-
 echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
 diff --version | head -n1
-- 
1.5.6.5

_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org

Reply via email to