Changeset f5dc6d7 for common


Ignore:
Timestamp:
12/28/2011 05:41:35 PM (12 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
2.3, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
1ef456b, 7072e1f
Parents:
ec20730
Message:

Fix Glibc version detection on 64-bit Debian hosts. Thanks to Pierre Labastie for the report and fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_check_version.sh

    rec20730 rf5dc6d7  
    8686  check_version "3.0"     "$BASH_VERSION"       "BASH"
    8787  check_version "3.0.1"   "`gcc -dumpversion`"  "GCC" 
    88   if [ -f /lib/libc.so.6 ]; then
    89     libcLoc=/lib;
    90   elif [ -f /lib64/libc.so.6 ]; then
    91     libcLoc=/lib64;
    92   fi;
    93   libcVer="`/${libcLoc}/libc.so.6 | head -n1`"
     88  libcLib="`find /lib /lib64 -name libc.so.6 -print`"
     89  libcVer="`/${libcLib} | head -n1`"
    9490  libcVer="${libcVer##*version }"
    9591  check_version "2.2.5"   ${libcVer%%,*}        "GLIBC"
Note: See TracChangeset for help on using the changeset viewer.