git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tor Arntsen <tor@spacetec.no>
To: "Gary V. Vaughan" <git@mlists.thewrittenword.com>
Cc: git@vger.kernel.org
Subject: Re: [patch 04/16] Without this patch at least IBM VisualAge C 5.0 (I have 5.0.2) on AIX 5.1 fails to compile git.
Date: Tue, 27 Apr 2010 18:08:58 +0200	[thread overview]
Message-ID: <4BD70C1A.80709@spacetec.no> (raw)
In-Reply-To: <20100427135823.017417000@mlists.thewrittenword.com>

On Tue, Apr 27, 2010 at 15:57, Gary V. Vaughan <git@mlists.thewrittenword.com> wrote:
> enum style is inconsistent already, with some enums declared on one
> line, some over 3 lines with the enum values all on the middle line,
> sometimes with 1 enum value per line... and independently of that the
> trailing comma is sometimes present and other times absent, often
> mixing with/without trailing comma styles in a single file, and
> sometimes in consecutive enum declarations.
>
> Clearly, omitting the comma is the more portable style, and this patch
> changes all enum declarations to use the portable omitted dangling
> comma style consistently.
> ---
>  attr.h                 |    2 +-
>  builtin/apply.c        |    4 ++--
>  builtin/branch.c       |    4 ++--
>  builtin/commit.c       |    6 +++---
>  builtin/help.c         |    2 +-
>  builtin/mailinfo.c     |    4 ++--
>  builtin/receive-pack.c |    2 +-
>  builtin/remote.c       |    2 +-
>  cache.h                |   16 ++++++++--------
>  commit.h               |    2 +-
>  connect.c              |    2 +-
>  ctype.c                |    2 +-
>  diff.h                 |    2 +-
>  dir.c                  |    6 +++---
>  fast-import.c          |    2 +-
>  grep.h                 |    8 ++++----
>  http-push.c            |    2 +-
>  http-walker.c          |    2 +-
>  imap-send.c            |    2 +-
>  merge-recursive.h      |    2 +-
>  parse-options.h        |    6 +++---
>  pretty.c               |    2 +-
>  remote.h               |    2 +-
>  rerere.c               |    2 +-
>  revision.c             |    2 +-
>  wt-status.h            |    2 +-
>  26 files changed, 45 insertions(+), 45 deletions(-)

The patch is against master. Are we supposed to make patches against master or maint? (I thought I saw the latter somewhere. I'm pretty new in here though..)

I can confirm that master doesn't compile on AIX 5.1 with the IBM VisualAge compiler V5 (V5.0.2) without the patch above, and it does compile with the patch:

Tested-by: Tor Arntsen <tor@spacetec.no>

but with the following caveats:

1: With the patch, it'll build with configure (and only configure), run like so:

./configure --enable-pthreads=-lpthread CFLAGS=-Dinline=''

In other words, this system would also need an AIX version of the 'no-inline' patch you did for HP-UX.

And without the --enable-pthreads=-lpthread above it'll try to link with -pthread, which won't work for this system.

The const-expr patch is also useful for AIX-5.1 / XlC V5.0.2. It does build without, but with warnings.

2: The compiler cannot build on AIX 5.1 without the following additional patch (against master. maint has similar problems but files have been moved):

>From a8989213b4c8baa53c14c1f227b916910265c517 Mon Sep 17 00:00:00 2001
From: Tor Arntsen <tor@spacetec.no>
Date: Tue, 27 Apr 2010 16:05:12 +0000
Subject: [PATCH 2/2] C99 comments changed to old-style C comments

Signed-off-by: Tor Arntsen <tor@spacetec.no>
---
 builtin/blame.c        |    2 +-
 builtin/for-each-ref.c |    4 ++--
 remote.c               |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/builtin/blame.c b/builtin/blame.c
index fc15863..4dd4c3f 100644
--- a/builtin/blame.c
+++ b/builtin/blame.c
@@ -1589,7 +1589,7 @@ static void emit_porcelain(struct scoreboard *sb, struct blame_entry *ent)
 	strcpy(hex, sha1_to_hex(suspect->commit->object.sha1));
 	printf("%s%c%d %d %d\n",
 	       hex,
-	       ent->guilty ? ' ' : '*', // purely for debugging
+	       ent->guilty ? ' ' : '*', /* purely for debugging */
 	       ent->s_lno + 1,
 	       ent->lno + 1,
 	       ent->num_lines);
diff --git a/builtin/for-each-ref.c b/builtin/for-each-ref.c
index 62be1bb..7f5011f 100644
--- a/builtin/for-each-ref.c
+++ b/builtin/for-each-ref.c
@@ -549,10 +549,10 @@ static void grab_values(struct atom_value *val, int deref, struct object *obj, v
 		grab_person("committer", val, deref, obj, buf, sz);
 		break;
 	case OBJ_TREE:
-		// grab_tree_values(val, deref, obj, buf, sz);
+		/* grab_tree_values(val, deref, obj, buf, sz); */
 		break;
 	case OBJ_BLOB:
-		// grab_blob_values(val, deref, obj, buf, sz);
+		/* grab_blob_values(val, deref, obj, buf, sz); */
 		break;
 	default:
 		die("Eh?  Object of type %d?", obj->type);
diff --git a/remote.c b/remote.c
index c70181c..26ce560 100644
--- a/remote.c
+++ b/remote.c
@@ -476,7 +476,7 @@ static void read_config(void)
 	unsigned char sha1[20];
 	const char *head_ref;
 	int flag;
-	if (default_remote_name) // did this already
+	if (default_remote_name) /* did this already */
 		return;
 	default_remote_name = xstrdup("origin");
 	current_branch = NULL;
-- 
1.7.1.rc1.GIT

  reply	other threads:[~2010-04-27 16:09 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-27 13:57 [patch 00/16] Portability Patches for git-1.7.1 (v4) Gary V. Vaughan
2010-04-27 13:57 ` [patch 01/16] user-cppflags.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 02/16] const-expr.patch Gary V. Vaughan
2010-04-27 14:08   ` Erik Faye-Lund
2010-04-27 14:32     ` Gary V. Vaughan
     [not found]   ` <1AFA5FB2-EB8B-4775-8941-86428C7F740E@gmail.com>
2010-05-03  1:39     ` Gary V. Vaughan
     [not found]       ` <A4E8B513-AD31-4F3B-9DEF-6A85AA8DC7B3@gmail.com>
2010-05-04  5:01         ` Gary V. Vaughan
2010-04-27 13:57 ` [patch 03/16] pthread.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 04/16] Without this patch at least IBM VisualAge C 5.0 (I have 5.0.2) on AIX 5.1 fails to compile git Gary V. Vaughan
2010-04-27 16:08   ` Tor Arntsen [this message]
2010-04-28  8:40     ` Gary V. Vaughan
2010-04-28  8:55       ` Tor Arntsen
2010-04-28 16:23         ` Jeff King
2010-04-27 13:57 ` [patch 05/16] diff-export.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 06/16] diff-test_cmp.patch Gary V. Vaughan
2010-04-27 17:15   ` Jonathan Nieder
2010-04-28  9:00     ` Gary V. Vaughan
2010-04-28  9:51       ` Jonathan Nieder
2010-04-28 10:22         ` Gary V. Vaughan
2010-04-28 17:43           ` Jonathan Nieder
2010-04-27 13:57 ` [patch 07/16] diff-defaults.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 08/16] host-SunOS56.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 09/16] host-IRIX.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 10/16] host-HPUX10.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 11/16] host-HPUX11.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 12/16] host-OSF1.patch Gary V. Vaughan
2010-04-27 14:10   ` Tor Arntsen
2010-04-27 14:39     ` Gary V. Vaughan
2010-04-27 14:48       ` Tor Arntsen
2010-04-28  9:07         ` Gary V. Vaughan
2010-04-27 13:57 ` [patch 13/16] no-hstrerror.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 14/16] no-inet_ntop.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 15/16] no-socklen_t.patch Gary V. Vaughan
2010-04-27 13:57 ` [patch 16/16] no-inline.patch Gary V. Vaughan
2010-04-27 15:30 ` [patch 00/16] Portability Patches for git-1.7.1 (v4) Michael J Gruber
2010-04-27 17:54   ` Jeff King
2010-04-27 20:13     ` Andreas Schwab
2010-04-28  2:08       ` Jeff King
2010-04-28  9:19         ` Gary V. Vaughan
2010-04-28 12:17           ` Jeff King
2010-04-28  9:27   ` Gary V. Vaughan
2010-04-28  9:32   ` Gary V. Vaughan
2010-04-28 12:26     ` Ævar Arnfjörð Bjarmason
     [not found]   ` <4BD94599.5090309@drmicha.warpmail.net>
2010-04-29 10:50     ` Gary V. Vaughan
2010-05-01 18:34   ` Michael J Gruber
2010-05-01 23:25     ` Junio C Hamano
2010-05-03  1:48       ` Gary V. Vaughan
2010-05-02 13:00     ` Øyvind A. Holm
2010-04-28 10:12 ` Gary V. Vaughan

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=4BD70C1A.80709@spacetec.no \
    --to=tor@spacetec.no \
    --cc=git@mlists.thewrittenword.com \
    --cc=git@vger.kernel.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).