[MacPorts] #64249: git gui opens a window with no usable content

MacPorts noreply at macports.org
Tue Dec 21 06:15:10 UTC 2021


#64249: git gui opens a window with no usable content
---------------------+----------------------
  Reporter:  akimd   |      Owner:  ci42
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.7.1
Resolution:          |   Keywords:  monterey
      Port:  git     |
---------------------+----------------------

Comment (by akimd):

 Hi Christopher,
 git gui is hard-coded to use its own Wish:
 {{{
 $ cat /opt/local/libexec/git-core/git-gui
 #!/bin/sh
 if test "z$*" = zversion ||
    test "z$*" = z--version
 then
         echo 'git-gui version 0.21.0.99.gdf4f9e'
 else
         libdir="${GIT_GUI_LIB_DIR:-/opt/local/share/git-gui/lib}"
         exec "$libdir/Git Gui.app/Contents/MacOS/Wish" "$0" "$@"
 fi
 }}}
 But this Wish (which is a universal binary) appears to be doing something
 special.  Just replacing it with macport's does not work.  It execs

 {{{
 exec '/opt/local/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish'
 /opt/local/libexec/git-core/git-gui
 }}}

 Yes, it is passing the above shell script to that Wish, which appears to
 handle it in a special way.  The regular wish won't grok it.
 {{{
 $ /opt/local/bin/wish /opt/local/libexec/git-core/git-gui
 Error in startup script: invalid bareword "test"
 in expression "test";
 should be "$test" or "{test}" or "test(...)" or ...
     (parsing expression "test")
     invoked from within
 "if test "z$*" = zversion ||"
     (file "/opt/local/libexec/git-core/git-gui" line 2)
 }}}

 I have no idea what needs to be passed to it.  My best try won't work.

 {{{
 $ /opt/local/bin/wish /opt/local/share/git-gui/lib/git-gui.tcl -- browser
 usage: /opt/local/share/git-gui/lib/git-gui.tcl [{blame|browser|citool}]
 }}}

 I don't understand what it wants and how my command line is incorrect.

-- 
Ticket URL: <https://trac.macports.org/ticket/64249#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list