Skip to content
Tcl Source Code History Of Ticket 1160114
Login

History Of Ticket 1160114

Artifacts Associated With Ticket 1160114

  1. Ticket change [650493a349] (rid 92872) by dgp on 2005-03-09 18:58:26:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Sometimes it is important
      to test an extension in the
      same version of Tcl it was
      configured for.  (Or at least
      not an earlier, possibly incompatible,
      release).
      
      TEA_PROG_TCLSH appears to
      just crawl through a search path
      looking for any programs named
      tclsh* .  This could easily be an
      earlier release of Tcl, and
      conceivably not a Tcl interpreter
      program at all.
      
      Would be an improvement for
      TEA_PROG_TCLSH to try
      to evaluate [info tclversion]
      in the program it finds.  This 
      would allow verification that
      the program is in fact a Tcl
      interpreter at all, and that it
      provides a Tcl version that satisfies
      the TCL_VERSION value in
      the tclConfig.sh file that is
      in use.
      
      This has bitten when people
      try to test the trofs extension,
      where they configure against
      a Tcl 8.5 tclConfig.sh and
      header files, but attempt to
      run the test suite in a Tcl 8.4
      tclsh, which fails.
      
    4. foundin initialized to: "obsolete: 8.5a3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "85. tclconfig"
    10. title initialized to: "TEA_PROG_TCLSH doesn't check version"
    11. type initialized to: "Bug"
  2. Ticket change [485a3bca32] (rid 99870) by mdejong on 2005-07-17 15:14:39:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      This is a serious issue. The TEA_PROG_TCLSH macro is lacking
      a way to find the tclsh executable in the build directory.
      People are
      using the macro for two different things. First, to find a
      tclsh on the
      system. Second, to find the tclsh in the build dir. I have
      attached
      a patch that fixed the thread package WRT this tclsh search
      issue.
      Another possible approach would be to create two macros, one
      that
      searches the PATH (and NOT in the build dir) and another
      that just
      searches in the build dir. Note that the current macro
      mistakenly assumes that tclsh would even be built in the
      build dir when the child package is getting configured.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  3. Ticket change [e9e345a0c7] (rid 104881) by mdejong on 2005-07-17 15:14:40:

    1. icomment:
      
      
      File Added - 142320: thread2.patch
      
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  4. Ticket change [4c59d3f1ad] (rid 126877) by mdejong on 2005-07-25 09:48:36:

    1. closedate changed to: "2005-07-25T02:48:36"
    2. closer changed to: "mdejong"
    3. icomment:
      Logged In: YES 
      user_id=90858
      
      This is now fixed in the HEAD and the 8.4 branch.
      See Tcl patch 1244153 for all the details and patches.
      
      
    4. login: "mdejong"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "mdejong"
  5. Ticket change [c62b12d9fd] (rid 121722) by mdejong on 2005-07-25 09:48:38:

    1. icomment:
      
      
      File Deleted - 142320: 
      
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  6. Ticket change [98b722d618] (rid 110657) by dgp on 2005-07-26 02:09:50:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      re-opening.
      
      The additional TEA_BUILD_TCLSH
      macros may help someone, but it
      doesn't fulfill the needs of this
      feature request.
      
      As an extension author, I need a
      reliable and simple way to say
      "give me a tclsh that corresponds
      to the tclConfig.sh file I'm using".
      My original complaint was that
      TEA_PROG_TCLSH doesn't
      do that reliably.
      
      Now TEA_BUILD_TCLSH arrives
      and also doesn't do that reliably
      (why would I assume a build
      directory of Tcl is even on the system?)
      
      This is a step backwards.  TEA should
      give me one thing that works, not two
      half-measures that every extension author
      has to assemble (mostly incorrectly).
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. resolution changed to: "Remind"
    6. status changed to: "Open"
    7. username: "dgp"
  7. Ticket change [3f1d2cadb5] (rid 121395) by mdejong on 2005-07-26 05:19:53:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      TEA was using TCLSH_PROG for two different things.
      It could be executed at build time to generate a pkgIndex.tcl
      or it could have been used to run the tests. The change splits
      this functionality into two macros.
      
      The only other logical thing would be to remove TCLSH_PROG
      entirely and make sure that the tclsh executable was only
      used to run tests (when not cross compiled). When it comes
      to running the tests, the only logical thing to do is run them
      against the tclsh that was just built in the Tcl build dir.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  8. Ticket change [b388af19e7] (rid 124875) by dgp on 2005-07-26 05:51:45:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      We must distinguish between
      Tcl build time and extension build time.
      
      TEA is for extensions.  When my extension
      is using TEA to set up things for building
      the extension, there's no reason to expect
      there's any build directory around from the
      building of Tcl.  In the normal case there is
      no "tclsh that was just built".  But there ought
      to always be "a tclsh that corresponds to the
      tclConfig.sh I am using."
      
      If TEA_FOO_TCLSH have been copied
      over from their SC_FOO_TCLSH
      counterparts uncritically without accounting
      for the different needs of extension from
      the needs of Tcl's own build scripts, then
      yes perhaps there's some undoing to be done.
      
      The particular need I have for a more
      appropriate TEA_PROG_TCLSH is to
      find a program suitable for running my
      extension's test suite.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [a5ec3e3506] (rid 110453) by mdejong on 2005-07-26 10:49:30:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      OK, how about the following patch? It nukes BUILD_TCLSH and
      sets TCLSH_PROG to either the build tclsh or the tclsh installed
      into the bin dir. There is no PATH searching in this
      approach so no
      chance of picking up a bad tclsh or wish shell.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  10. Add attachment "sampleextension2.patch" [6aa43bfb7c] (rid 128191) by mdejong on 2005-07-26 10:49:30.

  11. Ticket change [849c51d229] (rid 117584) by mdejong on 2005-07-26 10:49:31:

    1. icomment:
      
      
      File Added - 143294: sampleextension2.patch
      
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  12. Ticket change [fa27e4eae7] (rid 91828) by dgp on 2005-07-26 21:59:40:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Yes, I like that much better.  Thanks.
      
      An additional version number check
      might offer even more safety, but
      the patch attached is a fine improvement.
      
      Guess we should apply it to find out
      who prefers the existing TEA_PROG_TCLSH. :^)
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Ticket change [e9f34a8dd9] (rid 104894) by mdejong on 2005-07-27 02:32:00:

    1. closedate changed to: "2005-07-26T19:32:00"
    2. closer changed to: "mdejong"
    3. icomment:
      Logged In: YES 
      user_id=90858
      
      Added to CVS on 2005-07-26. Checked into tclconfig/,
      sampleextension/, and thread/ packages. The only change an
      extension will need to deal with
      is creating a pkgIndex.tcl.in file and generating a
      pkgIndex.tcl and configure time. This is needed since
      TCLSH_PROG should not be used
      for generation of things at build time. The only thing a
      version check
      would do is check that the version in tclConfig.sh is the
      same as the
      version of the tclsh installed in the bin dir. But, the code
      really does
      that already since the path of the tclsh in the bin dir is
      deduced via
      the TCL_VERSION and TK_VERSION flags found in either
      tclConfig.sh or tkConfig.sh. Also, you can't assume that the
      tclsh
      executable can be run to do a version check, that will not
      work in
      a cross compile.
      
      
    4. login: "mdejong"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "mdejong"