pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler mk/compiler/ccache.mk: Use ccache3
details: https://anonhg.NetBSD.org/pkgsrc/rev/03cf5ee3bb75
branches: trunk
changeset: 389769:03cf5ee3bb75
user: gdt <gdt%pkgsrc.org@localhost>
date: Fri Dec 09 12:18:56 2022 +0000
description:
mk/compiler/ccache.mk: Use ccache3
The update to ccache4 caused a large increase in dependencies,
breaking builds using e.g. "PKGSRC_COMPILER=ccache gcc", and the
pre-update discussion of consequences and how to deal with it did not
occur.
The right long-term solution is to have a variable to select which
ccache is used, and per-version circular dependency lists, accomoding
both those who wish to use ccache 3 on low-resource machines and those
who wish to use ccache 4.
With 20224 branch manager hat on, I don't want to deal with ccache
instability (or any instability at all now that we are past 12/1), so
I have set ccache.mk to depend on ccache3, the status quo ante
argumentum.
Note that if one has any ccache installed, it will be used, so people
that want to use ccache4 can just install it and then flip on
"PKGSRC_COMPILER=ccache gcc".
diffstat:
mk/compiler/ccache.mk | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 81902c05cfa5 -r 03cf5ee3bb75 mk/compiler/ccache.mk
--- a/mk/compiler/ccache.mk Fri Dec 09 12:08:56 2022 +0000
+++ b/mk/compiler/ccache.mk Fri Dec 09 12:18:56 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ccache.mk,v 1.39 2019/09/02 02:23:02 rillig Exp $
+# $NetBSD: ccache.mk,v 1.40 2022/12/09 12:18:56 gdt Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -54,6 +54,14 @@
# Keywords: ccache
#
+# \todo We now have two versions of ccache, one with fairly light
+# dependencies and one with heavier dependencies (C++17, cmake, ruby).
+# Obviously some people are going to prefer one and some the other,
+# and thus the right approach is to have a CCACHE_TYPE variable that
+# can mean devel/ccache3 or devel/ccache, and to use that to control
+# both the circular dependency list and the package that is depended
+# on. For now (meaning the 2022Q4 branch), just set to ccache3.
+
.if !defined(COMPILER_CCACHE_MK)
COMPILER_CCACHE_MK= defined
@@ -130,7 +138,7 @@
# Add the dependency on ccache.
. if ${CCACHE_BASE} == ${LOCALBASE}
-TOOL_DEPENDS+= ccache-[0-9]*:../../devel/ccache
+TOOL_DEPENDS+= ccache-[0-9]*:../../devel/ccache3
. endif
# Override the compiler-specific hash with the version string for the
Home |
Main Index |
Thread Index |
Old Index