Overview
| Artifact ID: | 4c4f463751f76f6c812a050d25957a0a82534397 |
|---|---|
| Ticket: | 218864ffffffffffffffffffffffffffffffffff
tcl_pkgPath missing from tcl 8.1 |
| User & Date: | nobody on 2000-10-26 01:06:54 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "final: 8.1.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "tcl_pkgPath missing from tcl 8.1"
- type changed to: "Bug"