pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/coreutils



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

Modified Files:
        pkgsrc/sysutils/coreutils: Makefile.common

Log Message:
sysutils/coreutils: Fix compiler check via pkglint

AUTOFIX: Makefile.common:51: 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.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/sysutils/coreutils/Makefile.common

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

Modified files:

Index: pkgsrc/sysutils/coreutils/Makefile.common
diff -u pkgsrc/sysutils/coreutils/Makefile.common:1.20 pkgsrc/sysutils/coreutils/Makefile.common:1.21
--- pkgsrc/sysutils/coreutils/Makefile.common:1.20      Mon Nov  4 21:28:43 2019
+++ pkgsrc/sysutils/coreutils/Makefile.common   Sun Nov 24 01:05:00 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.20 2019/11/04 21:28:43 rillig Exp $
+# $NetBSD: Makefile.common,v 1.21 2019/11/24 01:05:00 gdt Exp $
 #
 # used by sysutils/coreutils/Makefile
 # used by misc/gnuls/Makefile
@@ -48,7 +48,7 @@ CFLAGS+=              -O2
 
 # clang on SunOS parses -errwarn as an -e entry point argument to the linker,
 # which ignores it as it's a duplicate argument.  Turn it off explicitly.
-.if ${PKGSRC_COMPILER} == "clang"
+.if ${PKGSRC_COMPILER:Mclang}
 CONFIGURE_ENV.SunOS+=  gl_cv_warn_c__errwarn=no
 .endif
 



Home | Main Index | Thread Index | Old Index