git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [FYI] How I compile on SunOS 5.7 with the SUNWspro compiler and ksh
@ 2008-08-18 23:39 Brandon Casey
  2008-08-18 23:55 ` [PATCH] Makefile: configuration for SunOS 5.7 Brandon Casey
                   ` (9 more replies)
  0 siblings, 10 replies; 36+ messages in thread
From: Brandon Casey @ 2008-08-18 23:39 UTC (permalink / raw)
  To: Git Mailing List

This email describes how I have successfully compiled git on SunOS 5.7 with
the native SUNWspro compiler version 6 update 2 C 5.3 2001/05/15 and
successfully run nearly all of the tests using the Korn shell.

A series of 8 patches will follow this email. The patches work around a
few issues with this c89 compiler, and the ancient build environment.

A build script is provided at the end of this email.

The GIT_SKIP_TESTS environment variable was used to skip tests which still fail.
The tests which still fail do so because of an ancient iconv, with two exceptions:
1) the t5000 tests which fail are due to the installed gnu tar being too old, and
2) the t6030 tests which fail do so because of the recent change which calls
   trap with signal 0 inside of a function. The installed korn shell (mis-?)handles
   this calling sequence.

Otherwise, I've been using this executable somewhat and have not experienced any
problems. Maybe it will be useful to others.

 Makefile                       |   14 +++++++++++++-
 builtin-cat-file.c             |    2 +-
 builtin-reset.c                |    2 +-
 dir.c                          |   11 ++++++-----
 t/annotate-tests.sh            |    2 +-
 t/lib-git-svn.sh               |    3 +++
 t/t1002-read-tree-m-u-2way.sh  |   10 ++++++----
 t/t4118-apply-empty-context.sh |    2 +-
 t/t4200-rerere.sh              |    5 +++--
 t/t9301-fast-export.sh         |    1 -
 t/t9700/test.pl                |   12 ++++++------
 t/test-lib.sh                  |    2 +-
 12 files changed, 42 insertions(+), 24 deletions(-)

-brandon


#!/bin/sh

GIT_SKIP_TESTS='
   t3900.1[0-289] t3900.2[023]
   t3901.*
   t5000.1[0-24-689] t5000.2[01]
   t5100.[56] t5100.1[02]
   t6030.1[2-9] t6030.2[0-9]
   t9301.4
'

GIT_TEST_CMP='cmp -s'

PATH="/usr/xpg4/bin:$PATH"

export PATH GIT_TEST_CMP GIT_SKIP_TESTS

exec gmake \
    CC=/opt/SUNWspro/bin/cc \
    INSTALL=ginstall \
    TAR=gtar \
    CFLAGS='-fast' \
    NO_CURL=1 \
    NO_OPENSSL=1 \
    NO_TCLTK=1 \
    NO_PERL_MAKEMAKER=1 \
    THREADED_DELTA_SEARCH=1 \
    "$@"

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2008-09-15 18:28 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-18 23:39 [FYI] How I compile on SunOS 5.7 with the SUNWspro compiler and ksh Brandon Casey
2008-08-18 23:55 ` [PATCH] Makefile: configuration for SunOS 5.7 Brandon Casey
2008-08-18 23:57 ` [PATCH] dir.c: avoid c99 array initialization Brandon Casey
2008-08-28 15:32   ` David Kågedal
2008-08-28 15:41     ` Andreas Ericsson
2008-08-28 16:45     ` Brandon Casey
2008-08-28 18:50       ` Junio C Hamano
2008-08-28 21:01         ` Brandon Casey
2008-08-28 21:12           ` Alex Riesen
2008-08-28 21:45             ` Brandon Casey
2008-08-28 20:01   ` Alex Riesen
2008-08-28 20:16     ` Shawn O. Pearce
2008-08-28 20:21       ` Junio C Hamano
2008-08-28 22:47         ` [PATCH v2] dir.c: Avoid " Brandon Casey
2008-08-28 22:56           ` Alex Riesen
2008-08-28 23:03           ` Brandon Casey
2008-08-28 20:27       ` [PATCH] dir.c: avoid " Alex Riesen
2008-08-29 11:08       ` Johannes Schindelin
2008-08-19  0:08 ` [PATCH FYI] reset,cat-file: remove const declaration from array Brandon Casey
2008-08-19  0:11 ` [PATCH FYI] test-lib.sh: work around ksh's trap shortcomings Brandon Casey
2008-08-19  0:13 ` [PATCH FYI] t1002-read-tree-m-u-2way.sh: use 'git diff -U0' rather than 'diff -U0' Brandon Casey
2008-08-19  0:18 ` [PATCH FYI] Work around sed issues Brandon Casey
2008-08-19  0:20 ` [PATCH FYI] t9301-fast-export.sh: don't unset config variable while we're skipping test 4 Brandon Casey
2008-08-19  0:20 ` [FYI] How I compile on SunOS 5.7 with the SUNWspro compiler and ksh Jeff King
2008-08-19  0:47   ` Brandon Casey
2008-08-19  2:01     ` Jeff King
2008-08-19  0:22 ` [PATCH FYI] t9700/test.pl: backwards compatibility improvements Brandon Casey
2008-09-15 11:54   ` Tom G. Christensen
2008-09-15 16:20     ` Brandon Casey
2008-09-15 16:32       ` Brandon Casey
2008-09-15 16:20     ` [PATCH 1/3] t9700/test.pl: no longer requires File::Basename Brandon Casey
2008-09-15 16:23       ` [PATCH 2/3] t9700/test.pl: avoid bareword 'STDERR' in 3-argument open() Brandon Casey
2008-09-15 16:25         ` [PATCH 3/3] t9700/test.pl: remove File::Temp requirement Brandon Casey
2008-09-15 18:27           ` Tom G. Christensen
2008-08-19  6:13 ` [FYI] How I compile on SunOS 5.7 with the SUNWspro compiler and ksh Alex Riesen
2008-08-19 15:42   ` Brandon Casey

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).