From: Mark Ashley <mark@ibiblio.org>
To: git@vger.kernel.org
Subject: Compiling git on Solaris. Recipe included.
Date: Wed, 9 May 2012 13:11:30 +1000 [thread overview]
Message-ID: <CADmdEsnSt5Do+EuJHzfGxNY6aCnGA6AF6fbEETAGpoL6p7Nuwg@mail.gmail.com> (raw)
Hey folks,
I'm compiling git on Solaris 10 and 11 SPARC and X86 using the Sun Studio
12.x compilers.
git doesn't compile out of the box, there are (see below) lots of tweaks to
have it use open source stuff in /usr/local/* and also to pass some of the
configure tests for inet_ntop and -lintl.
This recipe below fixes everything and I'm on to using git now.
Thanks,
Mark.
cd /var/tmp
rm -rf /git git-1.7.10
untgz /usr/local/src/utils/git-1.7.10.tar.gz
cd git-1.7.10
mkdir /git
/bin/perl -pe "s#^ifndef V#ifdef XYZZY#" -i Makefile
/bin/perl -pe "s#^ifndef V#ifdef XYZZY#" -i git-gui/Makefile
/bin/perl -pe "s#^ifndef V#ifdef XYZZY#" -i git_remote_helpers/Makefile
/bin/perl -pe "s#^ifndef V#ifdef XYZZY#" -i gitk-git/Makefile
/bin/perl -pe "s#^ifndef V#ifdef XYZZY#" -i gitweb/Makefile
/bin/perl -pe "s#^ifndef V#ifdef XYZZY#" -i perl/Makefile
/bin/perl -pe "s#^ifndef V#ifdef XYZZY#" -i templates/Makefile
/bin/perl -pe "s#-lintl#-L/usr/local/lib -lintl#" -i Makefile
/bin/perl -pe "s#-Wall##" -i Makefile
/bin/perl -pe "s#^TCL_PATH = tclsh#TCL_PATH = /usr/local/bin/tclsh8.5#"
-i Makefile
/bin/perl -pe "s#tclsh#/usr/local/bin/tclsh8.5#" -i git-gui/Makefile
/bin/perl -pe "s#tclsh#/usr/local/bin/tclsh8.5#" -i gitk-git/Makefile
/bin/perl -pe
"s#LIBC_CONTAINS_LIBINTL=YesPlease#LIBC_CONTAINS_LIBINTL=#" -i configure
/bin/perl -pe "s#NO_INET_NTOP=YesPlease#NEEDS_RESOLV=YesPlease#" -i
configure
setenv TCL_PATH /usr/local/bin/tclsh8.5
./configure --prefix=/git \
--with-iconv=/usr/local \
--with-openssl=/usr/local \
--with-curl=/usr/local \
--with-expat=/usr/local \
--with-zlib=/usr/local \
--with-tcltk=/usr/local/bin/tclsh8.5 \
--with-python=/usr/local/bin/python
gmake
gmake INSTALL=/usr/local/bin/ginstall install
unsetenv TCL_PATH
next reply other threads:[~2012-05-09 3:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-09 3:11 Mark Ashley [this message]
2012-05-09 17:45 ` Compiling git on Solaris. Recipe included Junio C Hamano
2012-05-09 17:58 ` Ben Walton
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=CADmdEsnSt5Do+EuJHzfGxNY6aCnGA6AF6fbEETAGpoL6p7Nuwg@mail.gmail.com \
--to=mark@ibiblio.org \
--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).