View | Details | Raw Unified | Return to bug 211850 | Differences between
and this patch

Collapse All | Expand All

(-)tig/Makefile (-3 / +4 lines)
Lines 2-8 Link Here
2
# $FreeBSD: head/devel/tig/Makefile 412346 2016-04-01 14:00:51Z mat $
2
# $FreeBSD: head/devel/tig/Makefile 412346 2016-04-01 14:00:51Z mat $
3
3
4
PORTNAME=	tig
4
PORTNAME=	tig
5
PORTVERSION=	2.1.1
5
PORTVERSION=	2.2
6
CATEGORIES=	devel
6
CATEGORIES=	devel
7
MASTER_SITES=	http://jonas.nitro.dk/tig/releases/
7
MASTER_SITES=	http://jonas.nitro.dk/tig/releases/
8
8
Lines 14-22 Link Here
14
14
15
RUN_DEPENDS=	git:devel/git
15
RUN_DEPENDS=	git:devel/git
16
16
17
USES=	iconv gmake ncurses readline:port
17
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
18
CONFIGURE_ARGS=	${ICONV_CONFIGURE_BASE}
19
CONFIGURE_ARGS=	${ICONV_CONFIGURE_BASE} bash_cv_termcap_lib=libncursesw
19
USES=		iconv gmake ncurses readline:port
20
MAKE_ARGS=	V=1
20
21
21
ALL_TARGET=	all strip
22
ALL_TARGET=	all strip
22
INSTALL_TARGET=	install
23
INSTALL_TARGET=	install
(-)tig/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (tig-2.1.1.tar.gz) = 50c5179fd564b829b6b2cec087e66f10cf8799601de19350df0772ae77e4852f
1
TIMESTAMP = 1470883142
2
SIZE (tig-2.1.1.tar.gz) = 641710
2
SHA256 (tig-2.2.tar.gz) = 8f5213d3abb45ca9a79810b8d2a2a12d941112bc4682bcfa91f34db74942754c
3
SIZE (tig-2.2.tar.gz) = 1030062
(-)tig/files/patch-config.make.in (-11 lines)
Lines 1-11 Link Here
1
--- config.make.in.orig	2015-04-09 00:19:11 UTC
2
+++ config.make.in
3
@@ -12,7 +12,7 @@ CC = @CC@
4
 CFLAGS = @CFLAGS@ @COVERAGE_CFLAGS@
5
 CPPFLAGS = @CPPFLAGS@ -DHAVE_CONFIG_H
6
 LDFLAGS = @LDFLAGS@
7
-LDLIBS = @LIBS@ @CURSES_LIB@
8
+LDLIBS = @CURSES_LIB@ @LIBS@
9
 
10
 ASCIIDOC = @ASCIIDOC@
11
 XMLTO = @XMLTO@
(-)tig/files/patch-src_ui.c (-14 lines)
Lines 1-14 Link Here
1
# Origin: https://github.com/jonas/tig/commit/718c6e94fcc111e5607d6ca0bf3d15271adc0d97
2
# Subject: ui: fix crash due to out-of-bounds array access
3
4
--- src/ui.c.orig	2015-04-09 00:19:11 UTC
5
+++ src/ui.c
6
@@ -293,7 +293,7 @@ open_file_finder(const char *commit)
7
 	finder.keymap = get_keymap("search", STRING_SIZE("search")),
8
 	file_finder_update(&finder);
9
 	file_finder_draw(&finder);
10
-	if (read_prompt_incremental("Find file: ", FALSE, file_finder_input_handler, &finder))
11
+	if (read_prompt_incremental("Find file: ", FALSE, file_finder_input_handler, &finder) && finder.pos.lineno < finder.lines)
12
 		file = get_path(finder.line[finder.pos.lineno]->text);
13
 
14
 	file_finder_done(&finder);

Return to bug 211850