Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 62680f11c4115da250fa92313af6e93085fba51c382e78a9f98c43287ad13a92
Ticket: 1b8a893ded5f2a9b0c70a5893c7a2be3429d8033
TCL_PACKAGE_PATH path is (wrongly) braced.
User & Date: oehhar on 2024-03-05 12:28:33
Changes

  1. closedate changed to: "2460375.01983389"
  2. closer changed to: "oehhar"
  3. icomment:
    Hi Jan,
    we have multiple usage:
    
       *   TCL_PACKAGE_PATH is a configure option of TCL
       *   TCL_PACKAGE_PATH is passed for module compilation via tclConfig.sh
    
    Its "official" use targets a c embedded interpeter.
    
    The only one I know is KitDLL with KitCreator:
    I scanned the trunk of the distribution
    https://kitcreator.rkeene.org/fossil/info/bf07147147174383
    and found:
    
    <verbatim>
    function install() {
    	local filename newFilename
    
    	mkdir -p "${installdir}/lib" || return 1
    	${MAKE:-make} tcllibdir="${installdir}/lib" TCL_PACKAGE_PATH="${installdir}/lib" "${make_extra[@]}" install || return 1
    
    </verbatim>
    
    What I understand is, that the Variable TCL_PACKAGE_PATH is used to inform TCL (or other packages) about the package path and it is again equal to ${installdir}/lib.
    
    Nevertheless, within the embedding process, it is not used.
    
    Here is my old howto for reference:
    https://wiki.tcl-lang.org/page/Embedding+TCL+program+in+DLL
    
    I think in embedding, the libraries are anywahy handled differently.
    
    Long post, not much content.
    I would favor to remove all this from 9.0 ;-).
    
    If it is used, it is used the wrong way.
    
    Take care,
    Harald
    
  4. login: "oehhar"
  5. mimetype: "text/x-fossil-wiki"
  6. username: "oehhar"