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

Re: [PATCH v7 1/2] config.mak.uname: Darwin: define NO_GETTEXT for OS X 10.9 and later

From
Jeff King <peff@peff.net>
Date
Nov 24, 2015, 20:34 UTC
Message-ID
<20151124203453.GB7174@sigill.intra.peff.net>
In-Reply-To
<5652FF18.20602@web.de>
On Mon, Nov 23, 2015 at 12:57:12PM +0100, Torsten Bögershausen wrote:
Show 21 quoted lines
> >+	# MacOS 10.7 Lion and higher
> >  	ifeq ($(shell test "`expr "$(uname_R)" : '\([0-9][0-9]*\)\.'`" -ge 11 && echo 1),1)
> >  		HAVE_GETDELIM = YesPlease
> >  	endif
> >+	# MacOS 10.9 Mavericks and higher
> >+	ifeq ($(shell test "`expr "$(uname_R)" : '\([0-9][0-9]*\)\.'`" -ge 13 && echo 1),1)
> >+		NO_GETTEXT = YesPlease
> >+	endif
> >  	NO_MEMMEM = YesPlease
> >  	USE_ST_TIMESPEC = YesPlease
> >  	HAVE_DEV_TTY = YesPlease
> Unless I'm wrong, no Mac OS X had libintl.h, and the "unwritten agreement
> (?)" was
> that either
> a) libintl ist installed in some way (fink, mac ports, brew, other ways)
> or
> b) people use
> NO_GETTEXT=yes make
> 
> Doesn't this patch close the door for b), making it impossible to build Git
> against libintl ?
I think the right way to do (b) is:
  make NO_GETTEXT=Yes

which will override anything we do in config.mak.uname (and likewise, anything from autoconf will override it, if we have a test there).

Still, it will be a surprise to packagers in (a), who assume that installing libintl and then building git is enough to have gettext support (now they would actively need to override NO_GETTEXT).

-Peff
Previous: Torsten BögershausenNext: larsxschneider@gmail.com
Message 4 of 7 in “Add Travis CI support”
  1. 0/2 Add Travis CI supportlarsxschneider@gmail.com, Nov 23, 2015
  2. 1/2 config.mak.uname: Darwin: define NO_GETTEXT for OS X 10.9 and laterlarsxschneider@gmail.com, Nov 23, 2015
  3. Torsten BögershausenNov 23, 2015
  4. Jeff KingNov 24, 2015
  5. 2/2 Add Travis CI supportlarsxschneider@gmail.com, Nov 23, 2015
  6. Jeff KingNov 24, 2015
  7. Lars SchneiderNov 24, 2015

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.