pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ghc7 ghc7: build fix (workaround) for NetBSD 9.x



details:   https://anonhg.NetBSD.org/pkgsrc/rev/491f7b28a927
branches:  trunk
changeset: 403573:491f7b28a927
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Tue Oct 29 05:12:47 2019 +0000

description:
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.

diffstat:

 lang/ghc7/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 0d0bf222038c -r 491f7b28a927 lang/ghc7/Makefile
--- a/lang/ghc7/Makefile        Tue Oct 29 03:28:33 2019 +0000
+++ b/lang/ghc7/Makefile        Tue Oct 29 05:12:47 2019 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index