[Buildd-tools-devel] Working towards a new sbuild release

Roger Leigh rleigh at whinlatter.ukfsn.org
Sun Mar 12 00:06:21 UTC 2006


Hi folks,

After a few weeks of work, quite a lot of bugs, many of them
long-standing, have been fixed at last!

The full list of changes is below.  Does anyone have any problems with
any of the changes, or need to make any other changes before the
release?  I've copied all the main patches either to the list or the
relevant bug, but I've not had a great deal of feedback, either
positive or negative, about many of the changes, so if there are any
problems, please do say!

A sample test release is here:
http://people.debian.org/~rleigh/sbuild-test/

Any additional testing would be really useful.


Regards,
Roger


sbuild (0.42) UNRELEASED; urgency=low

  * sbuild:
    - get_apt_command_internal(): Always add $main::chroot_apt_options.
    - log_command(): Add an additional priority argument.  If nonzero,
      the message is always logged, otherwise is only logged if debug is
      enabled.
    - get_command_internal(): When running schroot, preserve the user
      environment, needed for APT_CONFIG, DEBIAN_FRONTEND, etc..
    - get_command(), run_command(), exec_command(), get_apt_command(),
      run_apt_command():
      + chdir to $main::cwd to make sure the directory location also exists
        inside the chroot.
      + Add an additional priority argument to control the urgency of the
        log message, and pass this to log_command().
    - get_virtuals(): Remove usage of $main::chroot_apt_options, which is
      added automatically by get_apt_command().
    - get_command(), run_command() and exec_command() only log the full
      command when debugging is enabled, otherwise only the short form is
      logged (Closes: #355043).
    - setup_options():
      + Ensure APT_CONFIG is set to the correct path depending upon the
        chroot_mode.  $chroot_aptconf is the absolute path to the file from
        the host system, while $aptconf is the absolute path when apt is
        run.
      + Only set $main::chroot_apt_options when chroot_mode is "split".
      + Always regenerate apt.conf, because when chroot_mode is changed, it
        will break APT unless rewritten.
      + Don't set "Dir" in $chroot_aptconf when in chroot_mode is "schroot"
        (because apt is run inside the chroot).
    - Remove setpgrp() calls, so that all child processes run in the same
      process group as the parent.
    - Add a $conf::sbuild_mode, used to switch behaviour between user and
      buildd defaults.  The default is "buildd".  This allows package build
      errors to be reported (Closes: #170742).
    - Add a --quiet option, the opposite action to --verbose.
    - open_pkg_log():
      + Use correct Sbuild:: namespace for binNMU_version (Closes: #355861).
      + Create current-distribution symlink in addition to current.
    - Set the in the environment SHELL=/bin/sh, in case the user
      invoking sbuild uses a shell not available inside the chroot.
    - Remove unused variables @dist_parts and $main::nomail.
    - Use correct use syntax for File::Temp and Cwd, and initialise a
      number of variables which would otherwise be undefined, in order
      to remove run-time warnings.
    - Add a number of checks for undefined variables to remove run-time
      warnings.
    - Add -w to the shebang line, so sbuild always runs with warnings
      enabled.
    - All exec commands other than writing logfiles now use exec_command,
      so they get logged.
    - Require /usr/share/sbuild/sbuild.conf and optionally require
      /etc/sbuild/sbuild.conf.
    - Use named signals, rather than numbers, for portability.
    - close_log(), close_pkg_log: If verbose is enabled, flush the log and
      wait a second before killing tee, to prevent data loss in the pipline.
    - $main::verbose is set by default if running on a tty (Closes: #355802).
    - LOG and PLOG are set to autoflush using IO::Handle.
    - $conf::build_dir defaults to $main::cwd if undefined.  It is used as
      the directory containing the build chroots, build logs, and current
      symlinks (Closes: #183022).
    - Always print toolchain packages.  This is done by always calling
      merge_pkg_build_deps(), and running all the way through
      install_deps(), even when the package does not supply any build
      dependencies or conflicts (Closes: #355040).
  * sbuild.conf: Don't require local config file.
  * sbuild.conf.local: Add $sbuild_mode, defaulting to "buildd".
  * example.sbuildrc: Add $build_dir example.
  * sbuild.1: Document --quiet.
  * sbuild-setup.5:
    - Split chroot setup and user setup into two sections.
    - Document sudoers env_keep setup (Closes: #355072, #355604).
  * Sbuild.pm: Remove unused module 'IO'.
  * chroot/add_sbuild_user: Add sudoers env_keep example.
  * debian/README.Debian: Document existence of sbuild-setup(7).
  * debian/control:
    - Depend on perl-modules (for File::Temp).
    - Recommend schroot 0.2.7 or later (for preserving the environment).
  * debian/dirs: Add etc/sbuild.
  * debian/rules:
    - Remove "make clean" in clean target; there is no Makefile, so this is
      redundant.
    - Install sbuild.conf as /usr/share/sbuild/sbuild.conf and
      sbuild.conf.local as /etc/sbuild/sbuild.conf.
  * debian/preinst:
    - New conffile.
    - Remove /etc/sbuild.conf.local if not locally modified.
  * debian/postinst:
    - Move /etc/sbuild.conf.local to /etc/sbuild/sbuild.conf if needed.
    - Reindent.
  * debian/postrm:
    - Unlink /etc/sbuild.conf if present.
    - Unlink files under /var/lib/sbuild.
    - Reindent.

 --

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gutenprint.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20060312/cda7888a/attachment.pgp


More information about the Buildd-tools-devel mailing list