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

Re: [ANNOUNCE] tig 0.7

From
Steven Grimm <koreth@midwinter.com>
Date
May 31, 2007, 19:51 UTC
Message-ID
<465F2731.2080707@midwinter.com>
In-Reply-To
<20070531123808.GA25719@diku.dk>

This doesn't build on OS X out of the box, FYI. It needs the following tweaks (which break the build on Linux, so I'm not suggesting you apply this -- looks like you might need a configure script or at least some conditionals in the Makefile.) The change to tig.c cleans up a compiler warning, but it does build fine without that change.

---
 Makefile |    2 +-
 tig.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 57196b0..db5844c 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ endif
 
 RPM_VERSION = $(subst -,.,$(VERSION))
 
-LDLIBS = -lcurses
+LDLIBS = -lcurses -liconv
 CFLAGS = -Wall -O2 '-DVERSION="$(VERSION)"'
 DFLAGS = -g -DDEBUG -Werror
 PROGS  = tig
diff --git a/tig.c b/tig.c
index e918fe6..e94ef4b 100644
--- a/tig.c
+++ b/tig.c
@@ -1913,7 +1913,7 @@ update_view(struct view *view)
                        line[linelen - 1] = 0;
 
                if (opt_iconv != ICONV_NONE) {
-                       char *inbuf = line;
+                       const char *inbuf = line;
                        size_t inlen = linelen;
 
                        char *outbuf = out_buffer;
-- 
1.5.2.35.ga334
Previous: Jonas FonsecaNext: Jonas Fonseca
Message 2 of 7 in “[ANNOUNCE] tig 0.7”
  1. Jonas FonsecaMay 31, 2007
  2. Steven GrimmMay 31, 2007
  3. Jonas FonsecaMay 31, 2007
  4. Greg KHJun 1, 2007
  5. Add autoconf-based build infrastructure for tigSteven Grimm, Jun 3, 2007
  6. Jonas FonsecaJun 9, 2007
  7. Steven GrimmJun 9, 2007

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.