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

Re: [PATCH] gitweb: fill in gitweb configuration by Makefile

From
Junio C Hamano <junkio@cox.net>
Date
Jul 31, 2006, 06:41 UTC
Message-ID
<7vslki9sy9.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060731035737.24181.qmail@web31803.mail.mud.yahoo.com>

- Luben Tuikov <ltuikov@yahoo.com> writes:

Show 13 quoted lines
> -- Martin Waitz <tali@admingilde.org> wrote:
>> Generate gitweb/gitweb.cgi to reduce the need to patch gitweb.cgi by
>> the end user.
>> The GIT installation directory and version are already known by the
>> Makefile, they can be inserted directly into gitweb.
>> All other gitweb configuration parameters can now be specified
>> by providing GITWEB_* variables while building GIT.
>> These are described in gitweb/README.
>
> NACK.
>
> I don't like it.  While this method works, it is too much effort
> to have to run make to do this, plus it pollutes your tree.

I do not quite agree with this reasoning. With that definition of "polluting your tree", all build of git-*.{sh,perl,py} are polluting your tree. If compile/install time customization is handier I do not have problem doing it that way.

> Instead, what you can do is make gitweb.cgi read a text file
> from . which has those variables defined.

I think there was a discussion on having a configuration file for gitweb (not per-repository .git/config but installation wide configuration file). If I recall correctly, the killer argument against it was that you would need to bootstrap the process by somehow telling gitweb.cgi where to read from that configuration file, and if you are going to customize gitweb.cgi before installation for the site that way, then giving a bit more configuration in gitweb.cgi (like Martin did in the patch we are discussion) is simpler.

Show 5 quoted lines
>   - no need to run make to build "gitweb.cgi" or "gitweb.pl" whatever
>     you call it,
>   - no need to pollute your tree with site defined variables,
>   - simple copy (cp) would install a working version, instead of
>     the current cp + patch with local settings method.

While I agree all of these "no need to" makes things slightly simpler, I do not think it is such a big deal -- we are building git-*.{sh,perl,py,c} anyway.

Previous: Luben TuikovNext: Martin Waitz
Message 8 of 13 in “gitweb: fill in gitweb configuration by Makefile”
  1. gitweb: fill in gitweb configuration by MakefileMartin Waitz, Jul 30, 2006
  2. Junio C HamanoJul 31, 2006
  3. Martin WaitzJul 31, 2006
  4. Jakub NarebskiJul 31, 2006
  5. Martin WaitzAug 1, 2006
  6. Luben TuikovJul 31, 2006
  7. Luben TuikovJul 31, 2006
  8. Junio C HamanoJul 31, 2006
  9. Martin WaitzJul 31, 2006
  10. Johannes SchindelinJul 31, 2006
  11. Luben TuikovJul 31, 2006
  12. Jon LoeligerJul 31, 2006
  13. Jakub NarebskiJul 31, 2006

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.