Artifacts Associated With Ticket b45b27abf63da41e
Ticket change [fb23b4880d] (rid 143528) by pooryorick on 2015-10-16 04:56:55:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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.
- foundin initialized to: "8.6.4"
- is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- private_contact initialized to: "f292db5aa2d38d67d028c84f9216966e65c4e545"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to:
pkgIndex.tcl search routine sources a pkgIndex multiple times via links
- type initialized to: "Bug"
Ticket change [1d3e6c2795] (rid 143562) by dgp on 2015-10-19 13:54:36:
- closedate changed to: "2457315.07958787"
- closer changed to: "dgp"
- icomment:
Not a bug. Multiple sourcing of pkgIndex.tcl files is normal operations.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
Ticket change [d57fa825d2] (rid 143566) by pooryorick on 2015-10-19 14:50:51:
- closedate changed to: "2457315.11864769"
- closer changed to: "pooryorick"
- 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.
- login: "pooryorick"
- mimetype: "text/plain"
Ticket change [92f6de55f6] (rid 143583) by jan.nijtmans on 2015-10-20 10:27:40:
- closedate changed to: "2457315.9358894"
- closer changed to: "jan.nijtmans"
- 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.
- login: "jan.nijtmans"
- mimetype: "text/plain"