pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/rpm2pkg Avoid build issue with PKG_DEVELOPER ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0601f7ad7de0
branches:  trunk
changeset: 386708:0601f7ad7de0
user:      abs <abs%pkgsrc.org@localhost>
date:      Sat Oct 27 21:01:29 2018 +0000

description:
Avoid build issue with PKG_DEVELOPER and gcc-8

diffstat:

 pkgtools/rpm2pkg/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 7b90d7c4863a -r 0601f7ad7de0 pkgtools/rpm2pkg/Makefile
--- a/pkgtools/rpm2pkg/Makefile Sat Oct 27 20:58:39 2018 +0000
+++ b/pkgtools/rpm2pkg/Makefile Sat Oct 27 21:01:29 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.66 2015/10/11 10:56:44 tron Exp $
+# $NetBSD: Makefile,v 1.67 2018/10/27 21:01:29 abs Exp $
 
 PKGNAME=       rpm2pkg-3.2.3
 CATEGORIES=    pkgtools
@@ -30,7 +30,9 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if defined(PKG_DEVELOPER) && ${PKG_DEVELOPER} != "no"
+# using pkgsrc gcc8 fails to build with WARNS on NetBSD with:
+# .../stdlib.h:115:1: error: ignoring attribute â??pureâ?? in declaration of a built-in function â??absâ?? because it conflicts with attribute â??constâ?? [-Werror=attributes]
+.if defined(PKG_DEVELOPER) && ${PKG_DEVELOPER} != "no" && !empty(CC_VERSION:Mgcc-8)
 MAKE_ENV+=     WARNS=4
 .else
 MAKE_ENV+=     NOGCCERROR=yes



Home | Main Index | Thread Index | Old Index