git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Guido Ostkamp <git@ostkamp.fastmail.fm>
Cc: git@vger.kernel.org, Shawn O Pearce <spearce@spearce.org>,
	Jason Riedy <ejr@EECS.Berkeley.EDU>,
	Dennis Stosberg <dennis@stosberg.net>
Subject: [RFH] Solaris portability
Date: Fri, 16 Nov 2007 16:33:38 -0800	[thread overview]
Message-ID: <7vtznlww0t.fsf_-_@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0711161954510.7139@bianca.dialin.t-online.de> (Guido Ostkamp's message of "Fri, 16 Nov 2007 19:59:58 +0100 (CET)")

Guido Ostkamp <git@ostkamp.fastmail.fm> writes:

> On Thu, 15 Nov 2007, Junio C Hamano wrote:
>> Are there problems with the implementation in compat/ directory, we
>> ship specifically to help platforms without mkdtemp()?
>
> I checked again and the answer is 'yes'. The reason is trivial - for
> Solaris 10 the workaround is not activated and my version of Solaris
> 10 (Sparc) has no mkdtemp() in libc.so.

Thanks.

This makes me wonder if treating it just like strcasestr() might
be simpler.  Could folks with access to Solaris boxes of
different vintages please see if the attached patch makes sense?

Can we also unify UNSETENV, SETENV, C99_FORMAT and STRTOUMAX, by
the way? 


diff --git a/Makefile b/Makefile
index e830bc7..cabde81 100644
--- a/Makefile
+++ b/Makefile
@@ -412,26 +412,25 @@ endif
 ifeq ($(uname_S),SunOS)
 	NEEDS_SOCKET = YesPlease
 	NEEDS_NSL = YesPlease
 	SHELL_PATH = /bin/bash
 	NO_STRCASESTR = YesPlease
 	NO_MEMMEM = YesPlease
 	NO_HSTRERROR = YesPlease
+	NO_MKDTEMP = YesPlease
 	ifeq ($(uname_R),5.8)
 		NEEDS_LIBICONV = YesPlease
 		NO_UNSETENV = YesPlease
 		NO_SETENV = YesPlease
-		NO_MKDTEMP = YesPlease
 		NO_C99_FORMAT = YesPlease
 		NO_STRTOUMAX = YesPlease
 	endif
 	ifeq ($(uname_R),5.9)
 		NO_UNSETENV = YesPlease
 		NO_SETENV = YesPlease
-		NO_MKDTEMP = YesPlease
 		NO_C99_FORMAT = YesPlease
 		NO_STRTOUMAX = YesPlease
 	endif
 	INSTALL = ginstall
 	TAR = gtar
 	BASIC_CFLAGS += -D__EXTENSIONS__
 endif

  reply	other threads:[~2007-11-17  0:34 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-14 20:31 [PATCH] Fix Solaris Workshop Compiler issues Guido Ostkamp
2007-11-14 20:47 ` Alex Riesen
2007-11-14 21:25   ` Junio C Hamano
2007-11-14 23:21     ` Guido Ostkamp
2007-11-14 23:28       ` Alex Riesen
2007-11-15  0:17         ` Björn Steinbrink
2007-11-15  0:30           ` Junio C Hamano
2007-11-15  0:44             ` Björn Steinbrink
2007-11-15  0:46               ` Junio C Hamano
2007-11-15  0:50                 ` Björn Steinbrink
2007-11-15  1:15                 ` [PATCH] Fix "identifier redeclared" compilation error with SUN cc Björn Steinbrink
2007-11-15 22:00                   ` Guido Ostkamp
2007-11-15 22:15                     ` Junio C Hamano
2007-11-15 22:28                       ` Guido Ostkamp
2007-11-16 18:59                       ` [PATCH] Add mkdtemp() workaround for Sun Solaris 10 Guido Ostkamp
2007-11-17  0:33                         ` Junio C Hamano [this message]
2007-11-18 12:08                           ` [RFH] Solaris portability Guido Ostkamp
2007-11-18 17:46                             ` Junio C Hamano
2007-11-16  4:58                   ` [PATCH] Fix "identifier redeclared" compilation error with SUN cc Junio C Hamano
2007-11-16 12:55                     ` Björn Steinbrink
2007-11-19 17:51                     ` Guido Ostkamp
2007-11-20  8:30                       ` Junio C Hamano
2007-11-20 17:28                         ` Guido Ostkamp
2007-11-20 18:06                           ` Guido Ostkamp
2007-11-20 18:26                       ` Martin Mares
2007-11-20 20:08                         ` Junio C Hamano
2007-11-20 20:09                           ` Martin Mares
2007-11-15  0:44             ` [PATCH] Fix Solaris Workshop Compiler issues Linus Torvalds
2007-11-15  1:21               ` David Kastrup
2007-11-15  1:53                 ` Linus Torvalds
2007-11-15  3:27                 ` 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=7vtznlww0t.fsf_-_@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=dennis@stosberg.net \
    --cc=ejr@EECS.Berkeley.EDU \
    --cc=git@ostkamp.fastmail.fm \
    --cc=git@vger.kernel.org \
    --cc=spearce@spearce.org \
    /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).