Artifacts Associated With Ticket 218864ffffffffff
Ticket change [4c4f463751] (rid 126869) by nobody on 2000-10-26 01:06:54:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "final: 8.1.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "tcl_pkgPath missing from tcl 8.1"
- type initialized to: "Bug"
Ticket change [63cbe3e25c] (rid 92641) by welch on 2000-10-26 08:30:14:
- closedate changed to: "2000-10-26T01:30:14"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [bfcb25fe64] (rid 102309) by dgp on 2001-04-23 03:24:51:
- closedate changed to: "2001-04-22T20:24:51"
- closer changed to: "dgp"
- subsystem changed to: "38. Init - Library - Autoload"