[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Please upgrade your build environment when you are affected by transition



On Wed, Feb 26, 2014 at 02:24:01PM +0100, Jakub Wilk wrote:
> * Thorsten Glaser <t.glaser@tarent.de>, 2014-02-26, 12:54:
> >To add insult to injury, buildd/sbuild currently hardcode both
> >--apt-update --no-apt-dist-upgrade
> 
> My sbuild.conf contains this:
> 
> # APT_DISTUPGRADE
> # Type: BOOL
> # APT distupgrade.  1 to enable running "apt-get dist-upgrade" at the start
> # of each build, or 0 to disable.
> $apt_distupgrade = 0;
> 
> Admittedly, I've never tried enabling this option, and maybe
> buildd's sbuild is different…

It's not.  This is all completely configurable.  You can have it
apt-get update/upgrade/dist-upgrade at the start of every build.
update is enabled by default (needed to ensure build-deps can
be installed and sources can be fetched), but dist-upgrade is not
(historically out of concern things might break).  Now we are
using snapshotted chroots for all or most buildds, the risk is
far less and if the worst does happen you can just restore an
older snapshot or re-debootstrap, which takes all of 5 minutes.
You could, for example, have the source chroot dist-upgraded
using "sbuild-update -ud" via cron on a daily basis, and
every build also do a dist-upgrade to ensure the build chroot is
always completely up to date.

Before we had snapshotted build chroots, and had to manually
uninstall all build-deps, the chance of a dist-upgrade breaking
a dirty chroot was non-negligable.  But if the source chroot is
a minimal debootstrap which is always kept clean (i.e. the
buildd admin should never customise it in any way), it should
always be safe to upgrade bar any major SNAFU on the part of
a base package maintainer which breaks the base system.

On the sbuild side, we could revisit the default for end users
and buildds and enable dist-upgrade by default for one or both
of these if there's consensus that this is desirable and safe
to do.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800


Reply to: