| Ticket UUID: | 521356 | |||
| Title: | package index for loadable Tk | |||
| Type: | Patch | Version: | None | |
| Submitter: | dgp | Created on: | 2002-02-22 07:21:03 | |
| Subsystem: | 84. Unix Build | Assigned To: | dgp | |
| Priority: | 9 Immediate | Severity: | ||
| Status: | Closed | Last Modified: | 2002-06-26 09:39:16 | |
| Resolution: | Accepted | Closed By: | dgp | |
| Closed on: | 2002-06-26 02:39:16 | |||
| Description: |
This patch to the unix Makefile.in causes the 'make install-binaries' target to create and install a suitable pkgIndex.tcl file so that Tk is installed as a loadable Tcl package "out of the box". | |||
| User Comments: |
dgp added on 2002-06-26 09:39:16:
Logged In: YES user_id=80530 committed. dgp added on 2002-06-25 20:57:17: Logged In: YES user_id=80530 I still think it's important to make loadable Tk a feature of Tk 8.4. I think Jeff was delaying acceptance of this patch because it was incompatible with some other approach taken in the ActiveTcl distributions? Can we sort this out in time to get loadable Tk testing in the 8.4 betas ? dgp added on 2002-06-22 00:15:56: Logged In: YES user_id=80530 We should have loadable Tk enabled for the beta release so people can start testing it. Either this patch, or a different one that will install the pkgIndex.tcl file "out of the box" should be committed for the beta release. dgp added on 2002-06-01 02:40:22: Logged In: YES user_id=80530 I would very much like to see load-able Tk in the 8.4 beta releases. Can we commit this? wolfsuit added on 2002-02-27 07:40:36: Logged In: YES user_id=169107 On MacOS X this could be done, but it would be a little tricky. The main problem is that we have to switch notifiers for Tk. The tcl notifier is just the vanilla Unix notifier, but the Tk notifier runs a variant of the threaded Unix notifier, with the Carbon event notifier running on the main thread. While this switch can theoretically be made dynamically, if you have done any work before you load Tk, like opened sockets or whatever, you are likely to get hosed. And in general, I don't know how well tested this is... There is another problem as well. In order to talk to the WindowServer, a X app needs to know some cookies to passes to it (the equivalent of the App signature and some other bits). These are normally gotten from the App package for the application that is running by the launcher - so we don't have to do anything. But in the Tcl case, these bits won't be there. So we have to figure out how to cook up an acceptable set and pass them by hand to the Window Server. I have some patches to do this, but I haven't tested them yet. So, possible but with cavaets, and to tell the truth, not very high on MY list of things to do. While formally nice, this never seemed all that useful a feature to me... dgp added on 2002-02-27 07:25:36: File Deleted - 18242: File Added - 18489: load.patch dgp added on 2002-02-27 07:25:35: Logged In: YES user_id=80530 Updated patch also creates and installs pkgIndex.tcl file on Windows. It's not clear to me where and how to add tests for this. The tktest executable already has Tk in it. The Makefile knows where the tcltest executable is, but when the test suite is run tktest is in control. das added on 2002-02-26 12:22:16: Logged In: YES user_id=90580 no work has been done to make Tk loadable from Tcl on the mac, among other things tclsh and wish are initialized differently. currently [package require Tk] (or [load Tk.shlb]) crashes Tclsh on the mac. until this is taken care of, there is no real point to creating a pkgIndex for Tk... so I'd skip this on the mac for now. I'm not sure if Jim has looked at loading Tk from tclsh in Mac OS X? might be non-trivial there as well. dgp added on 2002-02-26 07:02:09: Logged In: YES user_id=80530 Any advice how to accomplish this on the Mac? hobbs added on 2002-02-26 03:54:21: Logged In: YES user_id=72656 This doesn't have anything for the Windows or Mac ports ... also, it seems like a test or three would be useful, and could be make by just using the associated tcltest executable to package require Tk. dgp added on 2002-02-22 14:21:05: File Added - 18242: load.patch | |||
Attachments:
- load.patch [download] added by dgp on 2002-02-27 07:25:36. [details]
