public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: "isar-users@googlegroups.com" <isar-users@googlegroups.com>,
	"Moessbauer, Felix" <felix.moessbauer@siemens.com>
Subject: Re: Rebuild issues in imaging steps with local packages
Date: Mon, 30 Jan 2023 11:15:41 +0300	[thread overview]
Message-ID: <2447313.XAFRqVoOGU@hp> (raw)
In-Reply-To: <ea8945dc1b566a61bfdb4bcbd0d86e4385f921e6.camel@siemens.com>

In mail from Monday, 30 January 2023 10:08:54 +03 user Moessbauer, Felix 
wrote:
> On Mon, 2023-01-30 at 09:43 +0300, Uladzimir Bely wrote:
> 
> > In mail from Monday, 30 January 2023 06:24:37 +03 user Moessbauer,
> > Felix 
> > wrote:
> > 
> > > Dear Devs,
> > > 
> > > I just observed a nasty rebuild issue in the imaging step:
> > > 
> > > When building a custom package that is later used in the
> > > IMAGER_INSTALL
> > > and IMAGER_BUILD_DEPS, this package does ONLY get updated on
> > > version
> > > changes. This can be checked by inspecting
> > > log.do_install_imager_deps
> > > and checking for a line "<package> is already the newest version".
> > > 
> > > I found this while debugging why a fresh build of the "Add BSP for
> > > StarFiveTech VisionFive2 Risc-V board" (v1) series on the ML is
> > > broken
> > > for another user. The reason was simply that I optimized it locally
> > > and
> > > made changes to the visionfive2-u-boot-firmware, which were not
> > > included in the final image.
> > > 
> > > This behavior is different from how packages in the rootfs are
> > > handled,
> > > but I did not debug yet why this is different. Maybe Adriaan can
> > > help.
> > > It could also well be, that this issue is automatically fixed when
> > > moving the imaging to the schroot.
> > > 
> > > Best regards,
> > > Felix
> > 
> > 
> > 
> > Hello.
> > 
> > We have a similar issue in our internal bug-tracking system,
> > discovered 
> > recently. In short:
> > 
> > - Image is built 1st time.
> > - Some patch is applied to U-Boot
> > - Image is rebuilt but doesn't contain the _updated_ U-Boot package
> > due to the 
> > same version number comparing to the 1st build.
> > 
> > It happend only with u-boot packages since it is not installed into
> > the output 
> > rootfs (boot partition has another source), but is handled in
> > buildchroot.
> 
> 
> Yes, that's exactly the same issue. For me it is the "visionfive2-u-
> boot-firmware" package from the mentioned series, that contains the u-
> boot FIT image for this board (check Patch 7/7 for details).
> 
> 
> > 
> > Quick fix with adding '--reinstall' in imager "apt-get install"
> > routines 
> > worked well, so it may be used for debugging.
> 
> 
> While we don't have the schroot based implementation, can we please
> integrate that hotfix into current ISAR? This bug is really nasty and
> hard to debug as it will likely only show / reproduce on the target.
> 
> Felix
> 

It would force reinstalling everything listed in IMAGER_INSTALL on every 
rootfs update, even if packages (fs tools, etc) don't need an update. So, I'm 
not sure it is worth applying this way.

But temporary local modification of do_install_imager_deps(), for debugging 
purposes - why not...

> 
> > 
> > Moving imager to schroot (it's under development right now) should
> > also help 
> > to solve the issue.
> > 
> > 
> > 
> 
> 





      reply	other threads:[~2023-01-30  8:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30  3:24 Moessbauer, Felix
2023-01-30  6:43 ` Uladzimir Bely
2023-01-30  7:08   ` Moessbauer, Felix
2023-01-30  8:15     ` Uladzimir Bely [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=2447313.XAFRqVoOGU@hp \
    --to=ubely@ilbers.de \
    --cc=felix.moessbauer@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