From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
To: "Moessbauer, Felix" <felix.moessbauer@siemens.com>
Cc: "ubely@ilbers.de" <ubely@ilbers.de>,
"Schild, Henning" <henning.schild@siemens.com>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Re: [PATCH] Reinstall imager deps if package in IMAGER_INSTALL has changed.
Date: Mon, 30 Jan 2023 14:00:58 +0100 [thread overview]
Message-ID: <CAJGKYO7wiT_VeETJw4EwJxs=AxFPH83HmE7caLxFQ5NUW4RbPw@mail.gmail.com> (raw)
In-Reply-To: <2601af9e373c6756e6adad7c6128a3acccbbc793.camel@siemens.com>
On Mon, 30 Jan 2023 at 13:28, Moessbauer, Felix
<felix.moessbauer@siemens.com> wrote:
>
> On Mon, 2023-01-30 at 11:53 +0100, Henning Schild wrote:
> > Am Mon, 30 Jan 2023 10:07:41 +0100
> > schrieb Uladzimir Bely <ubely@ilbers.de>:
> >
> > > When debugging packages in `isar-apt` that are in IMAGER_INSTALL
> > > list, they happen not to be updated in the resulting image.
> > >
> > > For example, in case of u-boot IMAGE_BOOT_FILES is used to generate
> > > files for `/boot` partition. Buildchroot is currently used for
> > > extracting required files from `u-boot`, `optee-os`, etc. These
> > > packages are installed in buildchroot via IMAGER_INSTALL list.
> > >
> > > Since modifications of the packages don't change their versions,
> > > updated packages don't go to buildchroot, so previously used
> > > versions
> > > are wrongly used. The following can be seen in log:
> > >
> > > "<package> is already the newest version"
> > >
> > > This patch forces reinstalling all the packages from IMAGER_INSTALL
> > > list if some of them has changed.
> >
> >
> > That makes some sense anyhow. But we should really watch out for such
> > issues and demand version bumping when contents change. Maybe not for
> > every recipe. Or we should include all recipes for IMAGER_INSTALL
> > into
> > the sstate input so the cache gets invalidated and the chroot gets
> > rebuild from scratch.
>
> I agree for packages that we deploy. But especially the imaging
> packages are often local-only and specific to the machine and
> configuration. By that, we should not require versioning.
>
I agree but because possible dependencies between our packages and
those are into the standard distribution,we would need to install all
IMAGER needs and then reinstall our deployments which does not change
very much but is slower in most of the cases. IMHO.
More in general, I think that we need to save - also in the sstate
cache - with our packages a md5sum signature just to have a way to
check if the package has been changed at binary level. This will work
better in conjunction with your patch for reproducibility and
moreover, adopting mount bind for the sbuild, it might give use a
local reproducibility to make the md5sum signature even more useful.
s/md5sum/shaNsum/g
Best regards, R-
prev parent reply other threads:[~2023-01-30 13:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 9:07 Uladzimir Bely
2023-01-30 10:53 ` Henning Schild
2023-01-30 12:28 ` Moessbauer, Felix
2023-01-30 13:00 ` Roberto A. Foglietta [this message]
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='CAJGKYO7wiT_VeETJw4EwJxs=AxFPH83HmE7caLxFQ5NUW4RbPw@mail.gmail.com' \
--to=roberto.foglietta@gmail.com \
--cc=felix.moessbauer@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=ubely@ilbers.de \
/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