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

Re: [PATCH] Mac OS X 10.5 does not require the OLD_ICONV flag set

From
Benoit SIGOURE <tsuna@lrde.epita.fr>
Date
Nov 2, 2007, 09:39 UTC
Message-ID
<B858412A-853A-4660-BA4B-F9751E4AAEAE@lrde.epita.fr>
In-Reply-To
<20071102093028.GA29699@glandium.org>
On Nov 2, 2007, at 10:30 AM, Mike Hommey wrote:
Show 32 quoted lines
> On Fri, Nov 02, 2007 at 02:03:52AM -0700, Junio C Hamano  
> <gitster@pobox.com> wrote:
>> Blake Ramsdell <blaker@gmail.com> writes:
>>
>>> Signed-off-by: Blake Ramsdell <blaker@gmail.com>
>>> ---
>>>  Makefile |    4 +++-
>>>  1 files changed, 3 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index 71479a2..5d83756 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -401,7 +401,9 @@ endif
>>>  ifeq ($(uname_S),Darwin)
>>>  	NEEDS_SSL_WITH_CRYPTO = YesPlease
>>>  	NEEDS_LIBICONV = YesPlease
>>> -	OLD_ICONV = UnfortunatelyYes
>>> +	ifneq ($(uname_R),9.0.0)
>>> +		OLD_ICONV = UnfortunatelyYes
>>> +	endif
>>>  	NO_STRLCPY = YesPlease
>>>  	NO_MEMMEM = YesPlease
>>>  endif
>>
>> I do not have an access to a Darwin box, but do you mean 10.5
>> gives 9.0.0 as uname_R?
>
> Be it that or not, it looks wrong to me to check the Darwin version to
> know what to use. Do you rely on the Linux kernel version to know  
> whether
> iconv is present ?

It's very different, on OSX you don't change your own kernel as you want, the kernel isn't a standalone component, it comes packaged with the entire system of MacOSX. When you do an update to 10.5 (aka Leopard) you will have a new version of iconv so you're guaranteed that someone with 10.5 has a system-wide iconv that is not OLD_ICONV.

-- 
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory
Previous: Mike HommeyNext: Mike Hommey
Message 7 of 15 in “Mac OS X 10.5 does not require the OLD_ICONV flag set”
  1. Mac OS X 10.5 does not require the OLD_ICONV flag setBlake Ramsdell, Nov 2, 2007
  2. Fixed a gcc 4.0.1 complaint about an uninitialized variableBlake Ramsdell, Nov 2, 2007
  3. Junio C HamanoNov 2, 2007
  4. Junio C HamanoNov 2, 2007
  5. Blake RamsdellNov 2, 2007
  6. Mike HommeyNov 2, 2007
  7. Benoit SIGOURENov 2, 2007
  8. Mike HommeyNov 2, 2007
  9. David SymondsNov 2, 2007
  10. Junio C HamanoNov 2, 2007
  11. David SymondsNov 2, 2007
  12. Blake RamsdellNov 2, 2007
  13. Removed OLD_ICONV in favor of checking _LIBICONV_VERSION directlyBlake Ramsdell, Nov 3, 2007
  14. Junio C HamanoNov 3, 2007
  15. Blake RamsdellNov 3, 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.