From: Junio C Hamano <gitster@pobox.com>
To: "Kyle J. McKay" <mackyle@gmail.com>
Cc: Markus Hitter <mah@jump-ing.de>, git@vger.kernel.org
Subject: Re: Git on Mac OS X 10.4.10
Date: Fri, 15 Aug 2014 10:02:46 -0700 [thread overview]
Message-ID: <xmqqbnrl1ya1.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <273241271546c07e692ae93774993f5@74d39fa044aa309eaea14b9f57fe79c> (Kyle J. McKay's message of "Fri, 15 Aug 2014 00:46:11 -0700")
"Kyle J. McKay" <mackyle@gmail.com> writes:
> The below patch does the right thing. Conveniently there's already
> a test for 10.4 and earlier so only a single line need be added.
>
> --Kyle
>
> ---- 8< ----
> Subject: [PATCH] config.mak.uname: set NO_APPLE_COMMON_CRYPTO on older systems
>
> Older MacOS systems prior to 10.5 do not have the CommonCrypto
> support Git uses so set NO_APPLE_COMMON_CRYPTO on those systems.
>
> Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
> ---
> config.mak.uname | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/config.mak.uname b/config.mak.uname
> index 7846bd76..f8e12c96 100644
> --- a/config.mak.uname
> +++ b/config.mak.uname
> @@ -88,6 +88,7 @@ ifeq ($(uname_S),Darwin)
> NEEDS_LIBICONV = YesPlease
> ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
> OLD_ICONV = UnfortunatelyYes
> + NO_APPLE_COMMON_CRYPTO = YesPlease
> endif
> ifeq ($(shell expr "$(uname_R)" : '[15]\.'),2)
> NO_STRLCPY = YesPlease
By the way, can we document this "uname_R on MacOS X" business
nearby, perhaps like this?
-- >8 --
Subject: config.mak.uname: add hint on uname_R for MacOS X
I always have to scratch my head every time I see this cryptic
pattern "[15678]\."; leave a short note to remind the maintainer
and the reviewers.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
config.mak.uname | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/config.mak.uname b/config.mak.uname
index f8e12c9..7e49aca 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -86,6 +86,10 @@ ifeq ($(uname_S),Darwin)
NEEDS_CRYPTO_WITH_SSL = YesPlease
NEEDS_SSL_WITH_CRYPTO = YesPlease
NEEDS_LIBICONV = YesPlease
+ # Note: $(uname_R) gives us the underlying Darwin version.
+ # - MacOS 10.0 = Darwin 1.*
+ # - MacOS 10.x.? = Darwin (x+4).* for (1 <= x)
+ # i.e. "begins with [15678] and the a dot" means "10.4.* or older".
ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
OLD_ICONV = UnfortunatelyYes
NO_APPLE_COMMON_CRYPTO = YesPlease
next prev parent reply other threads:[~2014-08-15 17:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 12:13 Git on Mac OS X 10.4.10 Markus Hitter
2014-08-14 14:39 ` Torsten Bögershausen
2014-08-14 18:39 ` Markus Hitter
2014-08-14 22:29 ` Jonathan Nieder
2014-08-15 12:48 ` Markus Hitter
2014-08-14 23:18 ` Junio C Hamano
2014-08-15 7:46 ` Kyle J. McKay
2014-08-15 9:39 ` Eric Sunshine
2014-08-15 12:34 ` Markus Hitter
2014-08-15 16:29 ` Junio C Hamano
2014-08-15 17:02 ` Junio C Hamano [this message]
2014-08-15 17:56 ` Kyle J. McKay
2014-08-15 18:04 ` Junio C Hamano
2014-08-15 18:51 ` Kyle J. McKay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqbnrl1ya1.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mackyle@gmail.com \
--cc=mah@jump-ing.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.