Fri Oct 16 11:46:39 2020 UTC ()
For GCC9, add -Wno-error=format-overflow -Wno-error=stringop-truncation to
fix build.


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

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

--- pkgsrc/sysutils/acpica-utils/Makefile 2020/03/22 12:24:58 1.14
+++ pkgsrc/sysutils/acpica-utils/Makefile 2020/10/16 11:46:39 1.15
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.14 2020/03/22 12:24:58 rillig Exp $ 1# $NetBSD: Makefile,v 1.15 2020/10/16 11:46:39 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
@@ -41,18 +41,23 @@ do-test: @@ -41,18 +41,23 @@ do-test:
41 cd ${WRKSRC}/tests && ./aslts.sh -u 41 cd ${WRKSRC}/tests && ./aslts.sh -u
42## API tests 42## API tests
43 cd ${WRKSRC}/tests/aapits && gmake 43 cd ${WRKSRC}/tests/aapits && gmake
44 cd ${WRKSRC}/tests/aapits/asl && \ 44 cd ${WRKSRC}/tests/aapits/asl && \
45 ASL=${WRKSRC}/generate/unix/bin/iasl gmake 45 ASL=${WRKSRC}/generate/unix/bin/iasl gmake
46# This one needs to be fixed 46# This one needs to be fixed
47# cd ${WRKSRC}/tests/aapits/bin && ./aapitsrun 47# cd ${WRKSRC}/tests/aapits/bin && ./aapitsrun
48## Template tests 48## Template tests
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.if !empty(CC_VERSION:Mgcc-[89]*) 55.if !empty(CC_VERSION:Mgcc-[89]*)
55CFLAGS+= -Wno-error=format-truncation 56CFLAGS+= -Wno-error=format-truncation
56.endif 57.endif
 58.if !empty(CC_VERSION:Mgcc-9*)
 59CFLAGS+= -Wno-error=format-overflow \
 60 -Wno-error=stringop-truncation
 61.endif
57 62
58.include "../../mk/bsd.pkg.mk" 63.include "../../mk/bsd.pkg.mk"