public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] buildchroot: Install ccache into the buildchroot only when enabled
@ 2022-06-10 16:28 Florian Bezdeka
  2022-06-13  7:13 ` Jan Kiszka
  2022-06-23 18:04 ` Anton Mikanovich
  0 siblings, 2 replies; 3+ messages in thread
From: Florian Bezdeka @ 2022-06-10 16:28 UTC (permalink / raw)
  To: isar-users; +Cc: jan.kiszka, Florian Bezdeka

This fixes a corner case where the buildchroot is not directly fetched
from Debian upstream repos but from something like a (manually
maintained) snapshot. There is no guarantee that the ccache packet is
available inside the buildchroot packet feed.

As soon as ccache is enabled by setting "USE_CCACHE" to "1" the packet
will be installed into the buildchroot.

Fixes: 20a2ff7704a2 ("meta: Support for ccache for custom packages")
Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
---
 meta/recipes-devtools/buildchroot/buildchroot.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/buildchroot/buildchroot.inc b/meta/recipes-devtools/buildchroot/buildchroot.inc
index aa190e9..c3067ad 100644
--- a/meta/recipes-devtools/buildchroot/buildchroot.inc
+++ b/meta/recipes-devtools/buildchroot/buildchroot.inc
@@ -32,7 +32,7 @@ BUILDCHROOT_PREINSTALL_COMMON = " \
     make \
     debhelper \
     autotools-dev \
-    ccache \
+    ${@ 'ccache' if d.getVar('USE_CCACHE') == '1' else ''} \
     dpkg \
     locales \
     docbook-to-man \
-- 
2.35.3


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

* Re: [PATCH] buildchroot: Install ccache into the buildchroot only when enabled
  2022-06-10 16:28 [PATCH] buildchroot: Install ccache into the buildchroot only when enabled Florian Bezdeka
@ 2022-06-13  7:13 ` Jan Kiszka
  2022-06-23 18:04 ` Anton Mikanovich
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2022-06-13  7:13 UTC (permalink / raw)
  To: Florian Bezdeka, isar-users

On 10.06.22 18:28, Florian Bezdeka wrote:
> This fixes a corner case where the buildchroot is not directly fetched
> from Debian upstream repos but from something like a (manually
> maintained) snapshot. There is no guarantee that the ccache packet is
> available inside the buildchroot packet feed.
> 
> As soon as ccache is enabled by setting "USE_CCACHE" to "1" the packet
> will be installed into the buildchroot.
> 
> Fixes: 20a2ff7704a2 ("meta: Support for ccache for custom packages")

Not really a fix, just a (valid) cleanup.

Jan

> Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
> ---
>  meta/recipes-devtools/buildchroot/buildchroot.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/buildchroot/buildchroot.inc b/meta/recipes-devtools/buildchroot/buildchroot.inc
> index aa190e9..c3067ad 100644
> --- a/meta/recipes-devtools/buildchroot/buildchroot.inc
> +++ b/meta/recipes-devtools/buildchroot/buildchroot.inc
> @@ -32,7 +32,7 @@ BUILDCHROOT_PREINSTALL_COMMON = " \
>      make \
>      debhelper \
>      autotools-dev \
> -    ccache \
> +    ${@ 'ccache' if d.getVar('USE_CCACHE') == '1' else ''} \
>      dpkg \
>      locales \
>      docbook-to-man \


-- 
Siemens AG, Technology
Competence Center Embedded Linux

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

* Re: [PATCH] buildchroot: Install ccache into the buildchroot only when enabled
  2022-06-10 16:28 [PATCH] buildchroot: Install ccache into the buildchroot only when enabled Florian Bezdeka
  2022-06-13  7:13 ` Jan Kiszka
@ 2022-06-23 18:04 ` Anton Mikanovich
  1 sibling, 0 replies; 3+ messages in thread
From: Anton Mikanovich @ 2022-06-23 18:04 UTC (permalink / raw)
  To: Florian Bezdeka, isar-users; +Cc: jan.kiszka

10.06.2022 19:28, Florian Bezdeka wrote:
> This fixes a corner case where the buildchroot is not directly fetched
> from Debian upstream repos but from something like a (manually
> maintained) snapshot. There is no guarantee that the ccache packet is
> available inside the buildchroot packet feed.
>
> As soon as ccache is enabled by setting "USE_CCACHE" to "1" the packet
> will be installed into the buildchroot.
>
> Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
Applied to next, thanks.

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

end of thread, other threads:[~2022-06-23 18:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10 16:28 [PATCH] buildchroot: Install ccache into the buildchroot only when enabled Florian Bezdeka
2022-06-13  7:13 ` Jan Kiszka
2022-06-23 18:04 ` Anton Mikanovich

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