login
Header Space

 
 

Re: Git 1.3.2 on Solaris

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stefan Pfetzing <stefan.pfetzing@...>
Cc: <git@...>
Date: Tuesday, May 16, 2006 - 9:25 pm

And "Stefan Pfetzing" writes:
 - I've been trying to get git to work on the latest Solaris Express
 - release (with the help of NetBSD's pkgsrc).

I've been using it on Solaris 8 and 9 with the GNU tools
in pkgsrc for quite a while, as well as on AIX with the
GNU tools available as modules (but I haven't compiled a
new AIX version for a month or two).

 - It mostly miserabely fails because of common "shell commands" being
 - used with GNU options. (like xargs, diff, tr and prob. some more) On
 - my box (and thats AFAIK the default when you install gnu coreutils on
 - Solaris) the commands do have a g prefix.

In your pkgsrc mk.conf, use:
GNU_PROGRAM_PREFIX=
GTAR_PROGRAM_PREFIX=

I tried your first suggestion (patch all the commands) back
in February.  It's pretty fragile against future changes, and
I wouldn't recommend it.

 - 2.  setup a dir which contains symlinks to the "right" binaries and
 - put that dir into PATH.

Setting a GIT_COMPAT_PATH in the Makefile and prepending
it to the path in git.c and git-sh-setup.sh might be more
sane.  A fragment like the following in git.c before adding
GIT_EXEC_PATH:
#ifdef GIT_COMPAT_PATH
	/* Search for sane external utilities */
	prepend_to_path(GIT_COMPAT_PATH, strlen(GIT_COMPAT_PATH));
#endif

And maybe in git-sh-setup.sh to help those of us who
use git-foo rather than git foo:
if [ ! -z "@GIT_COMPAT_PATH@" ] ; then
	PATH="@GIT_COMPAT_PATH@:${PATH}"
	export PATH
fi

Plus Makefile fun.

Jason
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Git 1.3.2 on Solaris, Stefan Pfetzing, (Tue May 16, 7:52 pm)
Re: Git 1.3.2 on Solaris, Linus Torvalds, (Tue May 16, 10:20 pm)
Re: Git 1.3.2 on Solaris, Junio C Hamano, (Wed May 17, 5:03 am)
[PATCH] builtin-grep: workaround for non GNU grep., Junio C Hamano, (Wed May 17, 5:54 am)
Re: [PATCH] builtin-grep: workaround for non GNU grep., Bertrand Jacquin, (Wed May 17, 11:39 am)
Re: [PATCH] builtin-grep: workaround for non GNU grep., Junio C Hamano, (Wed May 17, 1:42 pm)
Re: [PATCH] builtin-grep: workaround for non GNU grep., Linus Torvalds, (Wed May 17, 2:12 pm)
Re: [PATCH] builtin-grep: workaround for non GNU grep., Junio C Hamano, (Wed May 17, 2:59 pm)
Re: [PATCH] builtin-grep: workaround for non GNU grep., Linus Torvalds, (Wed May 17, 3:42 pm)
Re: [PATCH] builtin-grep: workaround for non GNU grep., Linus Torvalds, (Wed May 17, 10:24 am)
Re: [PATCH] builtin-grep: workaround for non GNU grep., Junio C Hamano, (Wed May 17, 1:41 pm)
Re: Git 1.3.2 on Solaris , Jason Riedy, (Tue May 16, 11:26 pm)
Re: Git 1.3.2 on Solaris, Ryan Anderson, (Wed May 17, 1:15 am)
Re: Git 1.3.2 on Solaris , Linus Torvalds, (Tue May 16, 11:49 pm)
Re: Git 1.3.2 on Solaris, Stefan Pfetzing, (Wed May 17, 4:05 am)
Re: Git 1.3.2 on Solaris, Linus Torvalds, (Wed May 17, 10:33 am)
Re: Git 1.3.2 on Solaris, Stefan Pfetzing, (Wed May 17, 11:08 am)
Re: Git 1.3.2 on Solaris, Linus Torvalds, (Wed May 17, 12:24 pm)
Re: Git 1.3.2 on Solaris , Jason Riedy, (Wed May 17, 12:35 pm)
Re: Git 1.3.2 on Solaris, Stefan Pfetzing, (Mon May 22, 11:20 pm)
Re: Git 1.3.2 on Solaris, Stefan Pfetzing, (Thu May 25, 11:30 pm)
Re: Git 1.3.2 on Solaris , Jason Riedy, (Tue May 23, 12:51 am)
Re: Git 1.3.2 on Solaris , Linus Torvalds, (Tue May 23, 10:53 am)
Re: Git 1.3.2 on Solaris , Jason Riedy, (Tue May 23, 2:03 pm)
Re: Git 1.3.2 on Solaris , Linus Torvalds, (Tue May 23, 2:24 pm)
Re: Git 1.3.2 on Solaris , Linus Torvalds, (Tue May 23, 2:48 pm)
Re: Git 1.3.2 on Solaris, Edgar Toernig, (Tue May 23, 11:20 am)
Re: Git 1.3.2 on Solaris, Linus Torvalds, (Tue May 23, 11:31 am)
Re: Git 1.3.2 on Solaris, Edgar Toernig, (Tue May 23, 2:43 pm)
Re: Git 1.3.2 on Solaris, Stefan Pfetzing, (Tue May 23, 8:04 am)
Re: Git 1.3.2 on Solaris , Jason Riedy, (Tue May 16, 9:25 pm)
speck-geostationary