Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6f3d23f0f72e986e3955f529a23c5c41f5506bbc
Ticket: 219279ffffffffffffffffffffffffffffffffff
pkg_mkIndex incorrectly handles namespace import command
User & Date: nobody on 2000-10-26 05:09:48
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1904 Bug
    Version: 8.1b3
    SubmitDate: '1999-04-19'
    LastModified: '2000-10-25'
    Severity: MED
    Status: UnAssn
    Submitter: pat
    OS: Windows NT
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Charles W. Hooks
    
    Comments:
    I am thrilled that you fixed the problem in tcl8.1b1 where the package
        command died when it hit the namespace import command.  I solved half of
        my problems.  Now for the otehr half. :)
    
    ReproducibleScript:
    file: foo.tcl
        
        package provide JCS_task_service 1.0
        
        namespace eval ::JCS_task_service:: {
            namespace export {[a-z]*}
        }
        
        proc ::JCS_task_service::foo {} {
            puts "FOO!"
        }
        
        namespace import ::JCS_task_service::foo
        
        -----------------------------------------
        use the following command in a normal tclsh
        
        pkg_mkIndex . *.tcl
    
    ObservedBehavior:
    This creates a pkgIndex.tcl file with the following line:
        
        package ifneeded JCS_task_service 1.0 [list tclPkgSetup $dir
        JCS_task_service 1.0 {{./services/tasks/task_service.tcl source
        ::JCS_task_service::foo}}]
    
    DesiredBehavior:
    It should create a pkgIndex.tcl file with the following line:
        
        package ifneeded JCS_task_service 1.0 [list tclPkgSetup $dir
        JCS_task_service 1.0 {{./services/tasks/task_service.tcl source foo}
        {./services/tasks/task_service.tcl source ::JCS_task_service::foo}}]
        
        or:
        
        package ifneeded JCS_task_service 1.0 [list tclPkgSetup $dir
        JCS_task_service 1.0 {{./services/tasks/task_service.tcl source foo}}]
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.1b3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "56. LibTomMath"
  10. title changed to:
    pkg_mkIndex incorrectly handles namespace import command
    
  11. type changed to: "Bug"