git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Add Tru64/OSF1 support in Makefile

From
TATor Arntsen <tor@spacetec.no>
Date
Mar 30, 2010, 18:22 UTC
Message-ID
<d2d39d861003301122p646efc1fj9d88af1893b84b3c@mail.gmail.com>

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


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: Junio C Hamano
Message 1 of 12 in “Add Tru64/OSF1 support in Makefile”
  1. Add Tru64/OSF1 support in MakefileTor Arntsen, Mar 30, 2010
  2. Junio C HamanoMar 30, 2010
  3. Tor ArntsenMar 31, 2010
  4. Brandon CaseyMar 31, 2010
  5. Brandon CaseyApr 1, 2010
  6. Tor ArntsenApr 2, 2010
  7. Brandon CaseyApr 2, 2010
  8. Tor ArntsenApr 2, 2010
  9. t/test-lib.sh: support Korn shell by converting GIT_EXIT_OK to GIT_EXIT_CODEBrandon Casey, Apr 2, 2010
  10. Tor ArntsenApr 23, 2010
  11. Brandon CaseyMay 21, 2010
  12. Tor ArntsenMay 26, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.