public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* RFC: add maximum debootstrap storing time, or check for updates and invalidate
@ 2021-11-04 15:12 Henning Schild
  2021-11-04 15:25 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Schild @ 2021-11-04 15:12 UTC (permalink / raw)
  To: isar-users

Hi,

Isar does have the problem that a debootstrap does the only real
"apt-get update". That is in fact intentional but can lead to the
situation where an outdated chrootfs can break a build. I.e. apt-get
wants to install a package in a version that is not available upstream
anymore.

Now when this happens is impossible to say. It depends on the amount of
packages one has, maybe the distro one is using (sid moving faster than
oldstable), and frozen custom mirror never moving.

With local builds people usually clean all, and for sstate people will
also have to find their own way of dealing with it. But one could say
... it is becoming more of a problem. Not something to not merge the
sstate changes for, but something to think about for the future. 

My current idea would be to introduce
DISTRO_MAX_CHROOT_AGE?="3d"

anon python function
  if /var/..apt/ older than DISTRO_MAX_AGE
    cleanall bootstrap recipe, or somehow enforce re-run

An alternative (maybe better) would be to say

check_for_updates after rootfs_install
  copy rootfs to rootfs_tmp
  chroot rootfs_tmp
  apt-get update
  if "apt-get upgrade is not empty"
    bbwarn(image lacking some updates that meanwhile have been
    published)
    cleanall bootstrap recipe
    if ISAR_BE_STRICT_ABOUT_THAT=true
      fail

Henning

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

end of thread, other threads:[~2021-11-04 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 15:12 RFC: add maximum debootstrap storing time, or check for updates and invalidate Henning Schild
2021-11-04 15:25 ` Jan Kiszka
2021-11-04 15:37   ` Henning Schild

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