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

Re: Git on MSys (or how to make it easy for Windows users to compile git)

From
TSTorgil Svensson <torgil.svensson@gmail.com>
Date
Aug 5, 2007, 23:41 UTC
Message-ID
<e7bda7770708051641h15bd38abo659e74322e6232c0@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.64.0708040123560.14781@racer.site>
On 8/4/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
Hi
Thank you for your reply.
Show 8 quoted lines
> > 1. Unpacking in a folder that have space in it's path gave various
> > errors of this type (here, msysGit is unpacked on the desktop
> > C:\Documents and settings\.... ) : make[1]: C:/Documents: Command not
> > found
>
> Good point.  Did you fix it?  If so, where is the patch?  Or even better,
> what is your account on repo.or.cz so I can add it, and you can commit
> your fix yourself?

I didn't. I bypassed it (unpacked to C:\). I found the bug however (missed quoting):

$ diff -urN msysGit msysGit-fixed diff -urN msysGit/git/git-gui/Makefile msysGit-fixed/git/git-gui/Makefile --- msysGit/git/git-gui/Makefile Fri Aug 3 15:00:16 2007 +++ msysGit-fixed/git/git-gui/Makefile Mon Aug 6 01:22:53 2007

@@ -4,7 +4,7 @@
 #

 GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
-       @$(SHELL_PATH) ./GIT-VERSION-GEN
+       @"$(SHELL_PATH)" ./GIT-VERSION-GEN
 -include GIT-VERSION-FILE

 uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
diff: msysGit/git/gitweb/test/M?¤rchen: No such file or directory
diff: msysGit-fixed/git/gitweb/test/M?¤rchen: No such file or directory


I'll make an account and send you the details when I get an public
SSH-key, haven't done that in windows before. Can I share private key
on both windows and Linux box?


> > 2. rxvt-terminal had some freezes
> I did not experience those.  Could you research further?

Some observations:
"git log" on mingw archive trigger this every time for me (hangs on
different places each time).

"cmd" terminal (msys.bat) seems to pipe "git log" to less while rxvt
terminal outputs lots of text very fast (msys-rxvt.bat) and freezes.
Output:ing lots of text itself doesn't seem to be an issue ("make -d"
doesn't freeze and outputs _lots_ of text)


> > 3. "gitk --all" said "Error reading commits: fatal: write failure on
> > stdout: Invalid argument"
> I did not even bother testing gitk...  Any idea what is going wrong?

The fconfigure -blocking command seems to be not supported under
mingw. This patch makes the error go away. Another issue that is
probably related to this is that gitk doesn't list all commits. I
don't know how to solve this properly.

diff --git a/gitk b/gitk
index 43d88ca..69e5149 100755
--- a/gitk
+++ b/gitk
@@ -147,7 +147,7 @@ proc getcommitlines {fd view}  {
        unset commfd($view)
        notbusy $view
        # set it blocking so we wait for the process to terminate
-       fconfigure $fd -blocking 1
+       #fconfigure $fd -blocking 1
        if {[catch {close $fd} err]} {
            set fv {}
            if {$view != $curview} {


$ grep '\-blocking' gitk | wc -l
     10

(all sets blocking to 0 except for the one in getcommitlines above)



> > 4. Mouse-wheel didn't work to scroll views in gitk
>
> Again, no idea why.  Could you please investigate?

Tough one since I didn't take the tcl tk debugging class. Doesn't work
for me in cygwin either. I don't know if it's implemented at all. Does
it work for anyone else?


//Torgil
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 32 of 53 in “Git on MSys (or how to make it easy for Windows users to compile git)”
  1. Johannes SchindelinAug 2, 2007
  2. Dmitry KakurinAug 3, 2007
  3. Marius Storm-OlsenAug 3, 2007
  4. Dmitry KakurinAug 3, 2007
  5. Johannes SchindelinAug 3, 2007
  6. Dmitry KakurinAug 3, 2007
  7. Johannes SchindelinAug 3, 2007
  8. Johannes SchindelinAug 3, 2007
  9. Marius Storm-OlsenAug 3, 2007
  10. Johannes SchindelinAug 3, 2007
  11. Johannes SchindelinAug 3, 2007
  12. Marius Storm-OlsenAug 3, 2007
  13. Johannes SchindelinAug 3, 2007
  14. Marius Storm-OlsenAug 3, 2007
  15. Johannes SchindelinAug 3, 2007
  16. Marius Storm-OlsenAug 3, 2007
  17. Johannes SchindelinAug 3, 2007
  18. Marius Storm-OlsenAug 3, 2007
  19. Mike PapeAug 3, 2007
  20. Marius Storm-OlsenAug 3, 2007
  21. Johannes SchindelinAug 3, 2007
  22. Marius Storm-OlsenAug 3, 2007
  23. Mike PapeAug 3, 2007
  24. Marius Storm-OlsenAug 3, 2007
  25. Johannes SchindelinAug 3, 2007
  26. Johannes SchindelinAug 3, 2007
  27. Johannes SchindelinAug 3, 2007
  28. Dmitry KakurinAug 3, 2007
  29. Johannes SchindelinAug 3, 2007
  30. Torgil SvenssonAug 4, 2007
  31. Johannes SchindelinAug 4, 2007
  32. Torgil SvenssonAug 5, 2007
  33. Johannes SchindelinAug 6, 2007
  34. Marius Storm-OlsenAug 6, 2007
  35. Johannes SchindelinAug 6, 2007
  36. Marius Storm-OlsenAug 6, 2007
  37. Alex RiesenAug 9, 2007
  38. Johannes SchindelinAug 9, 2007
  39. Alex RiesenAug 9, 2007
  40. Torgil SvenssonAug 6, 2007
  41. Johannes SchindelinAug 6, 2007
  42. Marius Storm-OlsenAug 3, 2007
  43. Marius Storm-OlsenAug 3, 2007
  44. Nguyen Thai Ngoc DuyAug 3, 2007
  45. Marius Storm-OlsenAug 3, 2007
  46. Nguyen Thai Ngoc DuyAug 3, 2007
  47. Marius Storm-OlsenAug 3, 2007
  48. Nguyen Thai Ngoc DuyAug 3, 2007
  49. Marius Storm-OlsenAug 3, 2007
  50. Johannes SchindelinAug 3, 2007
  51. Nguyen Thai Ngoc DuyAug 3, 2007
  52. Johannes SchindelinAug 3, 2007
  53. Matthieu MoyAug 3, 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.