Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1dd75545f92f33f425a88bf75656ded24b1438b2
Ticket: 2990516fffffffffffffffffffffffffffffffff
TM default paths do not search custom --libdir
User & Date: dgp on 2010-04-21 17:36:57
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The default paths set in [tcl::tm::path] are rooted at
    
    [file dirname [info library]]
    
    and
    
    [file join [file dirname [file dirname [file normalize [info nameofexecutable]]]] lib]
    
    The first wants to search near Tcl's script library which is
    a sensible place TMs might have been installed.
    
    The second is more problematic.  If one assumes [info nameofexecutable]
    is meant to be tclsh in its normal installed location, then the construction
    is attempting to produce the default value of $(libdir) for a Tcl install
    which is the right place for any TM containing binary parts to get
    installed.
    
    However, Tcl permits customization of $(libdir).  One place this is
    commonly used is on systems with both 32- and 64- bit collections
    of binaries installed.  On such systems a 64-bit build of Tcl might
    be customized to install into a $(libdir) like /usr/lib64 .  That path
    can never be constructed from the TM defaults, because that
    default hardcodes in the last element "lib".
    
    By analogy, the older [tclPkgUnknown] package discovery
    system potentially has the same problem, and has worked
    around it via the variable ::tcl_pkgPath where the actual
    configured value of $(libdir) gets stored and retrieved to
    eventually find its way onto the $::auto_path .  It's a rather
    ugly solution and I'm not recommending copying it.  Just
    noting that this is not a new problem to solve.
    
    I think the right place to find the value is in the result
    returned by the command
    
    [tcl::pkgconfig get libdir,runtime]
    
    This, of course, means we will have a renewed interest
    in making that command actually work.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "39. Package Manager"
  11. title changed to: "TM default paths do not search custom --libdir"
  12. type changed to: "Bug"