Skip to content
Tcl Source Code History Of Ticket 218864
Login

History Of Ticket 218864

Artifacts Associated With Ticket 218864

  1. Ticket change [4c4f463751] (rid 126869) by nobody on 2000-10-26 01:06:54:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2455 Bug
      Version: 8.1.1
      SubmitDate: '1999-07-28'
      LastModified: '1999-08-08'
      Severity: MED
      Status: Released
      Submitter: techsupp
      ChangedBy: hobbs
      RelatedBugIDs: 2317 2394 2041
      OS: Windows 98
      Machine: X86
      FixedDate: '1999-08-04'
      FixedInVersion: 8.2b2
      ClosedDate: '2000-10-25'
      
      
      Name:
      Roy Nurmi
      
      ReproducibleScript:
      I have written a simple setup script for my extension package tclodbc.
          The script originally written with tcl 8.0 relied on tcl variable
          tcl_pkgPath. However, I have received numerous e-mails complaining that
          the setuo script does not work with tcl 8.1.
          
          After testing the tcl 8.1 I found, that for some reason tcl_pkgPath is
          not set anymore. However, tcl_pkgPath is still documented in tcl81.hlp
          help file! 
          
          First I made a quick workaround using variable tcl_libPath, but it seems
          that it does not work but in some installations.
          
          My question is, is the tcl_pkgPath dropped on purpose and if it is, what
          would be the correct way to determine proper place to install an
          extension package. Would it be something from auto_path, tcl_libPath or
          something else?
          
          I attach below the setup script to clarify the problem. The point is
          simply that I would neet a way to determine automatically which would be
          the correct place to put the extension software.
          
          -- Roy Nurmi
      
      ObservedBehavior:
      #
          # Simple install script for tclodbc package
          # (c) Roy Nurmi 1998
          #
          
          proc output msg {
            #use messagebox when run in wish, otherways puts msgs to stdout
            if {[catch {tk_messageBox -message $msg}]} {puts $msg}
          }
          
          set tclodbc_version 2.1
          
          set home [file dirname [info script]] 
          
          if {![info exists tcl_pkgPath]} {
            # tcl_pkgPath not set, assume something from tcl_libPath
            set tcl_pkgPath [lindex $tcl_libPath 0]/..
          }
          
          if {[file isdirectory [lindex $tcl_pkgPath 0]]} {
            set pkgDir [lindex $tcl_pkgPath 0]/tclodbc$tclodbc_version
            output "Installing tclodbc $tclodbc_version for tcl $tcl_version to
          directory $pkgDir"
          
            # create root directory
            if {![file isdirectory $pkgDir]} {
              file mkdir $pkgDir
            }
          
            # copy the right version of the dll
            file copy -force [file join $home tcl${tcl_version}/tclodbc.dll]
          $pkgDir/tclodbc.dll   
          
            # copy supporting tcl files
            set tclfiles [glob -nocomplain $home/tclutils/*]
            foreach i $tclfiles {
              eval file copy -force $i $pkgDir
            }
          
            # create subdirectories
            if {![file isdirectory [file join $pkgDir doc]]} {
              file mkdir [file join $pkgDir doc]
            }
            if {![file isdirectory [file join $pkgDir samples]]} {
              file mkdir [file join $pkgDir samples]
            }
          
            # copy documentation
            set docs [glob -nocomplain $home/doc/*]
            foreach i $docs {
              eval file copy -force $i [file join $pkgDir doc]
            }
          
            # copy samples
            set samples [glob -nocomplain $home/samples/*]
            foreach i $samples {
              eval file copy -force $i [file join $pkgDir samples]
            }
          
            # copy license file
            file copy -force [file join $home license.txt] $pkgDir   
          
            output "Installation successful."
          } else {
            output "Can't install, check proper tcl installation first."
          }
          
          exit
      
      
      
      It says specifically in init.tcl that tcl_pkgPath is not used on
      Windows.  This is a bug in the documentation (which just mentions
      the variable without the caveats). 
      -- 08/04/1999 hobbs
      
    4. foundin initialized to: "final: 8.1.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "tcl_pkgPath missing from tcl 8.1"
    11. type initialized to: "Bug"
  2. Ticket change [63cbe3e25c] (rid 92641) by welch on 2000-10-26 08:30:14:

    1. closedate changed to: "2000-10-26T01:30:14"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [bfcb25fe64] (rid 102309) by dgp on 2001-04-23 03:24:51:

    1. closedate changed to: "2001-04-22T20:24:51"
    2. closer changed to: "dgp"
    3. subsystem changed to: "38. Init - Library - Autoload"