This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /usr/bin/tclsh84

Chris Faylor wrote:
On Sat, Feb 01, 2003 at 03:13:47AM +0000, Jonathan Larmour wrote:
Ah another day another tclsh.
Ah, another hour, another tcl/tk whinge.

Even if it's only a soft link to the most recently installed tclshNN
(like RPM post-install scripts do for the linux kernel etc.).  I know
cygwin has got post-install scripts, so any reason not to?
I don't know what post-install scripts have to do with anything but I'll
add symbolic links to everything in the cygwin tcl release if it stops
just one of these tcl/tk complaints.
This one should be easy to stop at least :).

Well the idea is that every time a new tcl package installs it runs: "ln -sf tclsh84 /usr/bin/tclsh" in a postinstall stage, substituting for whatever tcl version it is.

Or you could include the symlink directly in the tarball^Wcygwin package if it can cope with that, and you never expect people to have two tcl versions installed at the same time causing a conflict. But I guess you don't since /usr/lib/ also exists without version suffix.

Anyway, whichever. As long as /usr/bin/tclsh ends up pointing to any installed tclsh version, I'm not fussy.

Is the attached patch sufficient? Is anything required to ensure it doesn't get lost in subsequent imports?

eCosCentric <>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
RCS file: /cvs/src/src/tcl/unix/,v
retrieving revision 1.7
diff -u -5 -p -r1.7
---	21 Jan 2003 19:40:18 -0000	1.7
+++	1 Feb 2003 16:16:56 -0000
@@ -605,10 +605,12 @@ install-binaries: binaries
 	@echo "Installing tclsh as $(BIN_INSTALL_DIR)/tclsh$(VERSION)"
+	@echo "Linking $(BIN_INSTALL_DIR)/tclsh to $(BIN_INSTALL_DIR)/tclsh$(VERSION)"
+	@ln -sf tclsh$(VERSION) $(BIN_INSTALL_DIR)/tclsh
 	@echo "Installing to $(LIB_INSTALL_DIR)/"
 	@if test "$(STUB_LIB_FILE)" != "" ; then \
 	    echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \
 	    @INSTALL_STUB_LIB@ ; \

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]