pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/glib devel/glib: Fix compiler check via pkglint



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3c424d260af
branches:  trunk
changeset: 418285:e3c424d260af
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Sun Nov 24 01:02:37 2019 +0000

description:
devel/glib: Fix compiler check via pkglint

AUTOFIX: Makefile:35: Replacing "${PKGSRC_COMPILER} == \"clang\"" with "${PKGSRC_COMPILER:Mclang}".

        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/glib/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 67ff43f85bc1 -r e3c424d260af devel/glib/Makefile
--- a/devel/glib/Makefile       Sun Nov 24 00:47:54 2019 +0000
+++ b/devel/glib/Makefile       Sun Nov 24 01:02:37 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.95 2019/05/23 19:22:58 rillig Exp $
+# $NetBSD: Makefile,v 1.96 2019/11/24 01:02:37 gdt Exp $
 
 DISTNAME=              glib-1.2.10
 PKGREVISION=           11
@@ -32,7 +32,7 @@
 CONFIGURE_ENV.NetBSD+= glib_cv_rtldglobal_broken=no
 
 # Tests are insufficient, override with correct values.
-.if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER} == "clang"
+.if ${OPSYS} == "Darwin" && ${PKGSRC_COMPILER:Mclang}
 CONFIGURE_ENV+=                glib_cv_has__inline=yes
 CONFIGURE_ENV+=                glib_cv_has__inline__=yes
 CONFIGURE_ENV+=                glib_cv_hasinline=yes



Home | Main Index | Thread Index | Old Index