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

[PATCH] Building git on NetBSD

From
Wwalt <wa1ter@myrealbox.com>
Date
Nov 12, 2005, 15:12 UTC
Message-ID
<Pine.LNX.4.64.0511120649430.2695@x2.ybpnyarg>
This gets git going on NetBSD:

--- Makefile.orig 2005-11-12 05:06:55.000000000 -0800 +++ Makefile

@@ -212,6 +212,10 @@ ifeq ($(uname_S),OpenBSD)
 	NEEDS_LIBICONV = YesPlease
 	ALL_CFLAGS += -I/usr/local/include -L/usr/local/lib
 endif
+ifeq ($(uname_S),NetBSD)
+	NEEDS_LIBICONV = YesPlease
+	ALL_CFLAGS += -I/usr/pkg/include -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
+endif
 ifneq (,$(findstring arm,$(uname_M)))
 	ARM_SHA1 = YesPlease
 endif

I'm no software developer so I'm not sure about the syntax of the -rpath
flag.  It does what I wanted, but it results in lots of warnings about
not being used because no linking is taking place.  Should this maybe
go in LDFLAGS instead of CFLAGS?  Dunno.

Anyway, I actually used cg-clone on NetBSD to clone the git repository,
and I'll try to get the pkgsrc guys interested in creating packages for
cogito and git.

Oh, one person was concerned about the cogito scripts running on the
NetBSD version of sh, which isn't bash.  So far I've tried cg-clone,
cg-update, and gitk, and all worked just like on linux.  Any chance
that some of the other scripts may not work as well on a non-bash sh?
Next: Andreas Ericsson
Message 1 of 5 in “Building git on NetBSD”
  1. Building git on NetBSDwalt, Nov 12, 2005
  2. Andreas EricssonNov 12, 2005
  3. Junio C HamanoNov 13, 2005
  4. Junio C HamanoNov 13, 2005
  5. wa1ter@myrealbox.comNov 13, 2005

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.