From: Michal Rokos <michal.rokos@nextsoft.cz>
To: git@vger.kernel.org
Subject: git on HP-UX
Date: Thu, 6 Jul 2006 09:50:34 +0200 [thread overview]
Message-ID: <200607060950.34558.michal.rokos@nextsoft.cz> (raw)
Hello,
I needed following changes in order to make git compile on HP-UX:
# uname -s -r -m
HP-UX B.11.11 9000/800
Packages installed:
OpenSSL A.00.09.07-d.002
perl B.5.6.1.C
+ unofficial:
gcc 4.1.1
libiconv 1.10
make 3.80
zlib 1.2.3
Has to be compiled with:
PERL_PATH=/opt/perl/bin/perl gmake prefix=/opt/git install
Please keep me on CC (I'm not subscribed).
Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
--- a/Makefile
+++ b/Makefile
@@ -328,6 +328,17 @@ ifeq ($(uname_S),IRIX64)
# for now, build 32-bit version
ALL_LDFLAGS += -L/usr/lib32
endif
+ifeq ($(uname_S),HP-UX)
+ NO_IPV6 = YesPlease
+ NO_CURL = YesPlease
+ NO_SETENV = YesPlease
+ NO_STRCASESTR = YesPlease
+ NO_STRLCPY = YesPlease
+ NEEDS_LIBICONV = YesPlease
+ ALL_CFLAGS += -D_REENTRANT -D_XOPEN_SOURCE -D_HPUX_SOURCE -I/opt/openssl/include -Dhstrerror=strerror
+ ALL_LDFLAGS += -L/opt/openssl/lib
+ INSTALL = $(PWD)/compat/compat_install
+endif
ifneq (,$(findstring arm,$(uname_M)))
ARM_SHA1 = YesPlease
endif
--- a/compat/compat_install 2006-07-06 09:31:27.000000000 +0200
+++ b/compat/compat_install 2006-07-06 09:31:18.000000000 +0200
@@ -0,0 +1,34 @@
+#!/usr/bin/sh
+#
+# Copyright (c) 2006 Michal Rokos
+#
+# Dummy 'install' replacement intended to be used
+# on HP-UX under sh-posix.
+
+while getopts 'dm:' opt; do
+ case $opt in
+ d) DIR_MODE=1;;
+ m) MODE=$OPTARG;;
+ \?) echo "Unknown argument $OPTARG"; exit 1;;
+ esac
+done
+shift $((OPTIND-1))
+
+if [[ -n "$DIR_MODE" ]] && [[ -n "$MODE" ]]; then
+ mkdir -p -m "$MODE" "$@"
+elif [[ -n "$DIR_MODE" ]]; then
+ mkdir -p "$@"
+else
+ set -A args "$@"
+ last=$#
+ dest=${args[last-1]}
+ unset args[last-1]
+ set "${args[@]}"
+
+ cp "$@" "$dest"
+
+ [[ -n "$MODE" ]] && chmod "$MODE" "$@"
+fi
+
+exit 0
+
--
Michal Rokos
NextSoft s.r.o.
Vyskočilova 1/1410
140 21 Praha 4
phone: +420 267 224 311
fax: +420 267 224 307
mobile: +420 736 646 591
e-mail: michal.rokos@nextsoft.cz
next reply other threads:[~2006-07-06 7:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-06 7:50 Michal Rokos [this message]
2006-07-06 14:53 ` git on HP-UX Pavel Roskin
2006-07-07 0:20 ` Junio C Hamano
2006-07-08 7:38 ` Pavel Roskin
2006-07-09 22:23 ` Petr Baudis
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=200607060950.34558.michal.rokos@nextsoft.cz \
--to=michal.rokos@nextsoft.cz \
--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).