tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bcal: readline on OpenBSD requires curses



Hi all,

Building the math/bcal package I submitted earlier on OpenBSD:


clang -O2 -I/usr/include -Wall -Wextra -Wno-unused-parameter -Werror -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -Iinc -o bcal src/bcal.c -lreadline
/usr/bin/../lib/libreadline.so.4.0: undefined reference to `tgetnum'
/usr/bin/../lib/libreadline.so.4.0: undefined reference to `tgoto'
/usr/bin/../lib/libreadline.so.4.0: undefined reference to `tgetflag'
/usr/bin/../lib/libreadline.so.4.0: undefined reference to `tputs'
/usr/bin/../lib/libreadline.so.4.0: undefined reference to `tgetent'
/usr/bin/../lib/libreadline.so.4.0: undefined reference to `tgetstr'


Addling -lcurses to the upstream Makefile fixes the issue, but the
maintainer isn't willing to add it:

https://github.com/jarun/bcal/issues/26

So here's a simple downstream workaround:


--- math/bcal/Makefile  15 Dec 2018 17:25:15 -0000      1.1
+++ math/bcal/Makefile  19 Dec 2018 19:40:29 -0000
@@ -14,6 +14,7 @@ USE_TOOLS+=   gmake
 
 DEPENDS+=      bc-[0-9]*:../../math/bc
 
+MAKE_ENV+=     LDLIBS=-lcurses
 MAKE_FLAGS+=   MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../mk/readline.buildlink3.mk"


Sijmen


Home | Main Index | Thread Index | Old Index