pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/varnish



Module Name:    pkgsrc
Committed By:   gdt
Date:           Sun Nov 24 01:05:37 UTC 2019

Modified Files:
        pkgsrc/www/varnish: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/www/varnish/Makefile

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

Modified files:

Index: pkgsrc/www/varnish/Makefile
diff -u pkgsrc/www/varnish/Makefile:1.27 pkgsrc/www/varnish/Makefile:1.28
--- pkgsrc/www/varnish/Makefile:1.27    Thu Apr 25 07:33:28 2019
+++ pkgsrc/www/varnish/Makefile Sun Nov 24 01:05:37 2019
@@ -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 @@ CONFIGURE_ARGS+=      --with-rst2html=${PREFI
 .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