lp:ubuntu/hardy/sbuild

Created by James Westby and last modified
Get this branch:
bzr branch lp:ubuntu/hardy/sbuild
Members of Ubuntu branches can upload to this branch. Log in for directions.

Related bugs

Related blueprints

Branch information

Owner:
Ubuntu branches
Review team:
Ubuntu Development Team
Status:
Mature

Recent revisions

11. By Adam Conrad

Sbuild.pm: Using "eq" instead of "==" for string comparisons tends
to work a little bit better (and fixes a regression from -1ubuntu1)

10. By Adam Conrad

* Sbuild.pm: If we're trying to compare versions against a provided
  package, always return "not satisfied", forcing an install attempt.
* Modify Maintainer value to comply with Debian-Maintainer-Field Spec.

9. By Roger Leigh

* Sbuild/*.pm: Reindent to increase readability.
* Sbuild/Chroot.pm: set APT::Install-Recommends to false inside the
  chroot (Closes: #449253).
* Sbuild/Conf.pm: Add and export $check_depends_algorithm.
  [Jan-Marek Glogowski]
* sbuild:
  - Reindent to increase readability.
  - Add additional syntax checks. Thanks to Jan-Marek Glogowski.
  - build: Use unicode line drawing characters instead of ASCII.
  - filter_dependencies: Remove redundant conditional.
    [Jan-Marek Glogowski]
  - Add check for check-depends-algorithm option. [Jan-Marek Glogowski]
  - filter_dependencies: Change dependency behaviour depending upon
    check_depends_algorithm. [Jan-Marek Glogowski]
  - Move to bin/.
* avg-pkg-build-time:
  - Move to bin/.
* bin/*: Reindent to increase readability.
* chroot/*: Reindent to increase readability.
* bin/sbuild-createchroot:
  - Moved from chroot/buildd.chroot.
  - Also install fakeroot and build-essential.
* sbuild-createchroot.1.in: Add manual page.
* chroot/buildd.chroot:
  - Add GPL boilerplate.
  - Remove /etc/passwd creation (already done by debootstrap).
  - Remove sbuild directory creation (already done by schroot).
  - Use here doc to set up /etc/apt/sources.list.
  - List sources.list.
* chroot/README: Rename from README.buildd-chroot. Remove
  buildd.chroot section.
* example.sbuildrc: Add missing variable types. [Jan-Marek Glogowski]
* example.sbuildrc: Add missing variable types and add
  $check_depends_algorithm. [Jan-Marek Glogowski]
* sbuild.1: Document --check-depends-algorithm [Jan-Marek Glogowski]
* Move manual pages to man/.
* debian/manpages: Move manual pages to man/.
* sbuild.conf: Move to etc/.
* example.sbuildrc: Move to etc/.
* debian/compat: Move to debhelper v6 compatibility level.
* debian/control: Update to Standards-Version 3.7.3.
* debian/copyright:
  - Update git repository location.
  - Update GPL boilerplate.
* debian/sbuild.dirs:
  - Rename from debian/dirs.
  - Remove all but -var/lib/sbuild/srcdep-lock.
* debian/manpages: Remove.
* debian/sbuild.postinst: Rename from debian/postinst.
* debian/sbuild.preinst: Rename from debian/preinst.
* debian/sbuild.postrm: Rename from debian/postrm.
* debian/sbuild.install:
  - New file.
  - Install files from usr/sbin and usr/share/man/man8.
* debian/rules:
  - Install sbuild-createchroot, and add buildd.chroot compatibility
    symlink.
  - Move -stamp files to debian/.
  - Remove GENFILES.
  - Run configure, make, and make install in appropriate rules.
  - Use dh_install.
  - Remove all special-cased installation rules (now handled by automake).
* Note: All upstream changes are now in an upstream ChangeLog.

8. By Roger Leigh

* sbuild
  - Fix --force-orig-source option which was renamed to
    --force_orig_source while rewriting the options parsing logic to use
    Getopt::Long (Closes: #428205). Thanks to Alec Berryman for
    reporting this regression.
  - Accept arguments for options requiring a string (Closes: #431216).
    Thanks to Anders Kaseorg for the patch for this regression.
* debian/preinst: Use dpkg-query in place of /var/lib/dpkg/status.

7. By Reinhard Tartler

[ Roger Leigh ]
* sbuild
  - Fix --force-orig-source option which was renamed to
    --force_orig_source while rewriting the options parsing logic to use
    Getopt::Long (Closes: #428205). Thanks to Alec Berryman for
    reporting this regression.

[ Reinhard Tartler ]
 * fetch the above patch from debbugs and upload to gutsy.

6. By Roger Leigh

* sbuild:
  - Parse options with Getopt::Long.
  - Remove trailing whitespace.
  - Initialise $main::sub_task with a value, in case the build gets
    terminated prior to it being used.
  - Change the position of begin_session, so that it matches the cleanup
    order on shutdown.
  - build:
    + Document the regex which strips the epoch from the version
      number.
    + Remove the call to setsid when forking dpkg-buildpackage, because
      this broke shell job control. Some packages might possibly hang
      while building if they detect they have a controlling terminal, but
      IMO this is a bug in the package.
    + When handling the timeout for dpkg-buildpackage, make the $SIG{'ALRM'}
      handler local, so that it is restored to the default once the build
      has finished.
    + When calling mv to move files, use -f to make sure it doesn't run
      interactively.
  - check_dependencies: If a toolchain package is missing, print a
    "not installed" message, rather than a blank version.
  - dsc_md5sums: Log failure to open the .dsc.
  - fetch_source_files: Strip the epoch of the version number, so that
    $dscbase matches the .dsc filename in the filesystem (Closes: #425715).
    Thanks to Lucas Nussbaum.
  - merge_pkg_build_deps: Replace references to "central" src deps with
    build-essential deps.
  - parse_manual_srcdeps: New function, to replace the addition of manual
    source dependencies from the removed read_deps() function.
  - shutdown: Call end_session to clean up the chroot.
* Sbuild/Chroot.pm:
  - end_session:
    + Add a debugging message.
    + Clear $schroot_session.
* Sbuild/Conf.pm: Add linux-libc-dev, gnumach-dev, hurd-dev and
  kfreebsd-kernel-headers to @toolchain_regex. Thanks to Clint Adams
  (Closes: #425855).
* Sbuild/Log.pm.in:
  - Remove trailing whitespace.
  - open_log, open_pkg_log: Ignore SIGINT, SIGQUIT, SIGTERM and SIGPIPE
    in the logger processes, so that logging continues if the process
    group is signalled to terminate. They will exit when the group leader
    exits or closes the pipe.
* debian/changelog: Fix missing colon in bug closure for revision 0.2.4.
* debian/compat: New file. Set to debhelper compatibility level 5.
* debian/control: Depend on debhelper v5.
* debian/NEWS: Renamed from debian/NEWS.Debian (Closes: #425370).
  Thanks to Lucas Nussbaum for spotting this.
* debian/rules: Remove DH_COMPAT.

5. By Roger Leigh

* debian/control:
  - Remove sudo from Depends.
  - Add schroot to Depends.
  - Remove schroot from Recommends.
  - Depend on dctrl-tools rather than the transitional grep-dctrl package.
    Thanks to Jonh Wendell (Closes: #417573).
* debian/rules:
  - Don't install sbuild.conf.local.
  - Install sbuild.conf into /etc/sbuild.
* debian/NEWS.Debian:
  - New file.
  - Document removal of manual source dependencies and sudo.
  - Document removal of support for building from a directory.
  - Document removal of building on the host system.
  - Document sudo->schroot migration.
  - Document change in $sbuild_mode default.
* debian/README.Debian:
  - Document removal of manual src-deps.
  - Remove requirements for chroot symlinks in working directory.
* sbuild:
  - Remove read_deps, so manual src-deps are no longer read. The
    remainder of the manual src-deps support remains to be removed.
  - Quote all arguments to system commands such as "rm -rf", to prevent
    potential disasters.
  - Update copyrights, and encode in UTF-8.
  - Use "du -k -s" instead of "du -s" to increase portability. Thanks to
    Martin Koeppe (Closes: #418061).
  - Compute package, version, directory and whether to download sources
    before calling fetch_source_files, because all the needed information
    is available at this point.
  - cleanup_packages:
    + Remove check for schroot when removing build dependencies, since
      schroot is the default.
    + Remove undo_specials().
  - build:
    + Remove do_apply_patches.
    + Replace "822-date" with "date -R". Thanks to Guillem Jover for
      this patch (Closes: #415798).
    + Remove support for building from a directory.
    + Run dpkg-source from within the chroot.
    + Don't chdir before running dpkg-source.
    + Don't chdir before running dpkg-parsechangelog (do it in the
      schroot child process).
    + Remove obsolete code for running dpkg-buildpackage outside a chroot.
  - fetch_source_files:
    + Remove support for building from a directory.
    + Download sources directly into the chroot build directory. For
      sources already existing outside the chroot, copy them into the
      chroot build directory.
    + Add extra directory, package, version and download arguments.
    + Only call dsc_md5sums once, rather than twice.
  - apply_patches: Remove.
  - get_special: Remove use of @main::global_patches.
  - Remove SVN Id:.
  - install_deps: Remove @special use.
  - unpack_special_source: Remove.
  - undo_specials: Remove.
  - filter_dependencies: Remove @special use.
  - run_script: Remove.
  - parse_one_srcdep: Remove @special use.
  - get_special: Remove.
  - write_srcdep_lock_file: Remove @special use.
  - check_srcdep_conflicts: Remove @special use.
  - dump_main_state: New function to dump the program state using
    Data::Dumper. Use to dump the state after each build.
  - Add / separators to all users of $main::chroot_build_dir in paths.
  - Replace all users of regular expressions to strip the chroot dir
    from paths with strip_chroot_path.
  - get_dpkg_status: Print debugging messages with defined variables
    only, to avoid Perl warning.
  - verify_md5sums: Remove obsolete comment regarding chroots.
  - check_group_membership: New function to check the user is a member
    of the sbuild group (Closes: #414064).
  - Added new command-line argument --arch to specify the architecture,
    and pass this to begin_session (Closes: 410576).
* Sbuild/Chroot.pm:
  - Remove all special casing for sudo and schroot. schroot is now the
    only supported method of accessing chroots.
  - end_session: Only attempt to end a session when $schroot_session is
    non-empty.
  - _setup_options:
    + Remove use of $chroot_only.
    + Remove trailing / from 'Build Location'.
  - init: Add newline to debugging message.
  - strip_chroot_path: New function to strip the chroot location from a
    path.
  - log_command: Correctly log commands when no APT Options stripping is
    needed.
  - get_command_internal: Set the working directory inside the chroot to
    the build location.
  - begin_session: take the architecture as a second argument, and check
    if a chroot specific for the architecture exists.
* Sbuild/Conf.pm:
  - Don't export $source_dependencies.
  - Don't define $source_dependencies.
  - Abort with an error if $source_dependencies is defined.
  - Don't export $sudo or $chroot_mode.
  - Don't define $sudo or $chroot_mode.
  - Remove sudo sanity checks.
  - Abort with an error if $sudo or $chroot_mode are defined.
  - Don't export $chroot_only.
  - Don't define $chroot_only.
  - Abort with an error if $chroot_only is defined.
  - Define and export %alternatives. Thanks to Martin Koeppe
    (Closes: #418060).
  - Define and export @no_auto_upgrade and %watches.
  - Remove the requirement for /usr/share/sbuild/sbuild.conf.
  - Mark deprecated/obsolete variables for removal post-Lenny.
  - Set defaults from global sbuild.conf.
* sbuild.conf:
  - Remove $source_dependencies.
  - Remove $sudo.
  - Remove $chroot_only.
  - Add and document all options from Sbuild/Conf.pm.
  - Reorder into sections.
  - Merge with sbuild.conf.local, and install into /etc/sbuild.
* sbuild.conf.local:
  - Remove $source_dependencies.
  - Remove.
* example.sbuildrc:
  - Replace all options with documented options from sbuild.conf.
  - Add additional user-centric options from sbuild.conf.
  - Reorder into sections.
* sbuild.1.in: Document --arch and chroot search order.
* sbuild-setup.7.in:
  - Remove sudo setup.
  - Update user section to document sbuild group membership and
    add_sbuild_user. Remove chroot setup, which is now handled by
    schroot (Closes: #413524).
* bin/README.bins: Remove sudo from extra package list.
* bin/updatechroot, bin/upgradechroot, bin/chrapt: Remove chroot_mode.
* chroot/add_sbuild_user:
  - Remove sudo setup instructions and copying of /etc/sudoers to the
    chroot.
  - Rewrite in perl. Only call adduser; all other chroot setup is
    taken care of by the 50sbuild schroot chroot setup script
    (Closes: #413908).
* TODO: New file. Document needed changes.

4. By Roger Leigh

* Sbuild/Conf.pm: Add and export check_watches configuration variable.
* sbuild:
  - Set umask to 022 so that dpkg-buildpackage always runs with a sane
    umask (Closes: #405836).
  - check_watches: Don't check watches if check_watches configuration
    variable isn't set (Closes: #397123).
  - get_apt_policy: Allow ~ in version numbers. Thanks to Frank
    Lichtenheld for this patch (Closes: #407293).
  - When running apt-cache, divert STDOUT to the package log, so that
    warnings do not get mailed separately (Closes: #399178).
  - fetch_source_files:
    + Correct indentation, and error with brace placement which caused
      apt-cache output to not be used.
    + Add package information into the key of the %entries hash, in
      order to cope with multiple packages being returned by apt-cache.
      Based on a patch by Goswin von Brederlow for Bug #408091.
* sbuild.conf: Obsolete $source_dependencies.
* sbuild.conf.local:
  - Add pgp_options from sbuild.conf (Closes: #398128).
  - Add check_watches.
  - Obsolete $source_dependencies.
* update-sourcedeps, update-sourcedeps.1.in: Remove (Closes: 409642).
  Thanks to Kenshi Muto for reporting that it no longer works.
* debian/rules, debian/manpages, debian/README.Debian: Remove support
  for update-sourcedeps, and note that sourcedeps support is obsoleted
  and will be removed in Lenny.

3. By Roger Leigh

* New upstream release.
* sbuild: Remove incorrect WannaBuild:: prefix from version_compare.

2. By Michael Banck

Michael Banck:

* bin/abort-current-build: Remove the `-B' from the grep line as
  `sbuild -s' does not pass that option to dpkg-configure and abort-
  current-build fails in that case.
* sbuild: Set the locale to `POSIX' to make debconf and debhelper calls in
  the chroot not spew out locale warnings all the time.
  (closes: #287672)
* sbuild: Removed check for specific distributions. Instead, fail if
  build/chroot-$dist is not there.
* sbuild: Only override Distribution in .changes if specified as option on
  the command-line.
  (closes: #300145)
* sbuild: Specify full path for Dir::Etc::main and Dir::Etc::parts.
* example.sbuildrc: Clarify that $maintainer_name is not mandatory and
  overrides Maintainer: field, whereas $uploader_name overrides
  the Changed-By: field in changes.
* Applied patch by Santiago Vila:
  - Moves scripts from /usr/lib/sbuild to /usr/share/sbuild and modifies
    all callers accordingly.
  - Add -n option to tail to comply with POSIX.
  - Call /usr/sbin/sendmail instead of /usr/lib/sendmail.
  (closes: #292717)
* sbuild: Tolerate '0' as version number, thanks Santiago Vila.
  (closes: #300205)

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:ubuntu/karmic/sbuild
This branch contains Public information 
Everyone can see this information.

Subscribers