Bug in current runtime.kit

View: New views
2 Messages — Rating Filter:   Alert me  

Bug in current runtime.kit

by Obermeier@Tcl3D :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

The runtime kits for 8.4.18 and 8.5.1 (as found on
http://www.equi4.com/pub/tk/tars/) have an error in Tk's pkgIndex.tcl file.
The package tries to load a "dylib" i.e. a Mac dynamic library.

The following fixes the problem:

Unwrap runtime.kit (analogous for runtime85.kit):
tclkit sdx.kit unwrap runtime.kit

Edit runtime.vfs/lib/tk8.4/pkgIndex.tcl:

Change second line:
package ifneeded Tk 8.4 [list load [file join $dir .. libtk8.4.dylib] Tk]

To:
package ifneeded Tk 8.4 [list load [file join $dir libtk8.4[info
sharedlibextension]] Tk]

Wrap the Kit again:
tclkit sdx.kit wrap runtime.kit

Now the generated TclKit is able to correctly "package require Tk" on
non-Mac platforms.

Greetings,

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to starkit@...
To unsubscribe from this group, send email to starkit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/starkit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Bug in current runtime.kit

by jcw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> The runtime kits for 8.4.18 and 8.5.1 (as found on
> http://www.equi4.com/pub/tk/tars/) have an error in Tk's  
> pkgIndex.tcl file.
> The package tries to load a "dylib" i.e. a Mac dynamic library.
>
> The following fixes the problem:
[...]

> Now the generated TclKit is able to correctly "package require Tk" on
> non-Mac platforms.

Whoops, thanks. I've applied and uploaded your fixes.
Also adjusted the version in config.tcl to "200802.001".

Thanks Paul,
-jcw



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to starkit@...
To unsubscribe from this group, send email to starkit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/starkit?hl=en
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price!