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

Re: [PATCH v3 4/4] exec_cmd: RUNTIME_PREFIX on some POSIX systems

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 27, 2017, 23:42 UTC
Message-ID
<alpine.DEB.2.21.1.1711280039010.6482@virtualbox>
In-Reply-To
<20171127164055.93283-5-dnj@google.com>
Hi Dan,
On Mon, 27 Nov 2017, Dan Jacques wrote:
Show 24 quoted lines
> diff --git a/gettext.c b/gettext.c
> index db727ea02..6b64d5c2e 100644
> --- a/gettext.c
> +++ b/gettext.c
> @@ -2,7 +2,8 @@
>   * Copyright (c) 2010 Ævar Arnfjörð Bjarmason
>   */
>  
> -#include "git-compat-util.h"
> +#include "cache.h"
> +#include "exec_cmd.h"
>  #include "gettext.h"
>  #include "strbuf.h"
>  #include "utf8.h"
> @@ -157,10 +158,11 @@ static void init_gettext_charset(const char *domain)
>  
>  void git_setup_gettext(void)
>  {
> -	const char *podir = getenv("GIT_TEXTDOMAINDIR");
> +	const char *podir = getenv(GIT_TEXT_DOMAIN_DIR_ENVIRONMENT);
>  
>  	if (!podir)
> -		podir = GIT_LOCALE_PATH;
> +		podir = system_path(GIT_LOCALE_PATH);
In Git for Windows, we have an almost identical patch:
	https://github.com/git-for-windows/git/commit/bdd739bb2b0b

We just guard the call to system_path() behind a test whether podir is already absolute, but these days, system_path() does that itself.

I am too little of a Perl expert to be helpful with the other patches, but I would gladly runa build & test on Windows if you direct me to an easily-pullable branch.

Ciao, Johannes

Previous: Dan JacquesNext: Dan Jacques
Message 5 of 12 in “RUNTIME_PREFIX relocatable Git”
  1. 0/4 RUNTIME_PREFIX relocatable GitDan Jacques, Nov 27, 2017
  2. 3/4 Makefile: add Perl runtime prefix supportDan Jacques, Nov 27, 2017
  3. 1/4 Makefile: generate Perl header from template fileDan Jacques, Nov 27, 2017
  4. 4/4 exec_cmd: RUNTIME_PREFIX on some POSIX systemsDan Jacques, Nov 27, 2017
  5. Johannes SchindelinNov 27, 2017
  6. Dan JacquesNov 28, 2017
  7. Junio C HamanoNov 28, 2017
  8. Johannes SchindelinNov 28, 2017
  9. Question regarding "next" mergeDan Jacques, Nov 29, 2017
  10. Junio C HamanoNov 29, 2017
  11. Johannes SchindelinNov 28, 2017
  12. 2/4 Makefile: add support for "perllibdir"Dan Jacques, Nov 27, 2017

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.