r3517 - jhalfs/trunk/common/libs

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Mon Oct 6 14:13:41 PDT 2008


Author: georgeb
Date: 2008-10-06 15:13:41 -0600 (Mon, 06 Oct 2008)
New Revision: 3517

Modified:
   jhalfs/trunk/common/libs/func_check_version.sh
Log:
Deal with Ubuntu binutils version report.

Modified: jhalfs/trunk/common/libs/func_check_version.sh
===================================================================
--- jhalfs/trunk/common/libs/func_check_version.sh	2008-10-06 16:27:36 UTC (rev 3516)
+++ jhalfs/trunk/common/libs/func_check_version.sh	2008-10-06 21:13:41 UTC (rev 3517)
@@ -88,7 +88,7 @@
   libcVer="`/lib/libc.so.6 | head -n1`"
   libcVer="${libcVer##*version }"
   check_version "2.2.5"   ${libcVer%%,*}        "GLIBC"
-  check_version "2.12"    "$(ld --version  | head -n1 | cut -d" " -f4)"        "BINUTILS"
+  check_version "2.12"    "$(ld --version  | head -n1 | awk '{print $NF}')"    "BINUTILS"
   check_version "1.15"    "$(tar --version | head -n1 | cut -d" " -f4)"        "TAR"
   bzip2Ver="$(bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f8)"
   check_version "1.0.2"   "${bzip2Ver%%,*}"                                    "BZIP2"




More information about the alfs-log mailing list