delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/06/17:03:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: git gui can't find /usr/share ??
Date: Tue, 6 May 2008 21:02:23 +0000 (UTC)
Lines: 46
Message-ID: <loom.20080506T205147-846@post.gmane.org>
References: <fvqfb5$ggv$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Michael Kairys <kairys <at> comcast.net> writes:

> 
> Trying to learn more about git by installing it and poking around... If I 
> try to run git gui I get:
> 
> bitmap "c:\cygwin\usr\share\git-gui\lib/git-gui.ico" not defined
>     while executing
> "wm iconbitmap . -default $oguilib/git-gui.ico"
>     invoked from within
> "if {[is_Windows]} {
>  wm iconbitmap . -default $oguilib/git-gui.ico
> }"
>     (file "D:\Local\Cygwin\bin\git-gui" line 524)
> 
> As indicated by the last line my Cygwin installation is not in C:\Cygwin but 
> rather D:\Local\Cygwin. I have read what getting-started documentation I 
> could find but I have not found a way to tell git-gui not to look in 
> C:\Cygwin.

Bummer.  This is most likely an artifact of cygwin's tcl implementation being a 
native windows program that doesn't always understand cygwin paths properly.  
It looks like the git build process tries to compensate for the brain-damaged 
path handling in cygwin's tcl by setting $oguilib to the hard-coded native 
Windows path of the build machine (ie. my computer's location, in 
c:\cygwin\usr\share) that corresponds to the desired destination cygwin path 
(ie. /usr/share, regardless of where that is mounted for whatever user is 
installing it), rather than sticking to posix paths.  This works great when 
building and installing git yourself, but falls apart when building it for the 
cygwin distribution.

I personally haven't used git-gui, and am not that fluent in tcl, so I'm not 
sure whether I will be able to come up with a patch.  But I'll add it to my 
todo list.  In the meantime, you may be better off raising this issue on the 
git list, to get a faster response from the actual git-gui maintainer.  I also 
wonder if gitk will fall apart in the same manner, since it is another tcl-
based git program.

However, most of git is not tcl based, so hopefully this doesn't stop you from 
learning other parts of git.  Also, you can try installing the 'tig' package 
for browsing git history without the need for tcl.

-- 
Eric Blake
volunteer cygwin git package maintainer



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019