Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fd520a5ca38a5bd5e5f90e33acddbbd00c929ede
Ticket: 218869ffffffffffffffffffffffffffffffffff
mkLinks destroys Tk's pack(n)
User & Date: nobody on 2000-10-26 01:06:58
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2469 Bug
    Version: 8.2b1
    SubmitDate: '1999-07-28'
    LastModified: '1999-08-08'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 1857
    OS: Other
    Machine: NA
    FixedDate: '1999-07-29'
    FixedInVersion: 8.2b2
    ClosedDate: '2000-10-25'
    
    
    Name:
    
    Don Porter
    
    
    
    CVS:
    
    $Id: mkLinks.tcl,v 1.1 1998/06/28 14:11:40 welch Exp $
    
    
    
    Comments:
    
    The unix/mkLinks sh script in Tk causes the problem because it includes:
    
        
    
            if test -r pack-old.n; then
    
                rm -f pack.n
    
                ln pack-old.n pack.n
    
            fi
    
        
    
        tk/unix/mkLinks is generated by tcl/unix/mkLinks.tcl when 'make dist'
    
        is performed in tk/unix.  The patch to tcl/uinix/mkLinks.tcl corrects
    
        the mistaken generation of the code snippet above.
    
        
    
        Of course an alternative fix is to remove pack-old.n from Tk.  It's not
    
        clear to me why Tk 8.2 is still shipping with documentation for a
    
        command
    
        that last appeared in Tk 3.X.
    
        
    
        Note that the files tcl/unix/mkLinks and tk/unix/mkLinks distributed
    
        through
    
        NetCVS are not up to date with those in the real distributions of Tcl
    
        and Tk.
    
    
    
    ObservedBehavior:
    
    When installing Tk with 'make install', the mkLinks script is run.
    
        It destroys the pack.n man page and replaces it with a hard link to
    
        pack-old.n .  Later 'man n pack' gives documentation for the obsolete
    
        Tk 3 version of [pack].  Documentation for the current [pack] is not
    
        available.
    
    
    
    DesiredBehavior:
    
    'man n pack' should give current documentation for [pack].
    
    
    
    Patch:
    
    Index: mkLinks.tcl
    
    ===================================================================
    
    RCS file: /cvsroot/tcl/unix/mkLinks.tcl,v
    
    retrieving revision 1.1
    
    diff -c -r1.1 mkLinks.tcl
    
    *** mkLinks.tcl1998/06/28 14:11:401.1
    
    --- mkLinks.tcl1999/07/28 16:12:16
    
    ***************
    
    *** 52,58 ****
    
          regsub {\\-.*} $line {} line
    
          foreach name [split $line ,] {
    
      regsub -all { } $name "" name
    
    ! if {[string compare $tail $name$ext] != 0} {
    
          puts "if test -r $tail; then"
    
          puts "    rm -f $name$ext"
    
          puts "    ln $tail $name$ext"
    
    --- 52,58 ----
    
          regsub {\\-.*} $line {} line
    
          foreach name [split $line ,] {
    
      regsub -all { } $name "" name
    
    ! if {![string match $name*$ext $tail]} {
    
          puts "if test -r $tail; then"
    
          puts "    rm -f $name$ext"
    
          puts "    ln $tail $name$ext"
    
    
    
    PatchFiles:
    
    mkLinks.tcl
    
    
    
    
    
    Applied patch.
     
    -- 07/29/1999 redman
    
  4. foundin changed to: "obsolete: 8.2b1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "mkLinks destroys Tk's pack(n)"
  11. type changed to: "Bug"