wduquette / tcl-quill

Build tool for Tcl/Tk projects
BSD 2-Clause "Simplified" License
10 stars 2 forks source link

'quill teapot' reports that teapot is not linked when it is. #16

Closed wduquette closed 9 years ago

wduquette commented 9 years ago

This was found in Quill v0.2.0, on Linux.

$ quill teapot
Teapot Status:
    Location:  /opt/ActiveTcl-8.6/lib/teapot
    Writable?  No
    Linked?    No
      The teapot is not linked to the tclsh.

Investigation is showing a mismatch between the tclsh path, as seen by Quill, and the tclsh path as seen by teacup:

tclsh=</opt/ActiveTcl-8.6/bin/tclsh>
Got path </opt/ActiveTcl-8.6/bin/tclsh8.6>

The first path is a symlink; the second is the actual file.

wduquette commented 9 years ago

We need a "pathcompare" command that will follow links and so forth to do these kinds of comparisons.

wduquette commented 9 years ago

os pathequal is an advance, but it turns out not to solve the problem. ActiveTcl 8.6.1 in fact installs two executables, tclsh and tclsh8.6, and the teapot is officially linked to the second. But since the two share a lib directory, the system works. I'm not sure how to handle this case.

wduquette commented 9 years ago

This is not really much of an issue. On Linux, with a typical installation, we'll almost always need to create a teapot in the user's home directory, and that renders this moot.