Tue Apr 10 03:39:18 2018 UTC ()
xmahjongg: force c++03. Fixes build issue (GCC 6.4)

permstr.cc: In function 'bool operator==(PermString, const char*)':
permstr.cc:163:26: error: no matching function for call to 'operator==(PermString&, bool)'
   if (operator==(a, false) || !b)
                          ^
In file included from permstr.cc:19:0:
../include/lcdf/permstr.hh:113:1: note: candidate: bool operator==(PermString, PermString)
 operator==(PermString a, PermString b)
 ^~~~~~~~


(maya)
diff -r1.29 -r1.30 pkgsrc/games/xmahjongg/Makefile

cvs diff -r1.29 -r1.30 pkgsrc/games/xmahjongg/Makefile (expand / switch to unified diff)

--- pkgsrc/games/xmahjongg/Makefile 2012/10/06 11:55:01 1.29
+++ pkgsrc/games/xmahjongg/Makefile 2018/04/10 03:39:17 1.30
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1# $NetBSD: Makefile,v 1.29 2012/10/06 11:55:01 asau Exp $ 1# $NetBSD: Makefile,v 1.30 2018/04/10 03:39:17 maya Exp $
2# 2#
3 3
4DISTNAME= xmahjongg-3.7 4DISTNAME= xmahjongg-3.7
5PKGNAME= ${DISTNAME}0 5PKGNAME= ${DISTNAME}0
6CATEGORIES= games x11 6CATEGORIES= games x11
7MASTER_SITES= http://www.lcdf.org/~eddietwo/xmahjongg/ 7MASTER_SITES= http://www.lcdf.org/~eddietwo/xmahjongg/
8 8
9MAINTAINER= salo@NetBSD.org 9MAINTAINER= salo@NetBSD.org
10HOMEPAGE= http://www.lcdf.org/~eddietwo/xmahjongg/ 10HOMEPAGE= http://www.lcdf.org/~eddietwo/xmahjongg/
11COMMENT= The Chinese game of Mah Jongg for X11 11COMMENT= The Chinese game of Mah Jongg for X11
12 12
13GNU_CONFIGURE= YES 13GNU_CONFIGURE= YES
14USE_LANGUAGES= c c++ 14USE_LANGUAGES= c c++03
15 15
16.include "../../mk/bsd.prefs.mk" 16.include "../../mk/bsd.prefs.mk"
17# XXX: hack - work round an ICE with GCC 3.3 on sparc 17# XXX: hack - work round an ICE with GCC 3.3 on sparc
18.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc" 18.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc"
19GCC_REQD+= 3.4 19GCC_REQD+= 3.4
20.endif 20.endif
21 21
22.include "../../x11/libX11/buildlink3.mk" 22.include "../../x11/libX11/buildlink3.mk"
23.include "../../mk/bsd.pkg.mk" 23.include "../../mk/bsd.pkg.mk"