Your message dated Tue, 07 Dec 2010 23:03:44 +0000
with message-id <[email protected]>
and subject line Bug#605997: fixed in sbuild 0.60.6-1
has caused the Debian Bug report #605997,
regarding Do not skip purging of build directory if chroot is cloned.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
605997: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605997
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libsbuild-perl
Version: 0.60.5-1
Severity: normal
File: /usr/share/perl5/Sbuild/Build.pm
Tags: patch
Hello,
This is necessary if /build in chroots is (bind-)mounted to the outside of the
session. However, if /build is part of the cloned session,
$purge_build_directory='never' could be used in order to avoid wasting time
when session ends.
The attached patch is basically against 0.60.5-1.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.36-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libsbuild-perl depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii apt 0.8.10 Advanced front-end for dpkg
ii dctrl-tools 2.14.5 Command-line tools to process Debi
ii devscripts 2.10.69 scripts to make the life of a Debi
ii dpkg-dev 1.15.8.6 Debian package development tools
ii exim4 4.72-2 metapackage to ease Exim MTA (v4)
ii exim4-daemon-light [mail-tran 4.72-2 lightweight Exim MTA (v4) daemon
ii libfilesys-df-perl 0.92-3+b1 Module to obtain filesystem disk s
ii perl 5.10.1-16 Larry Wall's Practical Extraction
ii perl-modules [libio-zlib-perl 5.10.1-16 Core Perl modules
ii schroot 1.4.15-1 Execute commands in a chroot envir
libsbuild-perl recommends no packages.
libsbuild-perl suggests no packages.
-- no debconf information
>From 1a73ea7fbea8f9ab4114ddf78d678c875cf02f35 Mon Sep 17 00:00:00 2001
From: Modestas Vainius <[email protected]>
Date: Sun, 5 Dec 2010 13:43:16 +0200
Subject: [PATCH 2/2] Do not skip purging of build directory if chroot is cloned.
This is necessary if /build in chroots is (bind-)mounted to the outside of the
session. However, if /build is part of the cloned session,
$purge_build_directory='never' could be used in order to avoid wasting time
when session ends.
---
debian/changelog | 5 +++++
lib/Sbuild/Build.pm | 24 ++++++++++++------------
2 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 07b2c78..e1739b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,10 @@
sbuild (0.60.5-1mdx1) UNRELEASED; urgency=low
+ * Do not skip purging of build directory if chroot is cloned. This is
+ necessary if /build in chroots is (bind-)mounted to the outside of the
+ session. However, if /build is part of the cloned session,
+ $purge_build_directory='never' could be used in order to avoid wasting time
+ when session ends.
-- Modestas Vainius <[email protected]> Sun, 05 Dec 2010 13:28:54 +0200
diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm
index a282527..f13077c 100644
--- a/lib/Sbuild/Build.pm
+++ b/lib/Sbuild/Build.pm
@@ -561,24 +561,24 @@ sub run {
my $is_cloned_session = (defined ($session->get('Session Purged')) &&
$session->get('Session Purged') == 1) ? 1 : 0;
+ if ($purge_build_directory) {
+ # Purge package build directory
+ $self->log("Purging " . $self->get('Chroot Build Dir') . "\n");
+ my $bdir = $self->get('Session')->strip_chroot_path($self->get('Chroot
Build Dir'));
+ $self->get('Session')->run_command(
+ { COMMAND => ['rm', '-rf', $bdir],
+ USER => 'root',
+ CHROOT => 1,
+ PRIORITY => 0,
+ DIR => '/' });
+ }
+
# Purge non-cloned session
if ($is_cloned_session) {
$self->log("Not cleaning session: cloned chroot in use\n");
$end_session = 0
if ($purge_build_directory == 0 || $purge_build_deps == 0);
} else {
- if ($purge_build_directory) {
- # Purge package build directory
- $self->log("Purging " . $self->get('Chroot Build Dir') . "\n");
- my $bdir =
$self->get('Session')->strip_chroot_path($self->get('Chroot Build Dir'));
- $self->get('Session')->run_command(
- { COMMAND => ['rm', '-rf', $bdir],
- USER => 'root',
- CHROOT => 1,
- PRIORITY => 0,
- DIR => '/' });
- }
-
if ($purge_build_deps) {
# Removing dependencies
$resolver->uninstall_deps();
--
1.7.2.3
--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.60.6-1
We believe that the bug you reported is fixed in the latest version of
sbuild, which is due to be installed in the Debian FTP archive:
buildd_0.60.6-1_all.deb
to main/s/sbuild/buildd_0.60.6-1_all.deb
libsbuild-perl_0.60.6-1_all.deb
to main/s/sbuild/libsbuild-perl_0.60.6-1_all.deb
sbuild_0.60.6-1.diff.gz
to main/s/sbuild/sbuild_0.60.6-1.diff.gz
sbuild_0.60.6-1.dsc
to main/s/sbuild/sbuild_0.60.6-1.dsc
sbuild_0.60.6-1_all.deb
to main/s/sbuild/sbuild_0.60.6-1_all.deb
sbuild_0.60.6.orig.tar.gz
to main/s/sbuild/sbuild_0.60.6.orig.tar.gz
wanna-build_0.60.6-1_all.deb
to main/s/sbuild/wanna-build_0.60.6-1_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Roger Leigh <[email protected]> (supplier of updated sbuild package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Format: 1.8
Date: Tue, 07 Dec 2010 21:08:28 +0000
Source: sbuild
Binary: libsbuild-perl sbuild wanna-build buildd
Architecture: source all
Version: 0.60.6-1
Distribution: unstable
Urgency: low
Maintainer: Debian buildd-tools Developers
<[email protected]>
Changed-By: Roger Leigh <[email protected]>
Description:
buildd - Daemon for automatically building Debian binary packages from Deb
libsbuild-perl - Tool for building Debian binary packages from Debian sources
sbuild - Tool for building Debian binary packages from Debian sources
wanna-build - Database to track building of Debian binary packages from Debian
Closes: 589615 604715 605745 605997 606001
Changes:
sbuild (0.60.6-1) unstable; urgency=low
.
[ Roger Leigh ]
* New release.
* sbuild:
- sbuild now sanitises its environment when running external
commands.
- sbuild no longer generates the files REDO and SBUILD-REDO-DUMPED.
- sbuild now has a testsuite.
- apt and aptitude build-dependency resolvers now use a local apt
archive, which improves the behaviour of the apt resolver (the
dependency package will no longer be removed in some situations).
- Workaround uninstallable sysvinit on Ubuntu, where sysvinit is
still present in the build-essential package list. Thanks to
Jamie Strandboge.
* sbuild-update:
- sbuild-update works on multiple chroots (Closes: #604715).
- sbuild-update works with multiple architectures (Closes: #606001).
Thanks to Ansgar Burchardt for this patch.
- sbuild-update now has a --keygen option to generate signing keys
for temporary apt archives.
* sbuild.1: Update description of --maintainer (Closes: #605745).
Thanks to Jakub Wilk.
* Sbuild::ConfBase: Only use MAILTO_HASH if defined (Closes: #589615).
Thanks to Marc Dequènes for this patch.
.
[ Modestas Vainius ]
* sbuild:
- Do not skip purging of build directory if chroot is cloned
(Closes: #605997). This is necessary if /build in chroots is
(bind-)mounted to the outside of the session. However, if /build
is part of the cloned session, $purge_build_directory='never'
could be used in order to avoid wasting time when the session
ends.
Checksums-Sha1:
19a02f3e533a2a752315678e0b17804bf6e5c61e 1265 sbuild_0.60.6-1.dsc
a35b05dd62825fe6c4a47d44fb140ea098ccb206 530240 sbuild_0.60.6.orig.tar.gz
a0fddd5458378c1bf3c10dd2f5c060d1347741ed 20 sbuild_0.60.6-1.diff.gz
f50802aebe9b75643d54412233824c6dcfa2b95a 242598 libsbuild-perl_0.60.6-1_all.deb
210206b7fd2461132c9439325e17ca461d799bdd 243822 sbuild_0.60.6-1_all.deb
4f15965b688316e94ff2e7507de102288d998a7a 246936 wanna-build_0.60.6-1_all.deb
255d719822d58505261e107e3fd48add78449bfa 236658 buildd_0.60.6-1_all.deb
Checksums-Sha256:
5d797b1d0e5441c4a0ea0274b3b3ad9406e6573e5fee9ee0e1c13def5ed5e49e 1265
sbuild_0.60.6-1.dsc
40b20b8c55831182fcbd4770e7a6761095ceedead414dd8a7a274faae06f55a5 530240
sbuild_0.60.6.orig.tar.gz
f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec 20
sbuild_0.60.6-1.diff.gz
4a973e9420e99ca2ec6810b154efe7ef73af893547dc43a84e5c0e3c4e35e6f8 242598
libsbuild-perl_0.60.6-1_all.deb
7468f4690d27d615a19c72777bc52a34fcc9b9fd61451415803622388142fb0a 243822
sbuild_0.60.6-1_all.deb
516debb1519921852cb24d4a1cbe094e56d2a19fd058bd73a940e84ce703e16f 246936
wanna-build_0.60.6-1_all.deb
07703d18655a0157c661068ed2feeebe6f3e4febdc4a45477c82f8ece89fd9f5 236658
buildd_0.60.6-1_all.deb
Files:
7723a2517cf7b717b25959387420517c 1265 devel extra sbuild_0.60.6-1.dsc
abeb27ce06f57ec9901ff59567a4c266 530240 devel extra sbuild_0.60.6.orig.tar.gz
4a4dd3598707603b3f76a2378a4504aa 20 devel extra sbuild_0.60.6-1.diff.gz
6084e3322e2c4db3cc221ec423d41bd9 242598 perl extra
libsbuild-perl_0.60.6-1_all.deb
6c984b956438956108ebfbe8615a0c57 243822 devel extra sbuild_0.60.6-1_all.deb
249986d1db8958c01e06fd73171e07cc 246936 devel extra
wanna-build_0.60.6-1_all.deb
24cfe395f870de1acf9d7dbdc859653a 236658 devel extra buildd_0.60.6-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEAREDAAYFAkz+ujMACgkQVcFcaSW/uEiVggCgh6sX9PNFO11oo6I25ud+HQ/a
9VMAoJibhLfvBkanRrFsOb1oUStrUbeR
=U3Lm
-----END PGP SIGNATURE-----
--- End Message ---