Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2010 11:27:25 +0400
From:      Anonymous <swell.k@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/146912: [patch] irc/weechat-devel: libexecinfo dependency
Message-ID:  <86y6f9ep42.fsf@gmail.com>
Resent-Message-ID: <201005240740.o4O7e1QP016297@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         146912
>Category:       ports
>Synopsis:       [patch] irc/weechat-devel: libexecinfo dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 24 07:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
HAVE_BACKTRACE enabled whenever devel/libexecinfo installed on FreeBSD.
Affects irc/weechat as well.
>How-To-Repeat:
1. install devel/libexecinfo
2. install weechat
3. deinstall libexecinfo
>Fix:
--- a.diff begins here ---
Index: irc/weechat-devel/Makefile
===================================================================
RCS file: /a/.cvsup/ports/irc/weechat-devel/Makefile,v
retrieving revision 1.50
diff -u -p -r1.50 Makefile
--- irc/weechat-devel/Makefile	24 Apr 2010 11:48:40 -0000	1.50
+++ irc/weechat-devel/Makefile	24 May 2010 07:18:37 -0000
@@ -31,6 +31,7 @@ OPTIONS=	RUBY		"Ruby scripting support."
 		TCL		"TCL scripting support."	Off	\
 		LUA		"Lua scripting support."	Off	\
 		CHARSET		"Charset support."		On	\
+		BACKTRACE	"Backtraces."			Off	\
 		DEBUG		"Debugging."			On	\
 		ASPELL		"Spell checking."		Off	\
 		GNUTLS		"GNU TLS."			Off	\
@@ -125,6 +126,10 @@ CMAKE_ARGS+=	-DDISABLE_DOC=yes
 PLIST_SUB+=	DOCUMENTATION="@comment "
 .endif
 
+.if defined(WITH_BACKTRACE)
+LIB_DEPENDS+=	execinfo.1:${PORTSDIR}/devel/libexecinfo
+.endif
+
 MAN1=	weechat-curses.1
 
 post-extract:
@@ -133,6 +138,9 @@ post-extract:
 post-patch:
 	@${REINPLACE_CMD} -e 's|$${LIBDIR}/../pkgconfig|$${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|' ${WRKSRC}/CMakeLists.txt
 	@${REINPLACE_CMD} -e 's|INSTALL|#INSTALL|' ${WRKSRC}/doc/CMakeLists.txt
+.if defined(WITHOUT_BACKTRACE)
+	@${REINPLACE_CMD} -e '/IF.*FreeBSD/,/ENDIF.*FreeBSD/d' ${WRKSRC}/src/core/CMakeLists.txt
+.endif
 
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/doc/weechat-curses.1 ${MANPREFIX}/man/man1
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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