Comment 3 for bug 1989082

Revision history for this message
Reinhold Koch (rei-ubuntu) wrote :

OK, IBM's LSF scheduler is only used by some HPC installations. I can imagine other software also using a similar trick to determine in a script the glibc version as LSF does:

```
                for glibc in `ldconfig -p | grep libc.so.6 | sed 's/.*=>//'`
                do
                    if [ -x "$glibc" ] ; then
                        $glibc >/dev/null 2>&1
                        if [ "$?" != "0" ] ; then
                            continue
                        fi
                        _libcver=`$glibc 2>/dev/null | grep "GNU C Library" | $AWK '{print $10}' | $AWK -F. '{print $2}' | sed 's/,//'`
                    fi
                    if [ "$_libcver" != "" ] ; then
                        break
                    fi
                done
                if [ "$_libcver" = "" ] ; then
                    echo "Cannot figure out the GLibc version."
                    exit 1
                fi
```

Maybe this code is worth becoming a test?