Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  9 Jul 2004 13:46:28 +0200
From:      dada@sbox.tugraz.at
To:        FreeBSD problem reports <freebsd-gnats-submit@FreeBSD.org>
Subject:   ports/68852: [PATCH] port devel/rlwrap does not build on 4.X
Message-ID:  <20040709134628.vgrkgowc4s80gowo@webmail.tugraz.at>
Resent-Message-ID: <200407091150.i69BoLUC043793@freefall.freebsd.org>

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

>Number:         68852
>Category:       ports
>Synopsis:       [PATCH] port devel/rlwrap does not build on 4.X
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 09 11:50:20 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
Graz UNI
>Environment:
System: FreeBSD Martin.liebt.Susi 4.10-STABLE FreeBSD 4.10-STABLE #2: Wed Jul 7 19:43:28 CEST 2004 toor@Martin.liebt.Susi:/usr/src/sys/compile/GEIDORF4 i386
>Description:
The port is conditionally disabled for ${OSVERSION} < 500018.
However building/running on older systems needs only a tiny patch.
>How-To-Repeat:
make install
>Fix:
(Note: LIB_DEPENDS is not useful in this case.)

--- Makefile.orig	Fri Feb 20 16:57:38 2004
+++ Makefile	Fri Jul  9 12:58:50 2004
@@ -23,7 +23,13 @@
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 500018
-IGNORE=		"Requires readline 4.2 or newer, only available in recent versions of FreeBSD 5.x"
+# This port requires readline 4.2 or newer,
+# only available in recent versions of FreeBSD 5.x
+BUILD_DEPENDS +=	${PREFIX}/lib/libreadline.so.4:${PORTSDIR}/devel/readline
+RUN_DEPENDS=		${BUILD_DEPENDS}
+# Make sure the dynamic linker does not pick up
+# the older libreadline library from the base system.
+LDFLAGS +=		-rpath ${PREFIX}/lib
 .endif
 
 .include <bsd.port.post.mk>

--=_3rce5282ef0g--

>Release-Note:
>Audit-Trail:
>Unformatted:
 This message is in MIME format.
 
 --=_3rce5282ef0g
 Content-Type: text/plain; charset="ISO-8859-1"
 Content-Disposition: inline
 Content-Transfer-Encoding: 7bit
 
 
 --=_3rce5282ef0g
 Content-Type: text/plain; charset="ISO-8859-1"; name="rlwrap-PR"
 Content-Disposition: inline; filename="rlwrap-PR"
 Content-Transfer-Encoding: 7bit
 
 



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