Hello all.  Thanks for all your work on LFS.  Below are two
alternative patches for version-check.sh in LFS 6.6rc2.  I needed
something because the glibc version was cut off on both a Debian
testing/squeeze netinst machine with glibc 2.10.2 and Ubuntu 9.10
Karmic machine with glibc 2.10.1.

6.6rc2 output: GNU C Library (EGLIBC) stable release version

patch 1 output: GNU C Library (EGLIBC) stable release version 2.10.1,

Instead of using cut on spaces, the second patch uses the comma which
seems better to me.  Testing on other platforms and with other glibc
versions is needed.

patch 2 output: GNU C Library (EGLIBC) stable release version 2.10.1

Regards,

Grant Bowman


--- version-check.sh.old        2010-02-22 01:29:00.705945587 -0800
+++ version-check.sh    2010-02-22 01:29:00.673945055 -0800
@@ -17,7 +17,7 @@
   then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
   else echo "awk not found"; fi
 gcc --version | head -n1
-/lib/libc.so.6 | head -n1 | cut -d" " -f1-7
+/lib/libc.so.6 | head -n1 | cut -d" " -f1-8
 grep --version | head -n1
 gzip --version | head -n1
 cat /proc/version



--- version-check.sh.old        2010-02-22 01:29:00.705945587 -0800
+++ version-check.sh    2010-02-22 01:39:13.569943981 -0800
@@ -17,7 +17,7 @@
   then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
   else echo "awk not found"; fi
 gcc --version | head -n1
-/lib/libc.so.6 | head -n1 | cut -d" " -f1-7
+/lib/libc.so.6 | head -n1 | cut -d"," -f1
 grep --version | head -n1
 gzip --version | head -n1
 cat /proc/version
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to