pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/varnish www/varnish: Fix compiler check via pkglint
details: https://anonhg.NetBSD.org/pkgsrc/rev/207b0cc27a7e
branches: trunk
changeset: 418289:207b0cc27a7e
user: gdt <gdt%pkgsrc.org@localhost>
date: Sun Nov 24 01:05:37 2019 +0000
description:
www/varnish: Fix compiler check via pkglint
AUTOFIX: Makefile:58: 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:
www/varnish/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ca18dbc898b8 -r 207b0cc27a7e www/varnish/Makefile
--- a/www/varnish/Makefile Sun Nov 24 01:05:00 2019 +0000
+++ b/www/varnish/Makefile Sun Nov 24 01:05:37 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2019/04/25 07:33:28 maya Exp $
+# $NetBSD: Makefile,v 1.28 2019/11/24 01:05:37 gdt Exp $
#
DISTNAME= varnish-3.0.6
@@ -55,7 +55,7 @@
.if ${OPSYS} == "SunOS"
# Explicitly disable epoll on illumos, provided for Linux compat only.
CONFIGURE_ENV+= ac_cv_func_epoll_ctl=no
-. if ${PKGSRC_COMPILER} == "sunpro"
+. if ${PKGSRC_COMPILER:Msunpro}
CONFIGURE_ENV+= VCC_CC="cc ${_COMPILER_ABI_FLAG.${ABI}} -Kpic -G -o %o %s"
. else
CONFIGURE_ENV+= VCC_CC="gcc ${_COMPILER_ABI_FLAG.${ABI}} -fpic -shared -o %o %s"
Home |
Main Index |
Thread Index |
Old Index