Overview
| Artifact ID: | d4ec29fae9274e77ab6d093ee4712d65f1e08130aa9e73c8cb19afdebd4e454d |
|---|---|
| Ticket: | 1b8a893ded5f2a9b0c70a5893c7a2be3429d8033
TCL_PACKAGE_PATH path is (wrongly) braced. |
| User & Date: | dgp on 2024-09-10 14:39:39 |
Changes
- closedate changed to: "2460564.11087326"
- closer changed to: "dgp"
- icomment:
Some additional commentary on how this incompatible change (sort of) breaks OOMMF. The OOMMF project uses Tcl scripts to manage the build of its executables from source code on multiple platforms. Essentially a variation on `make`, but written in Tcl and working cross-platform Since the executables make use of Tcl, the builds often want to know something about the installation of Tcl (and Tk) in order to pass the right options to compilers, linkers, etc. One thing these scripts want to know is where the C libraries for Tcl and Tk are. Here is a stanza of code that determines that: if {[catch {tcl::pkgconfig get libdir,runtime} libdir]} { if {[catch {$configuration GetValue TCL_PACKAGE_PATH} pp]} { continue } set libdir [Oc_DirectPathname [lindex $pp 0]] } As you can see this code relies on TCL_PACKAGE_PATH being in the format of a Tcl list, as it always was. The new format breaks this. The code only makes use of TCL_PACKAGE_PATH as a fallback when [tcl::pkgconfig] fails. This has long been in the code to permit the script to work when the local Tcl install is a version before Tcl 8.5. (This has been a project for a very long time). Since [tcl::pkgconfig] works in all active supported Tcl releases now, the broken code is also code that is never (extremely rarely???) executed. Otherwise I might have noticed this sooner. Anyhow, I will concede no active harm here, but enough of a near miss for me to raise warnings that people use the interfaces of Tcl (including things like the format of environment variables) in more ways than you imagine and often different from the recommended use you have in mind, and that changing these things in a patch release risks damage and disruption, and it really is best if such changes get discussed beyond comments on one ticket even when going into a new release sequence. - login: "dgp"
- mimetype: "text/plain"