pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/poco devel/poco: Fix compiler check via pkglint
details: https://anonhg.NetBSD.org/pkgsrc/rev/5ea43a9b1f1b
branches: trunk
changeset: 405160:5ea43a9b1f1b
user: gdt <gdt%pkgsrc.org@localhost>
date: Sun Nov 24 01:03:28 2019 +0000
description:
devel/poco: Fix compiler check via pkglint
AUTOFIX: Makefile.common:49: Replacing "${PKGSRC_COMPILER} == \"sunpro\"" with "${PKGSRC_COMPILER:Msunpro}".
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:
devel/poco/Makefile.common | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r bcad5a7dfb30 -r 5ea43a9b1f1b devel/poco/Makefile.common
--- a/devel/poco/Makefile.common Sun Nov 24 01:02:37 2019 +0000
+++ b/devel/poco/Makefile.common Sun Nov 24 01:03:28 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.16 2019/11/03 10:39:28 rillig Exp $
+# $NetBSD: Makefile.common,v 1.17 2019/11/24 01:03:28 gdt Exp $
#
# used by devel/poco/Makefile
# used by databases/poco-data/Makefile
@@ -46,7 +46,7 @@
.if ${OPSYS} == "SunOS"
.include "../../mk/compiler.mk"
-. if ${PKGSRC_COMPILER} == "sunpro"
+. if ${PKGSRC_COMPILER:Msunpro}
CONFIGURE_ARGS+= --config=SunOS-SunStudio
. else
CONFIGURE_ARGS+= --config=SunOS-GCC
Home |
Main Index |
Thread Index |
Old Index