Skip to content
Tcl Source Code History Of Ticket 438014ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 438014ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 438014ffffffffffffffffffffffffffffffffff

  1. Ticket change [33629afbc8] (rid 106587) by dgp on 2001-07-02 19:43:46:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Ever since the 2001-06-18 commit to test/unixInit.test,
      I've seen failures of test unixInit-2.8 when testing
      from the development directory:
      
      ==== unixInit-2.8 TclpInitLibraryPath: all absolute
      pathtype FAILED
      ==== Contents of test case:
      
          file delete -force /tmp/sparkly
          file delete -force /tmp/library
          file mkdir /tmp/sparkly
          file copy $::tcltest::tcltest /tmp/sparkly/tcltest
      
          file mkdir /tmp/library/tcl[info tclversion]
          close [open /tmp/library/tcl[info
      tclversion]/init.tcl w]
      
          set allAbsolute 1
          foreach dir [getlibpath /tmp/sparkly/tcltest] {
              set allAbsolute [expr {$allAbsolute  && [string
      equal absolute [file pathtype $dir]]}]
          }
          file delete -force /tmp/sparkly
          file delete -force /tmp/library
          set allAbsolute
      
      ---- Result was:
      Path = /tmp/sparkly/tcltest
      application-specific initialization failed: Can't find
      a usable init.tcl in the following directories: 
          /usr/local/lib/tcl8.4 /tmp/lib/tcl8.4 /lib/tcl8.4
      /lib/tcl8.4/library /library /tcl8.4a3/library
      /usr/local/lib/tcl8.4
      
      
      
      This probably means that Tcl wasn't installed properly.
      
      ---- Result should have been (exact matching):
      1
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ==== unixInit-2.8 FAILED
      
      
    4. foundin initialized to: "obsolete: 8.4a3"
    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: "38. Init - Library - Autoload"
    10. title initialized to: "unixInit-2.8 failure"
    11. type initialized to: "Bug"
  2. Add attachment "init.patch" [1ce89eb1f9] (rid 90696) by dgp on 2001-07-03 03:54:38.

  3. Ticket change [3928c0d977] (rid 112339) by dgp on 2001-07-03 03:54:38:

    1. icomment:
      
      
      File Added - 8016: init.patch
      
      Logged In: YES 
      user_id=80530
      
      
      The changes to unixInit-2.8 didn't fully account for
      the different layout of Tcl's installed directories and
      Tcl's source distribution directories.  That needs 
      correcting.
      
      Beyond that, though, making this test fail was actually
      quite fortunate. Looking into why it failed caused me to
      look at the search path being generated by
      TclpInitLibraryPath().
      
      It is just completely wrong, and has been for a long time.
      The same completely wrong code also is in win/tclWinInit.c.
      
      The pathv array of path components is being overwritten
      and reused several times to construct the directory names
      to be added to the library path.  Unfortunately the 
      pathv array is not reset between each use, but the code
      assumes it has been.  So, instead of constructing several
      directory names relative to the path to the executable,
      the first is constructed, the second is constructed relative
      to the mangled path left by constructing the first, the
      third relative to the magled path left by the second, etc.
      
      The patch corrects all these problems.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [1e82d0c0e0] (rid 90989) by dgp on 2001-07-03 03:57:40:

    1. closedate changed to: "2001-07-02T20:57:40"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      Commited patch to fix bug.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"