Skip to content
Tcl Source Code History Of Ticket 85bbfda852
Login

History Of Ticket 85bbfda852

Artifacts Associated With Ticket 85bbfda852

  1. Ticket change [18c77262f5] (rid 158283) by dgp on 2017-11-14 17:44:11:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      % package prefer
      stable
      % proc find {args} {
          package ifneeded p 1.0 {package provide p 1.0}
      }
      % package unknown find
      % package ifneeded p 1.1a0 {package provide p 1.1a0}
      % package require p 1.0
      1.1a0
      
    5. foundin initialized to: "8.5+"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to:
      Should [package prefer stable] prompt repeated searches?
      
    15. type initialized to: "Bug"
  2. Ticket change [af2ed64697] (rid 158284) by dgp on 2017-11-14 17:45:03:

    1. assignee changed to: "aku"
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. subsystem changed to: "39. Package Manager"
  3. Ticket change [2595e6bd47] (rid 158285) by dgp on 2017-11-14 17:53:01:

    1. icomment:
      
      The primary purpose of [package require] is to
      bring in a version of the requested package that
      satisfies the stated requirements.  In the demo
      commands above, that primary purpose is fulfilled.
      Version 1.1a0 satisfies a request for 1.0.
      
      Secondary purposes are to honor the [package prefer]
      setting, and to select later over older versions
      that all satisfy the requirement.  The documentation
      has always been vague about when you can expect the
      secondary purposes to be satisfied.  In the demo
      commands, we fail the secondary purposes. We make use
      of an alpha version even though the total system makes
      a suitable stable version available.
      
      The dilemma is that the only way to always guarantee
      the secondary purposes will be satisfied is to promise
      every [package require] call will take a trip through
      a call to the current [package unknown] handler -- just
      to be sure there's not something better.  And typical
      handler calls are expensive.
      
      In practice, we have not guaranteed the latest version
      available for just this reason, and I think we're slowly
      getting better about making that known.
      
      The open question here is whether a "stable" preference
      is different enough that it should trigger a different
      judgment. My initial reaction is that it isn't, and this
      isn't really a bug, but let's see how others react.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [256f282f67] (rid 158604) by aku on 2017-11-17 19:59:42:

    1. icomment:
      Huh. Yes. The difference between packages on disk, and the package database in memory. And 'package require' only going to disk if the package is not known in memory yet.
      
      An argument could be made that libtcl should go to the disk only once, on first `require` and then consider what it has in memory as fixed, i.e. nothing on the disk will change during operation.
      
      What messes this up (now) is the existence of Tcl Modules. While we introduced them to make search/startup faster (by doing a more targeted/limited search), their existence now means that a single scan will definitely not find all installed packages, as it would have before their introduction.
      
      I suspect we need a big discussion of many aspects of package handling before Tcl 9 becomes final. Because that is opportunity to straighten out the kinks we put into the system. And Tcl Modules, while nice, are a kink, a band-aid.
      
    2. login: "aku"
    3. mimetype: "text/plain"