Mon May 10 09:25:10 2021 UTC ()
acpica-utils: Fix build with GCC10 by adding some -Wno-error=xxx.


(rin)
diff -r1.15 -r1.16 pkgsrc/sysutils/acpica-utils/Makefile

cvs diff -r1.15 -r1.16 pkgsrc/sysutils/acpica-utils/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/acpica-utils/Makefile 2020/10/16 11:46:39 1.15
+++ pkgsrc/sysutils/acpica-utils/Makefile 2021/05/10 09:25:10 1.16
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.15 2020/10/16 11:46:39 rin Exp $ 1# $NetBSD: Makefile,v 1.16 2021/05/10 09:25:10 rin Exp $
2# 2#
3 3
4DISTNAME= acpica-unix2-20160930 4DISTNAME= acpica-unix2-20160930
5PKGNAME= ${DISTNAME:S/-unix2-/-utils-/} 5PKGNAME= ${DISTNAME:S/-unix2-/-utils-/}
6PKGREVISION= 1 6PKGREVISION= 1
7CATEGORIES= sysutils devel 7CATEGORIES= sysutils devel
8MASTER_SITES= https://acpica.org/sites/acpica/files/ 8MASTER_SITES= https://acpica.org/sites/acpica/files/
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://www.acpica.org/ 11HOMEPAGE= https://www.acpica.org/
12COMMENT= Intel ACPI CA Unix utilities 12COMMENT= Intel ACPI CA Unix utilities
13LICENSE= modified-bsd OR gnu-gpl-v2 13LICENSE= modified-bsd OR gnu-gpl-v2
14 14
@@ -49,15 +49,20 @@ do-test: @@ -49,15 +49,20 @@ do-test:
49# This test is broken too 49# This test is broken too
50# cd ${WRKSRC}/tests/templates && gmake 50# cd ${WRKSRC}/tests/templates && gmake
51 51
52.include "../../mk/compiler.mk" 52.include "../../mk/compiler.mk"
53 53
54# XXX 54# XXX
55.if !empty(CC_VERSION:Mgcc-[89]*) 55.if !empty(CC_VERSION:Mgcc-[89]*)
56CFLAGS+= -Wno-error=format-truncation 56CFLAGS+= -Wno-error=format-truncation
57.endif 57.endif
58.if !empty(CC_VERSION:Mgcc-9*) 58.if !empty(CC_VERSION:Mgcc-9*)
59CFLAGS+= -Wno-error=format-overflow \ 59CFLAGS+= -Wno-error=format-overflow \
60 -Wno-error=stringop-truncation 60 -Wno-error=stringop-truncation
61.endif 61.endif
 62.if !empty(CC_VERSION:Mgcc-10*)
 63CFLAGS+= -Wno-error=format-overflow \
 64 -Wno-error=format-truncation \
 65 -Wno-error=stringop-truncation
 66.endif
62 67
63.include "../../mk/bsd.pkg.mk" 68.include "../../mk/bsd.pkg.mk"