Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 716512750789b57073027ee92c82fde1a4c91a69
Ticket: 3057500fffffffffffffffffffffffffffffffff
Itcl itcl.tcl path, INSTALL_DIR and pkgIndex mismatch
User & Date: twylite on 2010-09-01 14:52:02
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When building Itcl on WIN32 with MSVC6 or MSVC9 as part of a tcl "nmake release install":
    
    (1) Itcl installs to the wrong folder.  It ends up with bin/, include/ and lib/ under $(TCLDIR)/lib rather than under $(TCLDIR).
    (2) The name of the lib folder is incorrect.  The C logic expects to find it's init script (itcl.tcl) in a lib folder named after the $(ITCL_PATH_LEVEL), but the makefile.vc uses just the major and minor versions.
    (3) The pkgIndex.tcl does not work correctly for a build with OPTS=threads.  The "add" variable needs to include the "t" suffix in such a case.
    (4) The package version in the pkgIndex.tcl file (major + minor) is mismatched with the DLL (ITCL_PATCH_LEVEL), causing "package require" to report errors.
    
    The following patch fixes all these issues:
    
    diff -r1.3 makefile.vc
    60c60
    < DOTVERSION      = $(ITCL_MAJOR_VERSION).$(ITCL_MINOR_VERSION)
    ---
    > DOTVERSION      = $(ITCL_PATCH_LEVEL)
    70,74c70,74
    < BIN_INSTALL_DIR               = $(_INSTALLDIR)\bin
    < DOC_INSTALL_DIR               = $(_INSTALLDIR)\doc
    < LIB_INSTALL_DIR               = $(_INSTALLDIR)\lib
    < SCRIPT_INSTALL_DIR    = $(_INSTALLDIR)\lib\$(PROJECT)$(DOTVERSION)
    < INCLUDE_INSTALL_DIR   = $(_INSTALLDIR)\include
    ---
    > BIN_INSTALL_DIR               = $(_INSTALLDIR)\..\bin
    > DOC_INSTALL_DIR               = $(_INSTALLDIR)\..\doc
    > LIB_INSTALL_DIR               = $(_INSTALLDIR)
    > SCRIPT_INSTALL_DIR    = $(_INSTALLDIR)\$(PROJECT)$(DOTVERSION)
    > INCLUDE_INSTALL_DIR   = $(_INSTALLDIR)\..\include
    274c274
    <       echo ^ ^ ^ ^ set add {}>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
    ---
    >       echo ^ ^ ^ ^ set add {$(SUFX:g=)}>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
    
    281c281
    <       echo ^ ^ ^ ^ package ifneeded Itcl $(VERSION) [list load\
    ---
    >       echo ^ ^ ^ ^ package ifneeded Itcl $(DOTVERSION) [list load\
    
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "twylite"
  10. subsystem changed to: "81. Bundled Packages"
  11. title changed to:
    Itcl itcl.tcl path, INSTALL_DIR and pkgIndex mismatch
    
  12. type changed to: "Bug"