From: Junio C Hamano <gitster@pobox.com>
To: Boyd Lynn Gerber <gerberb@zenez.com>
Cc: Daniel Barkalow <barkalow@iabervon.org>,
Thomas Harning <harningt@gmail.com>,
Jeremy Maitin-Shepard <jbms@cmu.edu>,
Git List <git@vger.kernel.org>
Subject: Re: [PATCH] 0003 This patch is to allow 12 different OS's to compile and run git.
Date: Fri, 06 Jun 2008 19:12:32 -0700 [thread overview]
Message-ID: <7vzlpyouwf.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0806061922290.18454@xenau.zenez.com> (Boyd Lynn Gerber's message of "Fri, 6 Jun 2008 19:25:11 -0600")
Boyd Lynn Gerber <gerberb@zenez.com> writes:
> On Fri, 6 Jun 2008, Daniel Barkalow wrote:
>
>> On Fri, 6 Jun 2008, Boyd Lynn Gerber wrote:
>>
>> > From db0574a7f89bb90b6ce02cd44053f8cec2c454cc
>> >
>> > This patch has patches to
>> >
>> > Makefile
>> > git-compat-util.h
>> > progress.c
>> >
>> > This patch allows some older OS's, SCO OpenServer 5.0.X, SCO UnixWare 7.1.4,
>> > and OpenServer 6.0.X to build and run git. Applied suggestions from list.
>> >
>> > Developer's Certificate of Origin 1.1
>> >
>> > By making a contribution to this project, I certify that:
>> >
>> > (a) The contribution was created in whole or in part by me and I
>> > have the right to submit it under the open source license
>> > indicated in the file; or
>> >
>> > (b) The contribution is based upon previous work that, to the best
>> > of my knowledge, is covered under an appropriate open source
>> > license and I have the right under that license to submit that
>> > work with modifications, whether created in whole or in part
>> > by me, under the same open source license (unless I am
>> > permitted to submit under a different license), as indicated
>> > in the file; or
>> >
>> > (c) The contribution was provided directly to me by some other
>> > person who certified (a), (b) or (c) and I have not modified
>> > it.
>> >
>> > (d) I understand and agree that this project and the contribution
>> > are public and that a record of the contribution (including all
>> > personal information I submit with it, including my sign-off) is
>> > maintained indefinitely and may be redistributed consistent with
>> > this project or the open source license(s) involved.
>> >
>> > Signed-off-by: Boyd Lynn Gerber <gerberb@zenez.com>
>> >
>> > --
>> > Boyd Gerber <gerberb@zenez.com>
>> > ZENEZ 1042 East Fort Union #135, Midvale Utah 84047
>
> OK made changes you recommended.
I guess the patch text itself seems to be getting reasonable, and perhaps
the next few rounds would be to fix the commit log message ;-)
> diff --git a/Makefile b/Makefile
> index cce5a6e..000bf1f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -165,6 +165,11 @@ uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
> # CFLAGS and LDFLAGS are for the users to override from the command line.
>
> CFLAGS = -g -O2 -Wall
> +ifeq ($(uname_S),SCO_SV)
> + ifeq ($(uname_R),3.2)
> + CFLAGS = -O2
> + endif
> +endif
What makes SCO_SV so special that this platform specific tweak does not
live in "Platform specific tweaks" section like others?
CFLAGS is for the user to oerride from the command line, and I do not very
much like any tweaks in Makefile. I'd suggest dropping this hunk.
> @@ -564,6 +569,42 @@ endif
> ifeq ($(uname_S),GNU/kFreeBSD)
> NO_STRLCPY = YesPlease
> endif
> +ifeq ($(uname_S),UnixWare)
> + CC=cc
s/=/ = /; you have similar one elsewhere.
> + NEEDS_SOCKET = YesPlease
> + NEEDS_NSL = YesPlease
> + NEEDS_SSL_WITH_CRYPTO = YesPlease
> + NEEDS_LIBICONV = YesPlease
> + SHELL_PATH = /usr/local/bin/bash
> + NO_IPV6 = YesPlease
> + NO_HSTRERROR = YesPlease
> + BASIC_CFLAGS += -Kalloca -Kthread
I am only guessing what -Kalloca is, but is it for alloca(3), and if so do
you still need it?
> diff --git a/git-compat-util.h b/git-compat-util.h
> index 01c4045..b3cd7b3 100644
> --- a/git-compat-util.h
> +++ b/git-compat-util.h
> @@ -39,7 +39,12 @@
> /* Approximation of the length of the decimal representation of this type. */
> #define decimal_length(x) ((int)(sizeof(x) * 2.56 + 0.5) + 1)
>
> -#if !defined(__APPLE__) && !defined(__FreeBSD__)
> +/* Added for __USLC__ for any Novell devrived Compiler and Some Sys V
> + Added _M_UNIX for any XENIX/SCO UNIX/OpenServer less than or equal
> + OpenServer 5.0.7 This is do avoided compiler hell like the other
> + OS's __APPLE__ and __FreeBSD__ */
We generally do not do changelog inside the code comment.
> +#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && !de
> +fined(_M_UNIX)
Linewrapped patch? It is very curious that you have + in front of "fined(_M_UNIX)".
next prev parent reply other threads:[~2008-06-07 2:14 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-06 19:34 [PATCH] This patch is to allow 12 different OS's to compile and run git Boyd Lynn Gerber
2008-06-06 19:39 ` Jeremy Maitin-Shepard
2008-06-06 20:02 ` Boyd Lynn Gerber
2008-06-06 20:15 ` Stephan Beyer
2008-06-06 20:28 ` Linus Torvalds
2008-06-06 20:44 ` Boyd Lynn Gerber
2008-06-06 22:16 ` Brandon Casey
2008-06-06 23:08 ` Junio C Hamano
2008-06-06 23:23 ` Boyd Lynn Gerber
2008-06-07 0:38 ` [PATCH] 0002 " Boyd Lynn Gerber
2008-06-07 0:47 ` Daniel Barkalow
2008-06-07 1:25 ` [PATCH] 0003 " Boyd Lynn Gerber
2008-06-07 2:12 ` Junio C Hamano [this message]
2008-06-07 2:40 ` Boyd Lynn Gerber
2008-06-07 3:40 ` Daniel Barkalow
2008-06-08 3:46 ` Boyd Lynn Gerber
2008-06-08 7:45 ` Junio C Hamano
2008-06-08 16:57 ` [PATCH] progress.c: avoid use of dynamic-sized array Boyd Lynn Gerber
2008-06-08 17:07 ` [PATCH] Port to 12 other Platforms Boyd Lynn Gerber
2008-06-08 3:50 ` [PATCH] 0004 This patch is to allow 12 different OS's to compile and run git Boyd Lynn Gerber
2008-06-08 7:22 ` Boyd Lynn Gerber
2008-06-06 19:46 ` [PATCH] " Thomas Harning
2008-06-06 22:58 ` Daniel Barkalow
2008-06-06 23:17 ` Boyd Lynn Gerber
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=7vzlpyouwf.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=barkalow@iabervon.org \
--cc=gerberb@zenez.com \
--cc=git@vger.kernel.org \
--cc=harningt@gmail.com \
--cc=jbms@cmu.edu \
/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).