From: Henning Schild <henning.schild@siemens.com>
To: <isar-users@googlegroups.com>
Cc: Henning Schild <henning.schild@siemens.com>
Subject: [PATCH] ccache: make sure ccache is really not used even when installed
Date: Fri, 22 Jul 2022 16:04:21 +0200 [thread overview]
Message-ID: <20220722140421.22357-1-henning.schild@siemens.com> (raw)
As soon as ccache is installed the build system meson will jump on it
and tries to use it. But it is not really usable when USE_CCACHE is not
enabled, the build will run into permission problems creating cache
files which anyhow will be ditched with the sbuild chroot.
Could be considered a bug in meson that it will use ccache if it is
installed, or it could be a bug in isar where ccache can not be used
inside the sbuild chroot ... while it is installed there.
Simply disabling it inside the chroot when disabled for that package
works well.
Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
meta/classes/dpkg.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
index b726ea9d8473..c772c0f5c6d2 100644
--- a/meta/classes/dpkg.bbclass
+++ b/meta/classes/dpkg.bbclass
@@ -60,6 +60,8 @@ dpkg_runbuild() {
if [ ${USE_CCACHE} -eq 1 ]; then
schroot_configure_ccache
+ else
+ sbuild_export CCACHE_DISABLE "1"
fi
profiles="${@ isar_deb_build_profiles(d)}"
--
2.35.1
next reply other threads:[~2022-07-22 14:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-22 14:04 Henning Schild [this message]
2022-07-22 19:33 ` Henning Schild
2022-08-01 6:20 ` Anton Mikanovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220722140421.22357-1-henning.schild@siemens.com \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox