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

Re: [PATCH] Added configure options --with-tcltk/--without-tcltk.

From
EREygene Ryabinkin <rea-git@codelabs.ru>
Date
Mar 27, 2007, 11:07 UTC
Message-ID
<20070327110714.GA14837@codelabs.ru>
In-Reply-To
<7vtzw7nej6.fsf@assigned-by-dhcp.cox.net>
Junio, good day.
Tue, Mar 27, 2007 at 03:53:33AM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> > +ifeq ($(TCLTK_PATH),)
> > +NO_TCLTK=YesPlease
> > +endif
> > +
> 
> This seems to contradict the log message that makes these two
> options sound as if they are not dependent of each other.
OK, will add a sentence about the dependency to the log.
Show 21 quoted lines
> 
> > @@ -918,10 +930,16 @@ install: all
> >  	$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(bindir_SQ)'
> >  	$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(gitexecdir_SQ)'
> >  	$(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
> > -	$(INSTALL) git$X gitk '$(DESTDIR_SQ)$(bindir_SQ)'
> > +	$(INSTALL) git$X '$(DESTDIR_SQ)$(bindir_SQ)'
> > +ifndef NO_TCLTK
> > +	sed -i .bak -e'1,3s|^exec .* "$$0"|exec '"$(TCLTK_PATH)"' "$$0"|' gitk && rm -f gitk.bak
> > +	$(INSTALL) gitk '$(DESTDIR_SQ)$(bindir_SQ)'
> > +endif
> 
> This is a no-no. "make $args; su make $args install" should
> never cause anything built by root with the second invocation of
> the make command.  Don't assume you can write into the build
> directory while you are running "make install" (root user can be
> mapped nobody on a nfs mounted build directory, while the local
> target directory is writable by it).
> Also please quote $(TCLTK_PATH) like everybody else does in the
> Makefile.  For that purpose, I think the way $(SCRIPT_SH) are
> built using $(SHELL_PATH_SQ) can be learned from.
OK.
> I suspect that the change to allow not installing gitk/git-gui
> and the change to allow using specific "wish" are two
> independent tasks.

But then the configure will be first teached to recognise only '--with-tcltk/--without-tcltk' and the second modification will add '--with-tcltk=/path/to/wish', right?

Show 19 quoted lines
> You seem to have a grip on the use of
> conditional in Makefile to do the former task, and I do not
> think there is any need for further commenting.
> 
> For the latter task, you can probably do something like this:
> 
> 	gitk-wish: gitk 
>         	rm -f $@+ $@
> 		sed -e '3s| wish | ...' <gitk >$@+
>                 mv $@+ $@
> 
> 	all:: gitk-wish
> 	install: all
>         	...
>                 $(INSTALL) gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
> 
> Also you need to rebuild gitk-wish when the builder gives
> different TCLTK_PATH; I suspect the easiest way is tack it to
> TRACK_CFLAGS and make gitk-wish depend on GIT-CFLAGS.
OK, will try to provide the splitted patches.
-- 
Eygene
Previous: Junio C HamanoNext: Junio C Hamano
Message 33 of 47 in “Added make options NO_GUI and WITH_P4IMPORT.”
  1. Added make options NO_GUI and WITH_P4IMPORT.Eygene Ryabinkin, Mar 20, 2007
  2. Jakub NarebskiMar 21, 2007
  3. Eygene RyabinkinMar 21, 2007
  4. Johannes SchindelinMar 21, 2007
  5. Eygene RyabinkinMar 21, 2007
  6. Johannes SchindelinMar 21, 2007
  7. Paolo BonziniMar 21, 2007
  8. Eygene RyabinkinMar 21, 2007
  9. Paolo BonziniMar 21, 2007
  10. Alex RiesenMar 21, 2007
  11. Jakub NarebskiMar 24, 2007
  12. Eygene RyabinkinMar 21, 2007
  13. Johannes SchindelinMar 21, 2007
  14. Eygene RyabinkinMar 21, 2007
  15. Junio C HamanoMar 21, 2007
  16. Eygene RyabinkinMar 26, 2007
  17. Added options NO_TCLTK, WITH_P4IMPORT and --with-tcltk/--without-tcltk.Eygene Ryabinkin, Mar 26, 2007
  18. Junio C HamanoMar 26, 2007
  19. Add the WITH_P4IMPORT knob to the Makefile.Eygene Ryabinkin, Mar 27, 2007
  20. Junio C HamanoMar 27, 2007
  21. Eygene RyabinkinMar 27, 2007
  22. Added git-p4 package to the list of git RPMs.Eygene Ryabinkin, Mar 27, 2007
  23. Remove unused WITH_OWN_SUBPROCESS_PY from RPM specBrian Gernhardt, Mar 27, 2007
  24. Junio C HamanoApr 4, 2007
  25. Eygene RyabinkinApr 5, 2007
  26. Jakub NarebskiMar 26, 2007
  27. Junio C HamanoMar 26, 2007
  28. Eygene RyabinkinMar 26, 2007
  29. Junio C HamanoMar 27, 2007
  30. Eygene RyabinkinMar 27, 2007
  31. Added configure options --with-tcltk/--without-tcltk.Eygene Ryabinkin, Mar 27, 2007
  32. Junio C HamanoMar 27, 2007
  33. Eygene RyabinkinMar 27, 2007
  34. Junio C HamanoMar 28, 2007
  35. Add --with-tcltk and --without-tcltk to configure.Eygene Ryabinkin, Mar 28, 2007
  36. Added Tcl/Tk interpreter path rewriting for the GUI tools.Eygene Ryabinkin, Mar 28, 2007
  37. Junio C HamanoMar 28, 2007
  38. Eygene RyabinkinMar 29, 2007
  39. Junio C HamanoMar 29, 2007
  40. Eygene RyabinkinMar 29, 2007
  41. Junio C HamanoMar 29, 2007
  42. Eygene RyabinkinMar 29, 2007
  43. Tom PrinceMar 29, 2007
  44. Eygene RyabinkinMar 29, 2007
  45. Eliminate checks of user-specified Tcl/Tk interpreter.Eygene Ryabinkin, Mar 29, 2007
  46. Added correct Python path to the RPM specfile.Eygene Ryabinkin, Mar 29, 2007
  47. Junio C HamanoMar 26, 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.