Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5a75f0a14e7a9e98616f67006349729e0a3279cc
Ticket: 3057500fffffffffffffffffffffffffffffffff
Itcl itcl.tcl path, INSTALL_DIR and pkgIndex mismatch
User & Date: twylite on 2011-08-01 00:42:39
Changes

  1. foundin changed to: "obsolete: 8.6b2"
  2. icomment:
    This issue and its upstream partner (bug #3058200 filed with Itcl) have been idle for 11 months now.  They still prevent an MSVC/nmake build+install of Tcl working correctly on Windows, and they affect the 8.6b2 release candidates.
    
    In addition, the rules.vc for Itcl hasn't been updated to support MSVC10 (VCVERSION 1600), so the package will not build with the latest MS compiler.
    
    Full patch is now:
    
    Index: win/makefile.vc
    ===================================================================
    --- win/makefile.vc
    +++ win/makefile.vc
    @@ -54,25 +54,25 @@
     
     
     BINROOT= .
     ROOT= ..
     STUBPREFIX= $(PROJECT)stub
    -DOTVERSION      = $(ITCL_MAJOR_VERSION).$(ITCL_MINOR_VERSION)
    +DOTVERSION      = $(ITCL_PATCH_LEVEL)
     VERSION         = $(ITCL_MAJOR_VERSION)$(ITCL_MINOR_VERSION)
     
     PKGINDEX= "$(TMP_DIR)\pkgIndex.tcl"
     ITCLLIBNAME= $(PROJECT)$(VERSION)$(SUFX).$(EXT)
     ITCLLIB= "$(OUT_DIR)\$(ITCLLIBNAME)"
     ITCLIMPLIB= "$(OUT_DIR)\$(PROJECT)$(VERSION)$(SUFX).lib"
     ITCLSTUBLIBNAME= $(STUBPREFIX)$(VERSION).lib
     ITCLSTUBLIB= "$(OUT_DIR)\$(ITCLSTUBLIBNAME)"
     
    -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
     
     ITCLOBJS = \
             $(TMP_DIR)\itcl2TclOO.obj \
             $(TMP_DIR)\itclBase.obj \
             $(TMP_DIR)\itclBuiltin.obj \
    @@ -268,18 +268,18 @@
     copy $(ROOT)\library\*.* "$(SCRIPT_INSTALL_DIR)"
     echo if {[package vsatisfies 8.0 [package provide Tcl]]} {\
     > "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
     echo ^ ^ ^ ^ set add 80>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
     echo } else {>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
    -echo ^ ^ ^ ^ set add {}>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
    +  echo ^ ^ ^ ^ set add {$(SUFX:g=)}>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
     echo }>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
     echo if {[info exists ::tcl_platform(debug)] ^&^&\
     $$::tcl_platform(debug)^&^& \>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
     echo ^ ^ ^ ^ ^ ^ ^ ^ [file exists [file join $$dir\
     $(PROJECT)$(VERSION)$${add}g.dll]]}\
     {>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
    -echo ^ ^ ^ ^ package ifneeded Itcl $(VERSION) [list load\
    +  echo ^ ^ ^ ^ package ifneeded Itcl $(DOTVERSION) [list load\
     [file join $$dir $(PROJECT)$(VERSION)$${add}g.dll]\
     Itcl]>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
     echo } else {>> "$(SCRIPT_INSTALL_DIR)\pkgIndex.tcl"
     echo ^ ^ ^ ^ package ifneeded Itcl $(DOTVERSION) [list load\
     [file join $$dir $(PROJECT)$(VERSION)$${add}.dll]\
    @@ -439,12 +439,17 @@
     -del $(TMP_DIR)\*.pch
     -del $(TMP_DIR)\*.obj
     -del $(TMP_DIR)\*.res
     
     clean : tidy
    +  @if exist $(TMP_DIR)\nul $(RMDIR) $(TMP_DIR)
    +  @if exist $(WINDIR)\version.vc del $(WINDIR)\version.vc
    +  @if exist $(WINDIR)\vercl.i del $(WINDIR)\vercl.i
    +  @if exist $(WINDIR)\vercl.x del $(WINDIR)\vercl.x
    +  @if exist $(WINDIR)\_junk.pch del $(WINDIR)\_junk.pch
     -del $(OUT_DIR)\*.exp
     -del $(OUT_DIR)\*.lib
     -del $(OUT_DIR)\*.dll
     
     hose : clean
     -rmdir $(OUT_DIR)
     -rmdir $(TMP_DIR)
    
    Index: win/rules.vc
    ===================================================================
    --- win/rules.vc
    +++ win/rules.vc
    @@ -184,11 +184,13 @@
     _VC_MANIFEST_EMBED_DLL=
     VCVER=0
     !if ![echo VCVERSION=_MSC_VER > vercl.x] \
         && ![cl -nologo -TC -P vercl.x $(ERRNULL)]
     !include vercl.i
    -!if $(VCVERSION) >= 1500
    +!if $(VCVERSION) >= 1600
    +VCVER=10
    +!elseif $(VCVERSION) >= 1500
     VCVER=9
     !elseif $(VCVERSION) >= 1400
     VCVER=8
     !elseif $(VCVERSION) >= 1300
     VCVER=7
    
    
    
    
  3. login: "twylite"
  4. mimetype: "text/plain"
  5. priority changed to: "8"
  6. username: "twylite"