From e24bd2d6ae078337b688b280d5c0512d8a157195 Mon Sep 17 00:00:00 2001 From: gutteridge Date: Tue, 29 Oct 2019 05:12:47 +0000 Subject: ghc7: build fix (workaround) for NetBSD 9.x NetBSD 9.x have libcurses with a newer major version than the bootstrap kit is linked against. For now, work around this with compat80. (This could also be dealt with by creating versioned bootstrap kits, but that's more involved, and NetBSD 9.x is pre- release software, so best to leave this off for now.) Thanks to Greg Troxel for the compat80 hint. --- lang/ghc7/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lang/ghc7') diff --git a/lang/ghc7/Makefile b/lang/ghc7/Makefile index a99437a6fdf..1de2e356fe9 100644 --- a/lang/ghc7/Makefile +++ b/lang/ghc7/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2019/08/11 13:21:21 wiz Exp $ +# $NetBSD: Makefile,v 1.35 2019/10/29 05:12:47 gutteridge Exp $ # ----------------------------------------------------------------------------- # Package metadata # @@ -188,6 +188,13 @@ STRIP_FILES_SKIP+= lib/${PKGNAME_NOREV}/libHSrts.a BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl +# NetBSD 9.x have libcurses with a newer major version than the +# bootstrap kit is linked against. For now, work around this with +# compat80. +.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*) +BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80 +.endif + .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/gmp/buildlink3.mk" .include "../../mk/curses.buildlink3.mk" -- cgit v1.2.3