Skip to content
Tcl Source Code History Of Ticket 218661
Login

History Of Ticket 218661

Artifacts Associated With Ticket 218661

  1. Ticket change [fe7667fb57] (rid 108596) by nobody on 2000-10-26 01:03:49:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1633 Bug
      Version: 8.1b2
      SubmitDate: '1999-03-25'
      LastModified: '1999-04-05'
      Severity: CRIT
      Status: Released
      Submitter: pat
      ChangedBy: redman
      OS: Linux-Red Hat
      OSVersion: 4.2
      Machine: Other
      FixedDate: '1999-04-05'
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Jan Nijtmans
      
      
      
      CVS:
      
      24/Mar/1998
      
      
      
      Extensions:
      
      Img 1.2
      
      
      
      ReproducibleScript:
      
          The first trunk in the patch below solves potential problem if
      
          Tcl_PkgProvideEx() is called after Tcl_PkgProvide()
      
          with the same package name. When used in that order, a valid
      
          stub table pointer still stays unregistered for use by
      
          other packages.
      
          
      
          More important is another problem. If I compile
      
          Tcl/Tk8.1b2 from the current CVS database, and
      
          try to load Img 1.2, I get the error-message that Tk
      
          doesn't have Stub support. The cause for this error is
      
          in tclPkg.c, where something terrible went wrong. It
      
          seems that a few lines were copied to the wrong place,
      
          currupting the Stub table registration for Tk. This
      
          makes Img 1.2 totally unusable.
      
          
      
          The patch below solves both those problems.
      
          
      
      
      
      
      
      
      
      Patch:
      
      *** generic/tclPkg.c.origThu Mar 25 22:50:56 1999
      
      --- generic/tclPkg.cThu Mar 25 23:07:54 1999
      
      ***************
      
      *** 109,114 ****
      
      --- 109,117 ----
      
        return TCL_OK;
      
            }
      
            if (ComparePkgVersions(pkgPtr->version, version, (int *) NULL) == 0) {
      
      + if (clientData != NULL) {
      
      +     pkgPtr->clientData = clientData;
      
      + }
      
        return TCL_OK;
      
            }
      
            Tcl_AppendResult(interp, "conflicting versions provided for package \"",
      
      ***************
      
      *** 310,324 ****
      
                if (clientDataPtr) {
      
            *clientDataPtr = pkgPtr->clientData;
      
        }
      
      -     
      
      -         if (clientDataPtr) {
      
      -     *clientDataPtr = pkgPtr->clientData;
      
      - }
      
      -     
      
        return pkgPtr->version;
      
            }
      
            result = ComparePkgVersions(pkgPtr->version, version, &satisfies);
      
            if ((satisfies && !exact) || (result == 0)) {
      
        return pkgPtr->version;
      
            }
      
            Tcl_AppendResult(interp, "version conflict for package \"",
      
      --- 313,325 ----
      
                if (clientDataPtr) {
      
            *clientDataPtr = pkgPtr->clientData;
      
        }
      
        return pkgPtr->version;
      
            }
      
            result = ComparePkgVersions(pkgPtr->version, version, &satisfies);
      
            if ((satisfies && !exact) || (result == 0)) {
      
      +         if (clientDataPtr) {
      
      +     *clientDataPtr = pkgPtr->clientData;
      
      + }
      
        return pkgPtr->version;
      
            }
      
            Tcl_AppendResult(interp, "version conflict for package \"",
      
      
      
      
      
      
      
      
      
      PatchFiles:
      
          tclPkg.c
      
          
      
      
      
      
      
      
      
      04/05/1999 18:06 - redman - Already applied by Scott Stanton on 3/25/99
      
    4. foundin initialized to: "obsolete: 8.1b2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Stub table registration corrupt"
    11. type initialized to: "Bug"
  2. Ticket change [57a60b30a0] (rid 117654) by welch on 2000-10-26 08:26:11:

    1. closedate changed to: "2000-10-26T01:26:11"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [48594c14ba] (rid 99869) by dgp on 2001-04-17 05:44:32:

    1. closedate changed to: "2001-04-16T22:44:32"
    2. closer changed to: "dgp"
    3. subsystem changed to: "39. Package Manager"