Hi ports --
Back in November, we recorded an inter-library dependency on libcurses
in libreadline in base to avoid runtime failures on archs where ld ==
ld.lld. [0]
Can we do the same for ports ereadline? Using a bit of a heavier hammer
in which we just always record the dependency.
Diff looks like the attached.
Fixes a runtime error reported to me earlier today.
OK?
~Brian
[0] https://marc.info/?l=openbsd-cvs&m=154222823815396&w=2
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/readline/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile 9 Jul 2018 07:51:05 -0000 1.14
+++ Makefile 28 Apr 2019 14:11:10 -0000
@@ -5,6 +5,7 @@ COMMENT = library to edit command lines
V = 7.0
DISTNAME = readline-${V}
PKGNAME = readline-${V}
+REVISION = 0
LIBV = 2.0
SHARED_LIBS += ehistory ${LIBV}
@@ -17,12 +18,15 @@ HOMEPAGE = http://tiswww.case.edu/php/c
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
+WANTLIB += curses
+
MASTER_SITES = ${MASTER_SITE_GNU:=readline/}
#MASTER_SITES0 = ${MASTER_SITE_GNU:=readline/${DISTNAME}-patches/}
CONFIGURE_STYLE = gnu
SEPARATE_BUILD = Yes
MAKE_ENV = RL_SHLIB_V=${LIBereadline_VERSION}
+MAKE_FLAGS = SHLIB_LIBS=-lcurses
FAKE_FLAGS = includedir=${TRUEPREFIX}/include/ereadline
pre-configure: