#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
     
  • Andreas Kupries

    Andreas Kupries - 2010-09-01

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

     
  • Andreas Kupries

    Andreas Kupries - 2010-09-01
    • assigned_to: nobody --> andreas_kupries
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks