#43208: PortIndex2MySQL.tcl: can't find package Tclx ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.99 Resolution: | Keywords: haspatch Port: | ---------------------------+-------------------------------- Comment (by cal@…): We could extend `port(1)` with an argument to act as a shebang that executes the correct tclsh so we could use `#!port tclsh` as shebang and be done with it. That doesn't really solve the problem of finding the right path to macports_fastload.tcl. I wonder if we even need it anymore, though. The first block of it overriding the `package` command is dead because of a version constraint and then all it does is preload the pkgIndex.tcl files in the MacPorts Tcl dir (which probably made sense when there used to be a few others in the Tcl package dir, but now there aren't). The leaves the problem of getting the MacPorts prefix, but since the Tcl packages can be loaded at that point, that's not hard to come by anymore. -- Ticket URL: <https://trac.macports.org/ticket/43208#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X