summaryrefslogtreecommitdiff
path: root/pkgtools/pkgin
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2019-11-04 08:39:04 +0000
committerwiz <wiz@pkgsrc.org>2019-11-04 08:39:04 +0000
commit21acc5e43a075f0d71f7e97aea886bcfe8882a10 (patch)
tree72346f895c1be1754c39fe69ac61e73abc990482 /pkgtools/pkgin
parent137efc9d03152904ce6d65f86ae9ec93b881abe1 (diff)
downloadpkgsrc-21acc5e43a075f0d71f7e97aea886bcfe8882a10.tar.gz
pkgin: fix build with gcc-8.x
Turn off string truncation and overflow warnings until the code is fixed
Diffstat (limited to 'pkgtools/pkgin')
-rw-r--r--pkgtools/pkgin/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/pkgin/Makefile b/pkgtools/pkgin/Makefile
index 71983c956c7..aded140314b 100644
--- a/pkgtools/pkgin/Makefile
+++ b/pkgtools/pkgin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.91 2019/09/24 12:57:22 jperkin Exp $
+# $NetBSD: Makefile,v 1.92 2019/11/04 08:39:04 wiz Exp $
DISTNAME= pkgin-0.13.0
CATEGORIES= pkgtools
@@ -38,6 +38,12 @@ USE_TOOLS+= nroff
.include "../../mk/bsd.prefs.mk"
+# needed for gcc-8.x as of pkgin-0.13.0
+.if !empty(PKGSRC_COMPILER:Mgcc)
+CFLAGS+= -Wno-stringop-overflow
+CFLAGS+= -Wno-stringop-truncation
+.endif
+
SUBST_CLASSES.NetBSD+= osrel
SUBST_STAGE.osrel= pre-configure
SUBST_MESSAGE.osrel= Adjusting repository OS release