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

Re: [PATCH] git-gui/Makefile - Don't convert gg_libdir on Cygwin

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 16, 2008, 06:40 UTC
Message-ID
<20080116064012.GO24004@spearce.org>
In-Reply-To
<1199572355-2720-1-git-send-email-mdl123@verizon.net>
Mark Levedahl <mdl123@verizon.net> wrote:
Show 5 quoted lines
> gg_libdir was converted to an absolute Windows path as a remnant of
> logic to check for relative / absolute location of libraries, but that
> does not work on Cygwin. Converting gg_libdir to a Windows path has the
> nasty side-effect that it cannot be prefixed with $DESTDIR, and this
> precludes installing to a staging directory. So, don't convert it.
Hmmph.  That bites.
>  ifeq ($(uname_O),Cygwin)
>  	GITGUI_SCRIPT := `cygpath --windows --absolute "$(GITGUI_SCRIPT)"`
> -	gg_libdir := $(shell cygpath --windows --absolute "$(gg_libdir)")
>  else

The reason I'm doing the UNIX->Windows conversion here is I run git-gui on a pure Win32 Tcl/Tk build, one that is a lot more recent than the version that ships as a Cygwin package. The pure Win32 Tcl/Tk cannot read UNIX paths, so I cannot allow libdir to be a UNIX path in that case.

Now earlier we used to use relative paths on Windows to find the libdir at runtime, but we don't do that anymore either, and I'm not really sure why. In theory it should still work to make it relative when possible, and then my installation with the more native Tcl/Tk would work just fine.

I guess I'm willing to apply your patch and carry the reverse of your patch as a local-only hack for my needs, but I wonder if anyone else is also using git-gui on Cygwin with a pure Win32 Tcl/Tk build...

-- 
Shawn.
Previous: Mark LevedahlNext: Mark Levedahl
Message 2 of 5 in “git-gui/Makefile - Don't convert gg_libdir on Cygwin”
  1. git-gui/Makefile - Don't convert gg_libdir on CygwinMark Levedahl, Jan 5, 2008
  2. Shawn O. PearceJan 16, 2008
  3. Mark LevedahlJan 17, 2008
  4. git-gui/Makefile - Handle $DESTDIR on CygwinMark Levedahl, Jan 18, 2008
  5. Shawn O. PearceJan 18, 2008

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.