git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-gui: Build even if tclsh is not available

From
Shawn O. Pearce <spearce@spearce.org>
Date
May 17, 2007, 22:16 UTC
Message-ID
<20070517221615.GA3141@spearce.org>
In-Reply-To
<20070517023614.GL4489@pasky.or.cz>
Petr Baudis <pasky@suse.cz> wrote:
Show 14 quoted lines
>   (i) Makefile will autodecide on whether git-gui will be
> built+installed or not
> 
>   (ii) ./configure will, people not using configure and building on
> servers will be left to tweak config manually
> 
>   (iii) ./configure will, git-gui will default to not to be built and
> people not using configure and wanting git-gui will be left to tweak
> config manually
> 
> I suspect that (ii) will be chosen, and even though I don't like it
> *personally* I guess it's the most reasonable approach for the general
> public. I didn't know that tclIndex is vital for git-gui when I
> submitted the patch, the /Makefile comment suggests otherwise.

(iv) git-gui 0.7.1, which is now available from repo.or.cz, and I think you know where that is ;-), makes TCL_PATH strictly an optimization at compile time.

If TCL_PATH is present and creates a valid tclIndex file then we use the Tcl auto_load "optimization" to only load the Tcl code we actually need when we run. But if it does fail for any reason we hide the error (can be unhidden with make V=1) and we generate a listing of the files instead. In this latter case we load *everything* on git-gui startup.

This way git-gui works for the user either way, just like before, but its startup may be slightly slower if the user didn't give us a good TCL_PATH at build time.

Junio, would you consider merging 0.7.1 soon? No changes are needed to git.git's own Makefile, just a subtree pull.

-- 
Shawn.
Previous: Shawn O. Pearce
Message 6 of 6 in “git-gui: Build even if tclsh is not available”
  1. git-gui: Build even if tclsh is not availablePetr Baudis, May 17, 2007
  2. git-gui: Build even if tclsh is not availablePetr Baudis, May 17, 2007
  3. Shawn O. PearceMay 17, 2007
  4. Petr BaudisMay 17, 2007
  5. Shawn O. PearceMay 17, 2007
  6. Shawn O. PearceMay 17, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.