[Bug 2020530] Re: The debootstrap SRU to end all debootstrap SRUs

Launchpad Bug Tracker 2020530 at bugs.launchpad.net
Thu Jun 15 17:22:29 UTC 2023


This bug was fixed in the package ubuntu-dev-tools -
0.193ubuntu4~22.10.1

---------------
ubuntu-dev-tools (0.193ubuntu4~22.10.1) kinetic; urgency=medium

  * Backport current ubuntu-dev-tools to kinetic.  LP: #2021910.
    - this fixes compatibility with newer debootstrap which drops using
      per-Ubuntu-series symlinks for the bootstrap script.  LP: #2020530.

ubuntu-dev-tools (0.193ubuntu4) mantic; urgency=medium

  * Remove references to ftpmaster.internal.  When this name is resolvable
    but firewalled, syncpackage hangs; and these are tools for developers,
    not for running in an automated context in the DCs where
    ftpmaster.internal is reachable.

ubuntu-dev-tools (0.193ubuntu3) mantic; urgency=medium

  * Excise all references to cdbs (including in test cases)

ubuntu-dev-tools (0.193ubuntu2) lunar; urgency=medium

  [ Vladimir Petko ]
  * Fix a typo introduced in the last upload that made mk-sbuild fail
    unconditionally.  LP: #2017177.

ubuntu-dev-tools (0.193ubuntu1) lunar; urgency=medium

  * Set apt preferences for the -proposed pocket in mk-sbuild so that
    it works as expected for lunar and forward.

ubuntu-dev-tools (0.193) unstable; urgency=medium

  * Don't run linters at build time, or in autopkgtests. (Closes:
#1031436).

ubuntu-dev-tools (0.192) unstable; urgency=medium

  [ Benjamin Drung ]
  * sponsor-patch:
    + Ignore exit code 1 of debdiff call.
    + Use --skip-patches instead of --no-preparation with dpkg-source -x.
  * Demote bzr/brz from Recommends to Suggests, as nowadays git is the way.
    Closes: #940531
  * Use PEP440 compliant version in setup.py (LP: #1991606)
  * Fix issues found by flake8 on the Python scripts
  * Check Python scripts with flake8 again
  * Format Python code with black and run black during package build
  * Sort Python imports with isort and run isort during package build
  * Replace deprecated optparse with argparse
  * requestbackport: Remove useless loop from locate_package
  * reverse-depends: Restore field titles format
  * test: Fix deprecated return value for test case
  * Fix all errors and warnings found by pylint and implement most refactorings
    and conventions. Run pylint during package build again.
  * Bump Standards-Version to 4.6.2
  * Drop unneeded X-Python3-Version from d/control

  [ Masahiro Yamada ]
  * mk-sbuild:
    + Handle the new location of the Debian bullseye security archive.
      Closes: #1001832; LP: #1955116

  [ Mattia Rizzolo ]
  * requestbackport:
    + Apply patch from Krytarik Raido and Unit 193 to update the template and
      workflow after the new Ubuntu Backport process has been established.
      LP: #1959115

 -- Steve Langasek <steve.langasek at ubuntu.com>  Tue, 30 May 2023
17:58:54 -0700

** Changed in: ubuntu-dev-tools (Ubuntu Jammy)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debootstrap in Ubuntu.
https://bugs.launchpad.net/bugs/2020530

Title:
  The debootstrap SRU to end all debootstrap SRUs

Status in debootstrap package in Ubuntu:
  Fix Released
Status in ubuntu-dev-tools package in Ubuntu:
  Fix Released
Status in debootstrap source package in Bionic:
  Won't Fix
Status in ubuntu-dev-tools source package in Bionic:
  Won't Fix
Status in debootstrap source package in Focal:
  Fix Released
Status in ubuntu-dev-tools source package in Focal:
  Fix Released
Status in debootstrap source package in Jammy:
  Fix Released
Status in ubuntu-dev-tools source package in Jammy:
  Fix Released
Status in debootstrap source package in Kinetic:
  Fix Released
Status in ubuntu-dev-tools source package in Kinetic:
  Fix Released
Status in debootstrap source package in Lunar:
  Fix Released
Status in ubuntu-dev-tools source package in Lunar:
  Fix Released

Bug description:
  [Impact]
  Today, debootstrap requires a sourceful change to know about every target name.  This means that every 6 months, we have to do an upload of debootstrap as part of the archive opening so that it can build chroots for the new release.

  We have done this 30 times.

  It causes development drag, because the upload of debootstrap to the
  devel series is not instantaneous, usually gets hung up on failing
  autopkgtests of reverse-dependencies related to other aspects of the
  archive opening, and is slow to get SRUed back to stable series.

  And the only code change required in debootstrap is a symlink to the
  'gutsy' script which has not changed in 15 years.

  In mantic, I have changed the code to detect when the target series is
  one known to distro-info, and if it is, to default to the common
  Ubuntu bootstrap script.  This removes the need for any further
  uploads of debootstrap to inform it of new Ubuntu release names (and
  lets us remove 30 symlinks from the source package).

  [Test case]
  sudo apt install distro-info debootstrap
  series=$((distro-info --supported; distro-info --supported-esm)| sort -u)
  for s in $series; do
      if [ "$s" = mantic ]; then continue; fi
      sudo debootstrap $s ${s}-old
  done
  install debootstrap from -proposed
  for s in $series; do
      sudo debootstrap $s ${s}-new
  done
  for s in $series; do
      if [ "$s" = mantic ]; then continue; fi
      sudo diff -uNr ${s}-old ${s}-new
  done 2>&1 \
  | grep -vE 'No such file or directory|is a (character|block) special file|Binary files .*(\.pyc|/var/cache/.*) differ' \
  |filterdiff -x '*/etc/machine-id' -x '*/var/lib/dbus/machine-id' -x '*/var/log/**' -x '*/var/lib/dpkg/status*' -x '*/var/cache/**'
  (exclude from the diff: dangling (wide) symlinks; device files; compiled pyc files that will differ on each generation; and other text files that are randomly generated or contain timestamp or ordering differences)

  sudo apt install ubuntu-dev-tools
  sg sbuild -c 'mk-sbuild --skip-proposed mantic'

  [Where problems could occur]
  Because this adds a new dependency, there could be problems as a result of pulling it in.  However, distro-info is part of ubuntu-minimal, so is present on any supported Ubuntu system.

  [Original description]
  (on Jammy)
  # sg sbuild -c mk-sbuild --skip-proposed mantic
  Specified release (mantic) not known to debootstrap

  Without this update users cannot generate mantic chroots for
  development.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/2020530/+subscriptions




More information about the foundations-bugs mailing list