Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 100904

Summary: package requires Tk fails in tclsh
Product: [Fedora] Fedora Reporter: Joel <jdy>
Component: tcltkAssignee: Jens Petersen <petersen>
Status: CLOSED RAWHIDE QA Contact: Bill Huang <bhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-02-26 08:15:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 100644    

Description Joel 2003-07-26 22:21:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030703 Galeon/1.3.7

Description of problem:
There is a mis-build with tcl for finding TK.  This 
becomes manifest with i8kmon in the i8kutils (freshrpms).

According to the i8kmon man page:

On some Linux distributions i8kmon exits with an error like this:
                                                                               
                                                            
              can�t find package Tk
                  while executing
              "package require Tk"
 
This is not a bug in  i8kmon.  It  means  that  Tcl/Tk  files  are  not
installed  correctly on your system and the Tk library can�t be dynamically
loaded from Tcl. In this case you can run i8kmon  with  the command:
 
              wish /usr/bin/i8kmon -- [options...]
 
and in the readme from debian:

You should also report the bug to the maintainer of the Tcl/Tk package
included in your Linux distribution. A quick fix for the problem could
also be adding the following line to /usr/lib/tk8.3/pkgIndex.tcl:

    package ifneeded Tk 8.3 [list load "/usr/lib/libtk8.3.so.1" Tk]


Version-Release number of selected component (if applicable):
8.3.5 90.1

How reproducible:
Always

Steps to Reproduce:
1. type i8kmon
2.
3.
    

Actual Results:  $ i8kmon
can't find package Tk
    while executing
"package require Tk"
    (procedure "make_ui" line 15)
    invoked from within
"make_ui"
    (procedure "main" line 4)
    invoked from within
"main"
    invoked from within
"if {$tcl_interactive == 0} {
    main
    vwait exit
}"
    (file "/usr/bin/i8kmon" line 670)


Expected Results:  program runs

Additional info:

Comment 1 Jens Petersen 2003-08-10 03:33:24 UTC
It sounds reasonable enough, except tk-8.3.5 doesn't seem to come with
pkgIndex.tcl file afaict.


Comment 2 Jens Petersen 2003-11-28 12:51:04 UTC
Fixed in the new tcl and tk 8.4 package just built.