Mailinglist Archive: opensuse-bugs (4397 mails)
| < Previous | Next > |
[Bug 693085] New: rrdtool's Tcl binding rejects the Tcl version it was compiled against
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Wed, 11 May 2011 11:48:15 +0000
- Message-id: <bug-693085-21960@http.bugzilla.novell.com/>
https://bugzilla.novell.com/show_bug.cgi?id=693085
https://bugzilla.novell.com/show_bug.cgi?id=693085#c0
Summary: rrdtool's Tcl binding rejects the Tcl version it was
compiled against
Classification: openSUSE
Product: openSUSE 11.4
Version: Final
Platform: Other
OS/Version: Other
Status: ASSIGNED
Severity: Normal
Priority: P5 - None
Component: Other
AssignedTo: max@xxxxxxxxxx
ReportedBy: max@xxxxxxxxxx
QAContact: qa@xxxxxxx
CC: vcizek@xxxxxxxxxx
Found By: Development
Blocker: ---
On 11.4, trying to load the Rrd package into a Tcl interpreter fails:
$ tclsh
% package require Rrd
version conflict for package "Tcl": have 8.5.9, need exactly 8.5
This is because bindings/tcl/tclrrd.c calls Tcl_PkgRequire()with the "exact"
flag set to 1. Before Tcl 8.5 this worked, because only the major and minor
version numbers were taken into account, so e.g. 8.4.7 was considered an exact
match if 8.4 was requested. With 8.5 the patch level counts as well, and so
8.5.9 is not an exact match for 8.5 anymore.
One possible solution is to clear the exact flag meaning "I am fine with the
requested version and any newer one that has the same major version number".
But the call to Tcl_PkgRequire() is redundant, because the Tcl_InitStubs(),
which is called immediately before, already makes sure that the Tcl version at
hand matches the extension's expectations.
I'll submit a fix to 11.4 and Factory.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |