Tk86 not loadable via package require

Daniel O'Connor doconnor at gsoft.com.au
Thu Mar 13 02:42:14 UTC 2014


Hi,
I installed tcl86 and tk86 but I can't load Tk from tclsh86, eg..
[mdtest 2:27] ~ >tclsh8.6
tclsh8.6 [/local0~]package require Tk
can't find package Tk
while evaluating {package require Tk}

It turns out that this is due to a broken /usr/local/lib/tk8.6/pkgIndex.tcl

It is..
if {[catch {package present Tcl 8.6.0}]} return
package ifneeded Tk 8.6.1 [list load [file normalize [file join $dir .. libtk86.so.1]] Tk]

but the tcl86 reports as Tcl 8.6b2 hence the package present fails and Tk is never loaded.

It can be worked around by changing the 8.6.0 to 8.6b2 with the attached patch.


--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-package-require.diff
Type: application/octet-stream
Size: 1410 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-tcltk/attachments/20140313/fed12631/attachment.obj>
-------------- next part --------------





-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-tcltk/attachments/20140313/fed12631/attachment.sig>


More information about the freebsd-tcltk mailing list