Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 index script protection from incompatible Tcl

closed-fixed
None
5
2010-09-01
2003-12-24
Don Porter
No

As recently discussed on CLT, the shared
Expect library can only [load] into a Tcl
interpreter of the same version, or later
compatible version, as it was compiled
against.

For a particular example, an Expect shared
library compiled against the Tcl 8.4 headers
will not successfully [load] into a Tcl 8.3
interpreter.

For that reason, in an incompatible interperter,
the [load] command should never be registered
by a [package ifneeded] call, as it is doomed to
fail.

Here is a patch that adds a filter to Expect's
pkgIndex.tcl file so that the [package ifneeded]
command only runs if the Tcl interpreter is
of a compatible version to the particular
build of Expect that is installed.

Discussion

  • Don Porter
    Don Porter
    2003-12-24

     
    Attachments
  • Done. Updated to newest sources, generating pkgIndex.tcl from Makefile(.in).

     
    • assigned_to: nobody --> andreas_kupries
    • status: open --> closed-fixed