Skip to content
Tcl Source Code History Of Ticket 923bf7ac55
Login

History Of Ticket 923bf7ac55

Artifacts Associated With Ticket 923bf7ac55

  1. Ticket change [8a3b61736c] (rid 262082) by anonymous on 2026-11-24 23:10:55:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      Some http commands will be unavailable when requiring the http package indirectly in a static Tcl build because the auto_load command list in pkgIndex.tcl appears to out-of-date.
      
      A workaround is to manually trigger the auto-loading via a command that is listed, e.g. 'auto_load ::http::config'.
      
      Here is an example of triggering the problem via an indirect require of http via another package in a static Tcl build:
      
      ### Files
      
      # test.tcl
      set scriptDir [file dirname [info script]]
      puts "Old auto_path: $auto_path"
      set auto_path [linsert $auto_path 0 [file join $scriptDir "testlib"]]
      puts "New auto_path: $auto_path"
      package require testpackage
      
      # testlib/testpackage.tcl
      puts "HTTP VERSION: [package require http]"
      puts "HTTP COMMANDS: [info commands ::http::*]"
      puts [::http::quoteString " "]
      puts "End of script"
      package provide testpackage 1.0.0
      
      # testlib/pkgIndex.tcl
      package ifneeded testpackage 1.0.0 [list source [file join $dir testpackage.tcl]]
      
      ### Script output
      
      $ /usr/pkg/tcl/9.0/bin/tclsh test.tcl
      Old auto_path: //zipfs:/lib/tcl/tcl_library //zipfs:/lib/tcl /usr/pkg/tcl/9.0/lib
      New auto_path: ./testlib //zipfs:/lib/tcl/tcl_library //zipfs:/lib/tcl /usr/pkg/tcl/9.0/lib
      HTTP VERSION: 2.10.2
      HTTP COMMANDS: 
      invalid command name "::http::quoteString"
          while executing
      "::http::quoteString " ""
          (file "./testlib/testpackage.tcl" line 3)
          invoked from within
      "source ./testlib/testpackage.tcl"
          ("package ifneeded testpackage 1.0.0" script)
          invoked from within
      "package require testpackage"
          (file "test.tcl" line 5)
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "29. http Package"
    14. title initialized to: "http/pkgIndex.tcl is missing some autoload entries"
    15. type initialized to: "Bug"