Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#5157 platform::identify returns wrong result for glibc-2.17

obsolete: 8.5.13
closed-fixed
6
2013-01-30
2013-01-01
Pawel Sikora
No

# rpm -q glibc
glibc-2.17-1.i686
glibc-2.17-1.x86_64

# echo 'package require platform; set p [platform::identify]; puts $p' | tclsh
linux-glibc6.-x86_64
^^^ should be 2.17 instread of "6."

the recent glibc versions allows to ./conifgure --with-pkgversion=PKG' (use PKG in the version string in place of "GNU libc").
so finally, the /lib64/libc-2.17.so returns e.g.:

$ /lib64/libc-2.17.so
GNU C Library (glibc-6:2.17-1) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.7.2 20121104 (release).
Compiled on a Linux 3.7.0 system on 2012-12-26.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://bugs.pld-linux.org/>.

tcl's platform packages needs better regexp for matching libc version.

Discussion

    • labels: --> 54. Configuration Reporting
    • priority: 5 --> 6
    • assigned_to: nobody --> andreas_kupries
     
  • Can we assume that the 'version' string just before the 2.17 is fixed ?

     
  • Pawel Sikora
    Pawel Sikora
    2013-01-30

    the glibc sources contains following banner in csu/version.c:

    (...)
    static const char __libc_release[] = RELEASE;
    static const char __libc_version[] = VERSION;

    static const char banner[] =
    "GNU C Library "PKGVERSION RELEASE" release version "VERSION", by Roland McGrath et al.\n\ (...)

    extending regexp to e.g.: regexp {version ([0-9]+(\.[0-9]+)*), by } $vdata -> v
    should be enough to correct version matching.

     
  • Thank you for looking into this. Making the change now.

    [2798119d9f] @core-8-4-branch
    [e70b932ea4] @core-8-5-branch
    [cc69dcd0b5] @trunk

     
    • status: open --> closed-fixed