Skip to content
Tcl Source Code History Of Ticket b45b27abf63da41e
Login

History Of Ticket b45b27abf63da41e

Artifacts Associated With Ticket b45b27abf63da41e

  1. Ticket change [fb23b4880d] (rid 143528) by pooryorick on 2015-10-16 04:56:55:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      The routine in <code>library/package.tcl/tclPkgUnknown</code> does not normalize search directories, and so sources a given <code>pkgIndex.tcl</code> file as many times as it is aliased via links.  It would be straightforward to change the behaviour so that each <code>pkgIndex.tcl</code> file was sourced only once.
      
    5. foundin initialized to: "8.6.4"
    6. is_private initialized to: "0"
    7. login: "pooryorick"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "f292db5aa2d38d67d028c84f9216966e65c4e545"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "pooryorick"
    14. subsystem initialized to: "18. Commands M-Z"
    15. title initialized to:
      pkgIndex.tcl search routine sources a pkgIndex multiple times via links
      
    16. type initialized to: "Bug"
  2. Ticket change [1d3e6c2795] (rid 143562) by dgp on 2015-10-19 13:54:36:

    1. closedate changed to: "2457315.07958787"
    2. closer changed to: "dgp"
    3. icomment:
      Not a bug.
      
      Multiple sourcing of pkgIndex.tcl files is normal operations.
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Rejected"
    7. status changed to: "Closed"
  3. Ticket change [d57fa825d2] (rid 143566) by pooryorick on 2015-10-19 14:50:51:

    1. closedate changed to: "2457315.11864769"
    2. closer changed to: "pooryorick"
    3. icomment:
      Normal and by design, yes, but not in the case where the process is just inadvertently sourcing the same file because of symlinks.  In my setup, a package like tclws2.3.7 is symlinked to tclws2.3, tclws2, and tclws, so each time a scan is done, the work is quadrupled.
      
    4. login: "pooryorick"
    5. mimetype: "text/plain"
  4. Ticket change [92f6de55f6] (rid 143583) by jan.nijtmans on 2015-10-20 10:27:40:

    1. closedate changed to: "2457315.9358894"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      I think the proper solution is to remove the symlinks in your environment. They don't server any other purpose than causing Tcl to do too much work. So, I agree with dgp.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/plain"