Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0928092a019d2385e7faa60e9fc6d9c7b1cb5edf
Ticket: 3592042fffffffffffffffffffffffffffffffff
pkg_mkIndex fails on package present
User & Date: dgp on 2012-12-04 23:20:02
Changes

  1. icomment:
    
    Another thing to consider is in your use of [pkg_mkIndex], what control
    do you have over which version of Tcl's [pkg_mkIndex] gets used?
    
    If you're using it completely "in house" to perform your own development
    tasks, then you have control, and using that control, you can patch your
    local proc to do what you ask.  Very simple patch.  Change the lines in
    tcl/library/package.tcl from:
    
                    switch -- $what {
                        require {
                            return;         # Ignore transitive requires
    
    to
    
                    switch -- $what {
                        present - require {
                            return;         # Ignore transitive requires
    
    However, if you're deploying, say, Makefiles to systems unknown,
    and relying on using whatever local tclsh or expect program happen
    to be installed, you're going to have no choice but to continue
    accommodating the older [pkg_mkIndex] behavior, so the way forward
    is to rewrite your scripts to revise/remove their use of the [package present]
    command, and/or move off of [pkg_mkIndex] as a tool completely.
    
    I hope you can see why we maintainers just don't have much enthusiasm
    for attempts to improve [pkg_mkIndex].  It's just not a problem suited for
    a good simple and general solution.
    
    If I'm overlooking or misunderstanding something, I welcome your further
    thoughts on the matter.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"