From: Jan Kiszka <jan.kiszka@siemens.com>
To: Cedric Hombourger <chombourger@gmail.com>,
isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] add support for rebuilding essential packages
Date: Tue, 28 Feb 2023 08:19:06 +0100 [thread overview]
Message-ID: <d1384d4c-691c-8d3c-9f34-a97d7479bb27@siemens.com> (raw)
In-Reply-To: <f6dce032-c556-4c17-9fdc-5f69285d85ccn@googlegroups.com>
On 28.02.23 08:06, Cedric Hombourger wrote:
>
>
> On Monday, February 20, 2023 at 11:32:22 AM UTC+1 Adriaan Schmidt wrote:
>
> There are cases when we need to rebuild a package that is installed
> during
> bootstrap (we call those "essential package" here). This patch
> introduces
> `ISAR_REBUILD_ESSENTIAL_PKGS` which can be set in (distro/layer)
> config, and
> lists all essential packages.
>
> During build, Isar ensures that essential packages are built before
> any others,
> so that their locally built versions are available in isar-apt, and
> will
> be used in any subsequent package builds.
>
> Signed-off-by: Adriaan Schmidt <adriaan...@siemens.com>
>
> ---
> This has interdependencies with the proposed multiarch feature,
> and builds on v2 of that series.
>
> Adriaan
> ---
> meta/classes/dpkg-base.bbclass | 1 +
> meta/classes/essential.bbclass | 39 ++++++++++++++++++++++++++++++++++
> meta/classes/image.bbclass | 1 +
> 3 files changed, 41 insertions(+)
> create mode 100644 meta/classes/essential.bbclass
>
> diff --git a/meta/classes/dpkg-base.bbclass
> b/meta/classes/dpkg-base.bbclass
> index 55cc6655..ce301346 100644
> --- a/meta/classes/dpkg-base.bbclass
> +++ b/meta/classes/dpkg-base.bbclass
> @@ -10,6 +10,7 @@ inherit debianize
> inherit terminal
> inherit repository
> inherit deb-dl-dir
> +inherit essential
>
> DEPENDS ?= ""
> RPROVIDES ?= "${PROVIDES}"
> diff --git a/meta/classes/essential.bbclass
> b/meta/classes/essential.bbclass
> new file mode 100644
> index 00000000..cb444674
> --- /dev/null
> +++ b/meta/classes/essential.bbclass
> @@ -0,0 +1,39 @@
> +# This software is a part of ISAR.
> +# Copyright (C) 2023 Siemens AG
> +
> +ISAR_REBUILD_ESSENTIAL_PKGS ?= ""
> +
> +python() {
> + isar_rebuild_essential_pkgs =
> (d.getVar('ISAR_REBUILD_ESSENTIAL_PKGS', True) or '').split()
>
>
> ",True" should not be necessary
> here's getVar()'s signature:
>
> def getVar(self, var, expand=True, noweakdefault=False, parsing=False)
>
Yep, we still see this pattern popping up.
I fact, we have 85(!) left-overs of this legacy pattern in Isar. Let's
we write a quick patch...
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
next prev parent reply other threads:[~2023-02-28 7:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-20 10:32 Adriaan Schmidt
2023-02-20 11:24 ` Jan Kiszka
2023-02-28 7:06 ` Cedric Hombourger
2023-02-28 7:19 ` Jan Kiszka [this message]
2023-03-06 6:06 ` Uladzimir Bely
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=d1384d4c-691c-8d3c-9f34-a97d7479bb27@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=chombourger@gmail.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