Skip to content

Commit

Permalink
MFH: r415176
Browse files Browse the repository at this point in the history
Fix build with libreadline from base system (via BASE_READLINE OPTION)

PR:		209431
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
Approved by:	ports-secteam (build fix blanket)
  • Loading branch information
ephemeralriggs committed May 14, 2016
1 parent c81ce95 commit 31934f7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devel/gdb/Makefile
Expand Up @@ -3,7 +3,7 @@

PORTNAME= gdb
PORTVERSION= 7.11
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= GNU

Expand Down Expand Up @@ -45,7 +45,7 @@ OPTIONS_SINGLE_READLINE= BASE_READLINE BUNDLED_READLINE PORT_READLINE

GDB_LINK_DESC= Create ${PREFIX}/bin/gdb symlink
KGDB_DESC= Kernel Debugging Support
BASE_READLINE_DESC= from base system (experimental)
BASE_READLINE_DESC= from base system
BUNDLED_READLINE_DESC= from gdb distfile
PORT_READLINE_DESC= from devel/readline port
TUI_DESC= Text User Interface enabled
Expand All @@ -54,6 +54,7 @@ OPTIONS_SUB= yes

BASE_READLINE_USES= readline
BASE_READLINE_CFLAGS= -D_rl_echoing_p=readline_echoing_p
BASE_READLINE_EXTRA_PATCHES= ${FILESDIR}/extrapatch-base-readline
BUNDLED_READLINE_CONFIGURE_OFF= --with-system-readline
DEBUG_CFLAGS= -g
EXPAT_CONFIGURE_WITH= expat
Expand Down
11 changes: 11 additions & 0 deletions devel/gdb/files/extrapatch-base-readline
@@ -0,0 +1,11 @@
--- gdb/completer.c.orig 2016-05-10 14:11:58.546188879 +0200
+++ gdb/completer.c 2016-05-10 14:12:22.899187374 +0200
@@ -1767,6 +1767,8 @@
return displayer->width;
}

+_rl_completion_prefix_display_length=0;
+rl_sort_completion_matches=1;
extern int _rl_completion_prefix_display_length;
extern int _rl_print_completions_horizontally;

0 comments on commit 31934f7

Please sign in to comment.