pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/comms/asterisk16 comms/asterisk16: Fix compiler check ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ad8a0fdb8fdc
branches:  trunk
changeset: 344641:ad8a0fdb8fdc
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Sun Nov 24 01:14:10 2019 +0000

description:
comms/asterisk16: Fix compiler check via pkglint

AUTOFIX: Makefile:290: 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:

 comms/asterisk16/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1d726d7b1a7e -r ad8a0fdb8fdc comms/asterisk16/Makefile
--- a/comms/asterisk16/Makefile Sun Nov 24 01:08:21 2019 +0000
+++ b/comms/asterisk16/Makefile Sun Nov 24 01:14:10 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2019/11/03 12:04:12 rillig Exp $
+# $NetBSD: Makefile,v 1.50 2019/11/24 01:14:10 gdt Exp $
 #
 # NOTE: when updating this package, there are two places that sound
 #       tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -287,7 +287,7 @@
        ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
        ${INSTALL_DATA} ${WRKSRC}/doc/README.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
 
-.if ${OPSYS} != "Darwin" && ${PKGSRC_COMPILER} == "clang"
+.if ${OPSYS} != "Darwin" && ${PKGSRC_COMPILER:Mclang}
 .include "../../lang/libBlocksRuntime/buildlink3.mk"
 .endif
 



Home | Main Index | Thread Index | Old Index