From: SourceForge.net <no...@so...> - 2008-06-22 10:38:03
|
Bugs item #1999119, was opened at 2008-06-20 22:32 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1999119&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 33. Safe Base Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nicolas Castagne (nicolascastagne) Assigned to: Jeffrey Hobbs (hobbs) Summary: Save base does not handle the new TM module mechanism Initial Comment: Tcl Modules (TM, see TIP 189, http://tip.tcl.tk/189) cannot be required from a safe interp. EG: % package require math::bigfloat 2.0.1 % ::safe::interpCreate interp0 % interp eval interp0 "package require math::bigfloat" can't find package math::bigfloat % interp eval interp0 "package require math::linearalgebra" can't find package math::linearalgebra Since is a problem, since many of the important tcllib package are now provided through the TM mechanism. The old versions of those packages are correctly loaded in the safe interp... but they are old versions ! According to Andreas Kupries, on the active tcl mail list: "The code for the 'safe base' was likely not updated to handle searching for TMs... It may also be that the package unknown handler doing the search for TMs is not installed in safe interpreters. I would have to check the init.tcl file doing that part of the setup." Also : "Remember, a big part of the 'package' command, the search for packages, is implemented in Tcl and plugged into the main command via 'package unkown'. The relevant pieces of the core are in 'init.tcl', which sets up the plugging, 'package.tcl' handling the general package mechanism, and 'tm.tcl' for the Tcl Modules." ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1999119&group_id=10894 |