pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/rpm2pkg Fix both stupid errors in PKG_DEVELOP...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2095a8a0fcea
branches:  trunk
changeset: 314409:2095a8a0fcea
user:      abs <abs%pkgsrc.org@localhost>
date:      Sat Oct 27 21:03:09 2018 +0000

description:
Fix both stupid errors in PKG_DEVELOPER and gcc-8 check

diffstat:

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

diffs (18 lines):

diff -r c8334755052b -r 2095a8a0fcea pkgtools/rpm2pkg/Makefile
--- a/pkgtools/rpm2pkg/Makefile Sat Oct 27 21:01:29 2018 +0000
+++ b/pkgtools/rpm2pkg/Makefile Sat Oct 27 21:03:09 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.67 2018/10/27 21:01:29 abs Exp $
+# $NetBSD: Makefile,v 1.68 2018/10/27 21:03:09 abs Exp $
 
 PKGNAME=       rpm2pkg-3.2.3
 CATEGORIES=    pkgtools
@@ -32,7 +32,7 @@
 
 # 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)
+.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