pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkgin pkgin: fix build with gcc-8.x



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb78fb2459e1
branches:  trunk
changeset: 403976:cb78fb2459e1
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Nov 04 08:39:04 2019 +0000

description:
pkgin: fix build with gcc-8.x

Turn off string truncation and overflow warnings until the code is fixed

diffstat:

 pkgtools/pkgin/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r a220d1b535ba -r cb78fb2459e1 pkgtools/pkgin/Makefile
--- a/pkgtools/pkgin/Makefile   Mon Nov 04 08:14:00 2019 +0000
+++ b/pkgtools/pkgin/Makefile   Mon Nov 04 08:39:04 2019 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index