Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a0fa9c6f2644a92f2a2c3abce30ba3c2c4afa029dbc71f610590d44ae74dcbcb
Ticket: 917c4a896afc744d7d5310a68ceccad4afcb2a6e
Glibc detection broken on Linux for platform::identify
User & Date: mbwagner on 2023-09-05 12:55:18
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    The bundled `platform` package fails to find the version of glibc on the `ubuntu:22.04` Docker image.
    
    Steps to reproduce:
    
    `docker run -it ubuntu:22.04
    apt-get update && apt-get install -y tcl
    tclsh
    package require platform
    platform::identify`
    
    Output is:
    
    `linux-unknown-x86_64`
    
    Expected output:
    
    `linux-glibc2.35-x86_64`
    
    This problem also occurs with the latest trunk, and is probably also present in a non-Docker Ubuntu install (but I could not test that). I looked at the code and the root cause seems to be missing execute permissions on `libc.so.6`. Currently the most popular way of finding the libc version seems to be to call `ldd --version` instead of the .so file directly. This outputs the libc version (among other stuff) on all Linux distros including MUSL-based ones, which would make it very easy to extend the code to detect MUSL versions too.
    
  5. foundin changed to: "8.6 and trunk"
  6. is_private changed to: "0"
  7. login: "mbwagner"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8982a851333466c77485b64f16aa683016dd9fdc"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "mbwagner"
  14. subsystem changed to: "81. Bundled Packages"
  15. title changed to:
    Glibc detection broken on Linux for platform::identify
    
  16. type changed to: "Bug"