From: Tor Arntsen <tor@spacetec.no>
To: git@vger.kernel.org
Subject: [PATCH] Add Tru64/OSF1 support in Makefile
Date: Tue, 30 Mar 2010 20:22:21 +0200 [thread overview]
Message-ID: <d2d39d861003301122p646efc1fj9d88af1893b84b3c@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2543 bytes --]
This patch to Makefile makes git build for me on Tru64/OSF1 V5.1 with
the native compiler.
It needs libcurl installed either in /usr or /usr/local, and ditto for
zlib. The zlib installed on my old Tru64 box is from the original
'apt-like' tachometer repository at hp.com, now gone. That version is
pretty old, so my patch includes 'NO_DEFLATE_BOUND'. tcl/tk (included
standard on Tru64) is 8.2 which is too old, so that one (and thus
'gitk') is also disabled in the patch. If someone has V5.2 or newer
they could check tcl/tk version etc., add some $(uname_R) directives
and adjust as necessary.
The resulting git version is fully working (as far as I can tell), and
now in use for the Tru64 autobuilds at http://curl.haxx.se/auto/
(which just does 'git pull' regularly). And the patch is produced
locally on the Tru64 machine, with git, obviously.
Patch included below, as well as attached (in case of
mailler-mangling). Please let me know if you feel there are any issues
with it.
-Tor
>From d4a5ba0727d7e3a4455320bad641cb34402d16fd Mon Sep 17 00:00:00 2001
From: Tor Arntsen <tor@spacetec.no>
Date: Tue, 30 Mar 2010 19:36:40 +0200
Subject: [PATCH] Add Tru64/OSF1 support in Makefile
Tested with V5.1
Needs libcurl and zlib in /usr/local. zlib may be e.g. the original
Tru64 tachometer-freeware version (1.1.4) or newer.
Signed-off-by: Tor Arntsen <tor@spacetec.no>
---
Makefile | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 3a6c6ea..8041bde 100644
--- a/Makefile
+++ b/Makefile
@@ -758,6 +758,32 @@ ifeq ($(uname_S),UnixWare)
NO_STRCASESTR = YesPlease
NO_MEMMEM = YesPlease
endif
+ifeq ($(uname_S),OSF1)
+ # Tested with V5.1 w/libcurl and zlib-1.1.4-5 in /usr/local/
+ CC = cc
+ CFLAGS = -O2 -g3
+ SHELL_PATH = /bin/ksh
+ BASIC_CFLAGS += -D_POSIX_C_SOURCE=1 -D_OSF_SOURCE=1
+ BASIC_CFLAGS += -pthread
+ BASIC_CFLAGS += -I/usr/local/include
+ BASIC_LDFLAGS += -L/usr/local/lib
+ NO_STRCASESTR = YesPlease
+ NO_STRTOUMAX = YesPlease
+ NO_STRTOULL = YesPlease
+ NO_STRLCPY = YesPlease
+ NO_MEMMEM = YesPlease
+ NO_PYTHON = YesPlease
+ NO_NSEC = YesPlease
+ NO_OPENSSL = YesPlease
+ NO_UINTMAX_T = YesPlease
+ NO_C99_FORMAT = YesPlease
+ NEEDS_LIBICONV = YesPlease
+ NO_DEFLATE_BOUND = YesPlease
+ # V5.1 has tcl/tk 8.2, which doesn't work.
+ # V5.2 could possibly have a working version (8.4 or newer).
+ NO_TCLTK = YesPlease
+ NO_EXPAT = YesPlease
+endif
ifeq ($(uname_S),SCO_SV)
ifeq ($(uname_R),3.2)
CFLAGS = -O2
--
1.7.0.3.313.g87b3c.dirty
[-- Attachment #2: 0001-Add-Tru64-OSF1-support-in-Makefile.patch --]
[-- Type: application/octet-stream, Size: 1550 bytes --]
From d4a5ba0727d7e3a4455320bad641cb34402d16fd Mon Sep 17 00:00:00 2001
From: Tor Arntsen <tor@spacetec.no>
Date: Tue, 30 Mar 2010 19:36:40 +0200
Subject: [PATCH] Add Tru64/OSF1 support in Makefile
Tested with V5.1
Needs libcurl and zlib in /usr/local. zlib may be e.g. the original
Tru64 tachometer-freeware version (1.1.4) or newer.
Signed-off-by: Tor Arntsen <tor@spacetec.no>
---
Makefile | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 3a6c6ea..8041bde 100644
--- a/Makefile
+++ b/Makefile
@@ -758,6 +758,32 @@ ifeq ($(uname_S),UnixWare)
NO_STRCASESTR = YesPlease
NO_MEMMEM = YesPlease
endif
+ifeq ($(uname_S),OSF1)
+ # Tested with V5.1 w/libcurl and zlib-1.1.4-5 in /usr/local/
+ CC = cc
+ CFLAGS = -O2 -g3
+ SHELL_PATH = /bin/ksh
+ BASIC_CFLAGS += -D_POSIX_C_SOURCE=1 -D_OSF_SOURCE=1
+ BASIC_CFLAGS += -pthread
+ BASIC_CFLAGS += -I/usr/local/include
+ BASIC_LDFLAGS += -L/usr/local/lib
+ NO_STRCASESTR = YesPlease
+ NO_STRTOUMAX = YesPlease
+ NO_STRTOULL = YesPlease
+ NO_STRLCPY = YesPlease
+ NO_MEMMEM = YesPlease
+ NO_PYTHON = YesPlease
+ NO_NSEC = YesPlease
+ NO_OPENSSL = YesPlease
+ NO_UINTMAX_T = YesPlease
+ NO_C99_FORMAT = YesPlease
+ NEEDS_LIBICONV = YesPlease
+ NO_DEFLATE_BOUND = YesPlease
+ # V5.1 has tcl/tk 8.2, which doesn't work.
+ # V5.2 could possibly have a working version (8.4 or newer).
+ NO_TCLTK = YesPlease
+ NO_EXPAT = YesPlease
+endif
ifeq ($(uname_S),SCO_SV)
ifeq ($(uname_R),3.2)
CFLAGS = -O2
--
1.7.0.3.313.g87b3c.dirty
next reply other threads:[~2010-03-30 18:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 18:22 Tor Arntsen [this message]
2010-03-30 23:54 ` [PATCH] Add Tru64/OSF1 support in Makefile Junio C Hamano
2010-03-31 8:45 ` Tor Arntsen
2010-03-31 16:29 ` Brandon Casey
2010-04-01 15:47 ` Brandon Casey
2010-04-02 14:07 ` Tor Arntsen
2010-04-02 14:56 ` Brandon Casey
2010-04-02 15:12 ` Tor Arntsen
2010-04-02 15:39 ` [PATCH WIP] t/test-lib.sh: support Korn shell by converting GIT_EXIT_OK to GIT_EXIT_CODE Brandon Casey
2010-04-23 14:59 ` [PATCH] Add Tru64/OSF1 support in Makefile Tor Arntsen
2010-05-21 20:45 ` Brandon Casey
2010-05-26 8:19 ` Tor Arntsen
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=d2d39d861003301122p646efc1fj9d88af1893b84b3c@mail.gmail.com \
--to=tor@spacetec.no \
--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).