From: Junio C Hamano <junkio@cox.net>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: merlyn@stonehenge.com (Randal L. Schwartz), git@vger.kernel.org
Subject: Re: no "uname -o" on Mac OSX
Date: Sun, 09 Oct 2005 12:27:00 -0700 [thread overview]
Message-ID: <7voe5yebjv.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <86k6gnm0sz.fsf@blue.stonehenge.com> (Randal L. Schwartz's message of "09 Oct 2005 03:39:40 -0700")
merlyn@stonehenge.com (Randal L. Schwartz) writes:
> Recently, a change was made to git/Makefile to invoke "uname -o".
> This isn't portable to OSX/Darwin. Is there a chance this information
> can be obtained some other way, or not invoked on darwni?
Peter, I noticed the same on Solaris recently.
The following seems to work but is quite yucky, and I prefer
somebody to come up with a better alternative.
------------
Makefile: 'uname -o' is not portable.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
diff --git a/Makefile b/Makefile
index 7ba3eeb..ba048cb 100644
--- a/Makefile
+++ b/Makefile
@@ -180,7 +180,7 @@ ifeq ($(shell uname -s),SunOS)
TAR = gtar
PLATFORM_DEFINES += -D__EXTENSIONS__
endif
-ifeq ($(shell uname -o),Cygwin)
+ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Cygwin)
NO_STRCASESTR = YesPlease
NEEDS_LIBICONV = YesPlease
NO_IPV6 = YesPlease
next prev parent reply other threads:[~2005-10-09 19:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-09 10:39 no "uname -o" on Mac OSX Randal L. Schwartz
2005-10-09 19:27 ` Junio C Hamano [this message]
2005-10-09 19:31 ` Randal L. Schwartz
2005-10-09 19:34 ` Junio C Hamano
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=7voe5yebjv.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=hpa@zytor.com \
--cc=merlyn@stonehenge.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).