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

Re: [PATCH] Bugfix: undefined htmldir in config.mak.autogen

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 19, 2013, 22:59 UTC
Message-ID
<7v8v6j52qf.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1be0a520b99fbfecd7255c1d26753015612856b3.1361272864.git.worldhello.net@gmail.com>
Jiang Xin <worldhello.net@gmail.com> writes:
Show 14 quoted lines
> Html documents will be installed to root dir (/) no matter what prefix
> is set, if run these commands before `make` and `make install-html`:
>
>     $ make configure
>     $ ./configure --prefix=<PREFIX>
>
> After the installation, all the html documents will copy to rootdir (/),
> and:
>
>     $ git --html-path
>     <PREFIX>
>
>     $ git help -w something
>     fatal: '<PREFIX>': not a documentation directory.

I am not sure if this description is correct. The generated configure seems to set

	datarootdir='${prefix}/share'
	htmldir='${docdir}'
        docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
so it is likely you would get not <PREFIX> but <PREFIX>/share, no?

In the main Makefile, we set htmldir to "share/doc/git-doc" and that is supposed to be relative to PREFIX, so the above will be wrong in multiple ways (it is an absolute path with <PREFIX>/ in front, and it ends not with share/doc/git-doc but with share/doc/git).

And the worst part is that having to know that the file needs to export docdir and PACKAGE_TARNAME feels to me that we are tying ourselves to too much detail in the internal implementation detail of versions of autoconf we happen to have for testing this change.

I am inclined to suggest that we probably should
 * revert fc1c5415d69d (Honor configure's htmldir switch,
   2013-02-02); and
 * fix generated "./configure --help" not to suggest that --htmldir
   can be overriden from its command line;
instead of piling on a broken "fix" like this one top of it.
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 9 in “Bugfix: undefined htmldir in config.mak.autogen”
  1. Bugfix: undefined htmldir in config.mak.autogenJiang Xin, Feb 19, 2013
  2. Junio C HamanoFeb 19, 2013
  3. Junio C HamanoFeb 19, 2013
  4. Junio C HamanoFeb 19, 2013
  5. Jiang XinFeb 20, 2013
  6. Stefano LattariniFeb 20, 2013
  7. Jiang XinFeb 20, 2013
  8. Stefano LattariniFeb 20, 2013
  9. John KeepingFeb 20, 2013

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.