Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2018 14:05:08 +0000 (UTC)
From:      Luca Pizzamiglio <pizzamig@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r475441 - head/devel/gdb
Message-ID:  <201807271405.w6RE58Ac080267@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pizzamig
Date: Fri Jul 27 14:05:07 2018
New Revision: 475441
URL: https://svnweb.freebsd.org/changeset/ports/475441

Log:
  devel/gdb: add support to UTF-8 charset
  
  Introduced a new option, enabled on default, to use libiconv, that
  provide wchar_t support and allow to use UTF-8 charset in gdb
  
  PR:		230036
  Reported by:	Gleb Popov <arrowd@FreeBSD.org>

Modified:
  head/devel/gdb/Makefile

Modified: head/devel/gdb/Makefile
==============================================================================
--- head/devel/gdb/Makefile	Fri Jul 27 13:37:27 2018	(r475440)
+++ head/devel/gdb/Makefile	Fri Jul 27 14:05:07 2018	(r475441)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gdb
 PORTVERSION=	8.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	devel
 MASTER_SITES=	GNU
 
@@ -58,15 +58,18 @@ PLIST_SUB=	VER=${VER}
 
 OPTIONS_DEFINE=	DEBUG GDB_LINK GUILE KGDB PYTHON TUI
 
-OPTIONS_DEFAULT=	GDB_LINK KGDB PYTHON TUI PORT_READLINE
+OPTIONS_DEFAULT=	GDB_LINK KGDB PYTHON TUI PORT_READLINE PORT_ICONV
 
-OPTIONS_SINGLE=	READLINE
+OPTIONS_SINGLE=	READLINE ICONV
 OPTIONS_SINGLE_READLINE=	BUNDLED_READLINE PORT_READLINE
+OPTIONS_SINGLE_ICONV=	SYSTEM_ICONV PORT_ICONV
 
 GDB_LINK_DESC=		Create ${PREFIX}/bin/gdb symlink
 KGDB_DESC=		Kernel Debugging Support
 BUNDLED_READLINE_DESC=	from gdb distfile
 PORT_READLINE_DESC=	from devel/readline port
+PORT_ICONV_DESC=	use libiconv, with wider charset support
+SYSTEM_ICONV_DESC=	use libc iconv, with no wchar support
 TUI_DESC=		Text User Interface enabled
 
 OPTIONS_SUB=	yes
@@ -77,9 +80,11 @@ GUILE_CONFIGURE_WITH=	guile
 GUILE_USES=		pkgconfig
 GUILE_LIB_DEPENDS=	libguile-2.0.so:lang/guile2
 PORT_READLINE_USES=	readline:port
+PORT_ICONV_USES=	iconv:wchar_t
 PYTHON_CONFIGURE_ON=	--with-python=${PYTHON_CMD}
 PYTHON_CONFIGURE_OFF=	--without-python
 PYTHON_USES=		python
+SYSTEM_ICONV_USES=	iconv
 TUI_CONFIGURE_ENABLE=	tui
 
 .include <bsd.port.pre.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807271405.w6RE58Ac080267>