From: "Shawn O. Pearce" <spearce@spearce.org>
To: Mark Levedahl <mdl123@verizon.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-gui/Makefile - Don't convert gg_libdir on Cygwin
Date: Wed, 16 Jan 2008 01:40:12 -0500 [thread overview]
Message-ID: <20080116064012.GO24004@spearce.org> (raw)
In-Reply-To: <1199572355-2720-1-git-send-email-mdl123@verizon.net>
Mark Levedahl <mdl123@verizon.net> wrote:
> 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.
next prev parent reply other threads:[~2008-01-16 6:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-05 22:32 [PATCH] git-gui/Makefile - Don't convert gg_libdir on Cygwin Mark Levedahl
2008-01-16 6:40 ` Shawn O. Pearce [this message]
2008-01-17 1:09 ` Mark Levedahl
2008-01-18 3:50 ` [PATCH] git-gui/Makefile - Handle $DESTDIR " Mark Levedahl
2008-01-18 4:01 ` Shawn O. Pearce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080116064012.GO24004@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=mdl123@verizon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).