Date: Fri, 4 Jul 2008 11:48:48 +0200 (CEST) From: Dan Lukes <dan@obluda.cz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/125255: devel/newt's dependency to SLANG Message-ID: <200807040948.m649mmn5034564@kulesh.obluda.cz> Resent-Message-ID: <200807041010.m64AA2LV055824@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 125255 >Category: ports >Synopsis: devel/newt's dependency to SLANG >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 04 10:10:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Dan Lukes >Release: FreeBSD 6.3-STABLE i386 >Organization: Obludarium >Environment: devel/newt/Makefile,v 1.33 2008/06/27 07:04:19 sobomax >Description: The newt unconditionally depends on devel/libslang Unfortunatelly, there are several packages that require devel/libslang2 which is mutual exclusive to devel/libslang >How-To-Repeat: Install a package that depend to linslang2 Try to instala package that depend on newt. It fail. >Fix: devel/newt can be compiled against either libslang or libslang2 So, Makefile needs to be updated only to use the already installed version (if any) and record apropriate dependence The recommended fix has been taken from graphics/libcaca port: --- devel/newt/Makefile.orig 2008-07-04 11:28:26.000000000 +0200 +++ devel/newt/Makefile 2008-07-04 11:33:56.000000000 +0200 @@ -17,8 +17,7 @@ MAINTAINER= pgollucci@p6m7g8.com COMMENT= Not Erik's Windowing Toolkit: console I/O handling library#' -LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang \ - popt.0:${PORTSDIR}/devel/popt +LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt GNU_CONFIGURE= yes USE_LDCONFIG= yes @@ -50,6 +49,12 @@ .include <bsd.port.pre.mk> +. if exists(${LOCALBASE}/lib/libslang.so.1) +LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang +. else +LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2 +. endif + post-patch: ${REINPLACE_CMD} -e 's,^\(SONAME=\).*,\1${SOVERSION},g' \ ${WRKSRC}/configure >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807040948.m649mmn5034564>