Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bfbd9d15974d86dfdf14dc12f188da05af361d7b
Ticket: 1703170fffffffffffffffffffffffffffffffff
TEA_INIT does exact version matching
User & Date: dgp on 2007-04-18 18:47:52
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    This is more a question than a
    request actually.  I notice that
    TEA_INIT implements exact version
    matching.  That is, if the
    configure.in file for some package
    contains the line:
    
      TEA_INIT([3.5])
    
    And then the HEAD of tclconfig
    (currently marked as TEA 3.6)
    is used with autoconf to generate
    a configure script for that package.
    
    Then when the configure script runs,
    it will spit out a warning about
    the mismatch of version numbers.
    
    In other contexts I might expect
    version 3.6 of something to satisfy
    a requirement of 3.5, but that's
    not the kind of matching being done here.
    Perhaps version numbers suggesting
    that kind of compatibility tracking
    ought not be used if that's not the
    kind of matching being done?  Or
    perhaps TEA_INIT matching should be
    revised to conform to expectations
    more like those of [package require]?
    
    In light of the exact matching requirement
    implemented in TEA_INIT, some guidance
    on how package authors ought to maintain
    this would be helpful.
    
    If package authors are intended to
    update the TEA_INIT() lines in their
    configure.in files only when their
    package needs require it, then it seems
    they will want to have a snapshot copy
    of tclconfig that matches their needs,
    and they ought not track the HEAD of
    tclconfig.  In that case, it would be
    helpful for the tclconfig cvs module to
    have some cvs tags marking the snapshots
    that correspond to a version of TEA, and
    even better, tclconfig might provide some
    "releases" of TEA support files.
    
    On the other hand if a package is tracking
    the HEAD of tclconfig, it seems that any
    `cvs update` that brings in a new TEA_VERSION
    value needs to prompt an edit of the
    TEA_INIT line of that package to maintain
    warning-free compatibility.  Some greater
    visibility about such changes on the HEAD
    of tclconfig might be helpful (an announcement
    on a mailing list?).  Or, perhaps
    support for a zero-argument form of TEA_INIT
    would be better, to permit a maintenance-free
    way for the package author to say "any version
    is fine", when the package author knows he
    will be tracking the latest and greatest.
    
    Or maybe I'm off on all of this, and I just
    need someone to point out the better way.
    
  4. foundin changed to: "None"
  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: "dgp"
  10. subsystem changed to: "85. tclconfig"
  11. title changed to: "TEA_INIT does exact version matching"
  12. type changed to: "RFE"