Subject: | test-for-tk.tcl: `package require tklib` fails |
The test for tklib in test-for-tk.tcl doesn't work, at least for Tcl-Tk 1.12 with Tcl/Tk 8.6.8, tcllib 1.19, and tklib 0.6 on both macOS 10.13.6 and Fedora 27.
$ tclsh
Show quoted text
Show quoted text
Now, since /lib/tklib0.6/pkgIndex.tcl doesn't contain package ifneeded tklib 0.6 nor is there a tklib.tcl file, I'm not sure whether (1) this is even the way to check for tklib itself in the first place, (2) if this used to work with an older tklib, and/or (3) this is a bug in Tklib. I believe the same applies to what's currently in the tklib repository.
Trying to load e.g. a specific widget from tklib does work though, but I'm not sure that's the ideal workaround.
$ tclsh
Show quoted text
% package require tklib
can't find package tklibShow quoted text
%
Now, since /lib/tklib0.6/pkgIndex.tcl doesn't contain package ifneeded tklib 0.6 nor is there a tklib.tcl file, I'm not sure whether (1) this is even the way to check for tklib itself in the first place, (2) if this used to work with an older tklib, and/or (3) this is a bug in Tklib. I believe the same applies to what's currently in the tklib repository.
Trying to load e.g. a specific widget from tklib does work though, but I'm not sure that's the ideal workaround.