Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7f2326d46ff8f63519f01b7462925615a02fd4fd
Ticket: 218841ffffffffffffffffffffffffffffffffff
pkg_mkIndex generates an incorrect pkgIndex.tcl file
User & Date: nobody on 2000-10-26 01:06:26
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2360 Bug
    Version: 8.1.1
    SubmitDate: '1999-07-16'
    LastModified: '2000-01-28'
    Severity: SER
    Status: Released
    Submitter: techsupp
    ChangedBy: ericm
    OS: All
    Machine: X86
    FixedDate: '2000-01-28'
    FixedInVersion: 8.3
    ClosedDate: '2000-10-25'
    
    
    Name:
    Gerald Banon
    
    ReproducibleScript:
    In the current directory I have a file named prog.tcl containing two
        procedures whose names are defined within braces like below:
        
        package provide prog 1.1
        proc {a b} {} {
        }
        proc {c d} {} {
        }
        
        When running the command:
        
        pkg_mkIndex . prog.tcl
        
        the resulting pkgIndex.tcl file contains the line:
        
        package ifneeded prog 1.1 [list tclPkgSetup $dir prog 1.1
        {{definition.tcl source {{{a b}} {{c d}}}}}]
        
        In this line there are extra braces arround {a b} and {c d}.
        
        Latter on, with these extra braces, the two procedures cannot be loaded
        ...
    
    ObservedBehavior:
    see above
    
    DesiredBehavior:
    in Tcl 8.0p2 such procedure names cames without extra braces in the
        pkgIndex.tcl file and latter on the procedures were properly loaded.
    
    
    
    Verified.  This is due to the auto_qualify proc always wanting
    to return everything as [list]'ed. 
    -- 11/30/1999 hobbs
    
    As Jeff noted, this was due to auto_qualify always returning a list.  I modified pkg_mkIndex to just grab the first element of the list, in essence un-listifying the result.  This should be done anyway, as auto_qualify can return a multi-element list, so to protect against that we want only the first element too.  This fix is in 8.3.
    
    - eric
    
    -- 01/28/2000 ericm
    
    
    
  4. foundin changed to: "final: 8.1.1"
  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 generates an incorrect pkgIndex.tcl file
    
  11. type changed to: "Bug"