Bug 68852 - [PATCH] port devel/rlwrap does not build on 4.X
Summary: [PATCH] port devel/rlwrap does not build on 4.X
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sergey Matveychuk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-09 12:50 UTC by Martin Kammerhofer
Modified: 2004-07-10 11:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kammerhofer 2004-07-09 12:50:20 UTC
The port is conditionally disabled for ${OSVERSION} < 500018.
However building/running on older systems needs only a tiny patch.

Fix: (Note: LIB_DEPENDS is not useful in this case.)



--=_3rce5282ef0g----2209x4xvXKG9g0KhWYgzBdSLBYMCbhtB6lfFohfH6uUzEkox
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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>
How-To-Repeat: make install
Comment 1 Sergey Matveychuk freebsd_committer freebsd_triage 2004-07-10 09:50:35 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sem

Take it.
Comment 2 Sergey Matveychuk freebsd_committer freebsd_triage 2004-07-10 11:24:11 UTC
State Changed
From-To: open->closed

Committed. Thanks!