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

Re: Git 1.3.2 on Solaris

From
Jason Riedy <ejr@eecs.berkeley.edu>
Date
May 17, 2006, 01:25 UTC
Message-ID
<4648.1147829110@lotus.CS.Berkeley.EDU>
In-Reply-To
<f3d7535d0605161652n3b2ec033r874336082755e728@mail.gmail.com>
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
Previous: Stefan PfetzingNext: Linus Torvalds
Message 2 of 36 in “Git 1.3.2 on Solaris”
  1. Stefan PfetzingMay 16, 2006
  2. Jason RiedyMay 17, 2006
  3. Linus TorvaldsMay 17, 2006
  4. Jason RiedyMay 17, 2006
  5. Linus TorvaldsMay 17, 2006
  6. Stefan PfetzingMay 17, 2006
  7. Linus TorvaldsMay 17, 2006
  8. Stefan PfetzingMay 17, 2006
  9. Linus TorvaldsMay 17, 2006
  10. Jason RiedyMay 17, 2006
  11. Stefan PfetzingMay 23, 2006
  12. Jason RiedyMay 23, 2006
  13. Stefan PfetzingMay 23, 2006
  14. Linus TorvaldsMay 23, 2006
  15. Edgar ToernigMay 23, 2006
  16. Linus TorvaldsMay 23, 2006
  17. Edgar ToernigMay 23, 2006
  18. Jason RiedyMay 23, 2006
  19. Linus TorvaldsMay 23, 2006
  20. Linus TorvaldsMay 23, 2006
  21. Stefan PfetzingMay 26, 2006
  22. Ryan AndersonMay 17, 2006
  23. Junio C HamanoMay 17, 2006
  24. Junio C HamanoMay 17, 2006
  25. builtin-grep: workaround for non GNU grep.Junio C Hamano, May 17, 2006
  26. Linus TorvaldsMay 17, 2006
  27. Junio C HamanoMay 17, 2006
  28. Bertrand JacquinMay 17, 2006
  29. Junio C HamanoMay 17, 2006
  30. Linus TorvaldsMay 17, 2006
  31. Junio C HamanoMay 17, 2006
  32. Linus TorvaldsMay 17, 2006
  33. Junio C HamanoMay 17, 2006
  34. Stefan PfetzingMay 17, 2006
  35. Junio C HamanoMay 17, 2006
  36. Stefan PfetzingMay 17, 2006

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.