Skip to content
Tcl Source Code View Ticket
Login

View Ticket

mkLinks destroys Tk's pack(n)

Closed / Fixed218869ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:06:58
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
welch Closed ticket [218869ffff]. [History diff]2000-10-26 08:30:15
dgp Ticket [218869ffff]: 3 changes [History diff]2001-04-18 22:12:48
Log in (anonymous is fine) to add a comment.