public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] ccache: make sure ccache is really not used even when installed
@ 2022-07-22 14:04 Henning Schild
  2022-07-22 19:33 ` Henning Schild
  2022-08-01  6:20 ` Anton Mikanovich
  0 siblings, 2 replies; 3+ messages in thread
From: Henning Schild @ 2022-07-22 14:04 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-01  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22 14:04 [PATCH] ccache: make sure ccache is really not used even when installed Henning Schild
2022-07-22 19:33 ` Henning Schild
2022-08-01  6:20 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox