pkgsrc-Changes archive

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

CVS commit: pkgsrc/pkgtools/rpm2pkg



Module Name:    pkgsrc
Committed By:   abs
Date:           Sat Oct 27 21:01:29 UTC 2018

Modified Files:
        pkgsrc/pkgtools/rpm2pkg: Makefile

Log Message:
Avoid build issue with PKG_DEVELOPER and gcc-8


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 pkgsrc/pkgtools/rpm2pkg/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/rpm2pkg/Makefile
diff -u pkgsrc/pkgtools/rpm2pkg/Makefile:1.66 pkgsrc/pkgtools/rpm2pkg/Makefile:1.67
--- pkgsrc/pkgtools/rpm2pkg/Makefile:1.66       Sun Oct 11 10:56:44 2015
+++ pkgsrc/pkgtools/rpm2pkg/Makefile    Sat Oct 27 21:01:29 2018
@@ -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 @@ MAKE_FLAGS+=          ACTIVE_CC=clang
 
 .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