pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/cue mail/cue: Fix compiler check via pkglint



details:   https://anonhg.NetBSD.org/pkgsrc/rev/535afe7c1a93
branches:  trunk
changeset: 405161:535afe7c1a93
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Sun Nov 24 01:04:20 2019 +0000

description:
mail/cue: Fix compiler check via pkglint

AUTOFIX: hacks.mk:5: Replacing "${PKGSRC_COMPILER} == \"ido\"" with "${PKGSRC_COMPILER:Mido}".

The PKGSRC_COMPILER can be a list of chained compilers, e.g. "ccache
distcc clang". Therefore, comparing it using == or != leads to wrong
results in these cases.

diffstat:

 mail/cue/hacks.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 5ea43a9b1f1b -r 535afe7c1a93 mail/cue/hacks.mk
--- a/mail/cue/hacks.mk Sun Nov 24 01:03:28 2019 +0000
+++ b/mail/cue/hacks.mk Sun Nov 24 01:04:20 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: hacks.mk,v 1.1 2009/12/15 13:11:18 taca Exp $
+# $NetBSD: hacks.mk,v 1.2 2019/11/24 01:04:20 gdt Exp $
 
 .include "../../mk/compiler.mk"
 
-.if ${PKGSRC_COMPILER} == "ido"
+.if ${PKGSRC_COMPILER:Mido}
 CPPFLAGS+=     -DNO_ATTRIBUTE
 .endif



Home | Main Index | Thread Index | Old Index