Bug 6940

Summary: version conflict for package "Tcl": have 8.5.12, need exactly 8.5.11
Product: Mageia Reporter: Matteo Pasotti <matteo.pasotti>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: fundawang
Version: CauldronKeywords: Junior_job
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: tcl-8.5.12-1.mga3.src.rpm CVE:
Status comment:

Description Matteo Pasotti 2012-08-03 11:09:17 CEST
Description of problem:
tkgate (as an example) fails because tcl cannot find a usable init.tcl; 
It crashes with the error below:

!++++++++++++++++++++++++++++++++
Tcl_Init Error in tkgate:
Can't find a usable init.tcl in the following directories:
    /usr/share/tcl8.5 /lib/tcl8.5 /lib/tcl8.5 /library /library /tcl8.5.12/library /tcl8.5.12/library

/usr/share/tcl8.5/init.tcl: version conflict for package "Tcl": have 8.5.12, need exactly 8.5.11
version conflict for package "Tcl": have 8.5.12, need exactly 8.5.11
    while executing
"package require -exact Tcl 8.5.11"
    (file "/usr/share/tcl8.5/init.tcl" line 18)
    invoked from within
"source /usr/share/tcl8.5/init.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tclfile]"


This probably means that Tcl wasn't installed properly.
!++++++++++++++++++++++++++++++++

Line 18 of /usr/share/tcl8.5/init.tcl contains:
  package require --exact Tcl 8.5.11
even if the installed package is tcl-8.5.12.

Manually changing line 18 to 
  package require --exact Tcl 8.5.12
solve the problem, but that's just a workaround.

How reproducible:
Always reproducible when trying to launch applications like tkgate or expect.

Steps to Reproduce:
1. install tkgate (or expect) using urpmi tkgate (or urpmi expect)
2. launch tkgate (or expect)
3. experience this issue
Comment 1 Matteo Pasotti 2012-08-03 17:23:58 CEST
UPDATE: if I uninstall tcl (urpme tcl) and then I reinstall it (urpmi tcl) it will install directly the latest version and this issue disappears.
Manuel Hiebel 2012-08-05 01:17:49 CEST

Keywords: (none) => Junior_job
CC: (none) => fundawang

Comment 2 Funda Wang 2012-08-05 05:26:03 CEST
 Thanks. The problem should be fixed with latest tcl and tk.

Status: NEW => RESOLVED
Resolution: (none) => FIXED