ports/125255: devel/newt's dependency to SLANG

Dan Lukes dan at obluda.cz
Fri Jul 4 10:10:03 UTC 2008


>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 at 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:



More information about the freebsd-ports-bugs mailing list