Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7fc077c1b5f65fc517a7ae6df14463fdc227952ebc5ca1f8daaeae4f07e392f1
Ticket: 61ba0b0661a14a921665500d77e5d8ac2543724a
platform::identify broken on Red Hat Linux
User & Date: tomkiti on 2026-07-10 18:07:14
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    The latest patch of `platform.tcl` [086b65e08f] throws an error on RHEL 8, 9, and 10:
    
        package require platform
        puts [platform::identify]
    
        can't read "v": no such variable
            while executing
        "split $v ."
    
    `platform::identify` was changed from executing `libc.so` to executing `ldd --version` (https://core.tcl-lang.org/tcl/tktview/917c4a896afc744d7d5310a68ceccad4afcb2a6e). On Red Hat 10, the output is:
    
        bash-5.2$ ldd --version
        ldd (GNU libc) 2.39
        Copyright (C) 2024 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.
        Written by Roland McGrath and Ulrich Drepper.
    
    The new patch uses the regular expression `GLIBC ([0-9]+(\.[0-9]+)*)`, which does not match the output, so the variable `v` is never set. Suggest matching just the version number at the end of the first line.
    
  5. foundin changed to: "tip"
  6. is_private changed to: "0"
  7. login: "tomkiti"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "1c57e67924247fd7926e89348f266c081ec57db2"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "tomkiti"
  14. subsystem changed to: "81. Bundled Packages"
  15. title changed to: "platform::identify broken on Red Hat Linux"
  16. type changed to: "Bug"