Bug 6940 - version conflict for package "Tcl": have 8.5.12, need exactly 8.5.11
Summary: version conflict for package "Tcl": have 8.5.12, need exactly 8.5.11
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: Junior_job
Depends on:
Blocks:
 
Reported: 2012-08-03 11:09 CEST by Matteo Pasotti
Modified: 2012-08-05 05:26 CEST (History)
1 user (show)

See Also:
Source RPM: tcl-8.5.12-1.mga3.src.rpm
CVE:
Status comment:


Attachments

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


Note You need to log in before you can comment on or make changes to this bug.