Installing git-gui (2.27.0)
Hi,
This is what I found when trying to install the whole git package on the NonStop TNS/E platform:
DEST /usr/local/share/git-gui/lib
INSTALL 644 tclIndex
install: cannot stat 'lib/tclIndex': No such file or directory Makefile:293: recipe for target 'install' failed
I’m not sure why we are only hitting this now at 2.27.0. We don’t use git-gui anyway on this platform as it has no GUI interface. It looks like the install script runs auto_mkindex that actually does nothing in our case, so lib/tclIndex is not built.
This does block the install from completing successfully. To bypass, I added the following:
index f10caedaa7..943febaf75 100644
git-gui/Makefile +1 -0
@@ -256,6 +256,7 @@ lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS $(foreach p,$(PRELOAD_FILES),source $p\;) \ auto_mkindex lib $(patsubst lib/%,%,$(sort $(ALL_LIBFILES))) \ | $(TCL_PATH) $(QUIET_2DEVNULL); then : ok; \ + echo >>$@ ; \ else \ echo >&2 " * $(TCL_PATH) failed; using unoptimized loading"; \ rm -f $@ ; \
Regards,
Randall
-- Brief whoami:
NonStop developer since approximately 211288444200000000 UNIX developer since approximately 421664400
-- In my real life, I talk too much.
Hi Randall,
Quoted 23 lines · Randall S. Becker
Hi,
This is what I found when trying to install the whole git package on the NonStop TNS/E platform:
DEST
/usr/local/share/git-gui/lib
INSTALL 644 tclIndex
install: cannot stat 'lib/tclIndex': No such file or directory Makefile:293: recipe for target 'install' failedI’m not sure why we are only hitting this now at 2.27.0. We don’t use git-gui anyway on this platform as it has no GUI interface. It looks like the install script runs
auto_mkindexthat actually does nothing in our case, so lib/tclIndex is not built.This does block the install from completing successfully. To bypass, I added the following:
index
f10caedaa7..943febaf75100644
git-gui/Makefile lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS · line 262
Quoted 7 lines
git-gui/Makefile +1
-0@@ -256,6 +256,7 @@ lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS $(foreach p,$(PRELOAD_FILES),source $p\;) \ auto_mkindex lib $(patsubst lib/%,%,$(sort $(ALL_LIBFILES))) \ | $(TCL_PATH) $(QUIET_2DEVNULL); then : ok; \ + echo >>$@ ; \ else \ echo >&2 " * $(TCL_PATH) failed; using unoptimized loading"; \ rm -f $@ ; \
IIUC, this is a NonStop-specific problem. This fix shouldn't go in the git-gui 'master', right?
Signature · 2 lines
Regards, Pratyush Yadav
On, June 23, 2020 8:47 AM, Pratyush Yadav:
Quoted 19 lines · Randall S. Becker
Quoted 18 lines
Hi,
This is what I found when trying to install the whole git package on the NonStop TNS/E platform:
DEST
/usr/local/share/git-gui/lib
INSTALL 644 tclIndex
install: cannot stat 'lib/tclIndex': No such file or directory Makefile:293: recipe for target 'install' failedI’m not sure why we are only hitting this now at 2.27.0. We don’t use git-gui anyway on this platform as it has no GUI interface. It looks like the install script runs
auto_mkindexthat actually does nothing in our case, so lib/tclIndex is not built.This does block the install from completing successfully. To bypass, I added the following:
Quoted 10 lines
git-gui/Makefile lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS · line 261
Quoted 10 lines
index
f10caedaa7..943febaf75100644git-gui/Makefile +1
-0@@ -256,6 +256,7 @@ lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS $(foreach p,$(PRELOAD_FILES),source $p\;) \ auto_mkindex lib $(patsubst lib/%,%,$(sort $(ALL_LIBFILES))) \ | $(TCL_PATH) $(QUIET_2DEVNULL); then : ok; \ + echo >>$@ ; \ else \ echo >&2 " * $(TCL_PATH) failed; using unoptimized loading";
\
Quoted 4 lines
git-gui/Makefile lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS · line 262
Quoted 2 lines
git-gui/Makefile +0
-0rm -f $@ ; \IIUC, this is a NonStop-specific problem. This fix shouldn't go in the
git-gui
Quoted 1 line
'master', right?
The component is still part of the git build, so unless it can be severed by configuration, it should go into 'master'. The Makefile should still generate a tclIndex, which the foreach is not guaranteed to do, apparently.
Randall