Your message dated Sat, 03 May 2008 15:39:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#472350: fixed in sbuild 0.57.2-1
has caused the Debian Bug report #472350,
regarding sbuild: Add support for running apt-get update before a build
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.)
--
472350: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472350
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: sbuild
Version: 0.57.0
Severity: wishlist
Tags: patch
I would find it useful to have an option in sbuild that automatically runs
"apt-get update" in the build chroot immediately prior to building, which
ensures the build gets the newest dependencies, even if one has not done
an apt update in the source chroot recently.
I've attached a patch to implement this feature.
-Tim Abbott
diff -ur sbuild-0.57.0/bin/sbuild sbuild-0.57.0-tabbott/bin/sbuild
--- sbuild-0.57.0/bin/sbuild 2008-01-01 06:39:56.000000000 -0500
+++ sbuild-0.57.0-tabbott/bin/sbuild 2008-03-22 20:25:45.000000000 -0400
@@ -131,6 +131,7 @@
"binNMU=i" => \$main::binNMUver,
"database=s" => \$main::database,
"D|debug+" => \$conf::debug,
+ "apt-update" => \$conf::apt_update,
"d|dist=s" => sub {
$main::distribution = $_[1];
$main::distribution = "oldstable"
@@ -276,6 +277,19 @@
$main::arch = chroot_arch();
+ if ($conf::apt_update) {
+ if (!open(PIPE, Sbuild::Chroot::get_apt_command("$conf::apt_get", "-q update", "root", 1) . " 2>&1 |")) {
+ print PLOG "Can't open pipe to apt-get: $!\n";
+ return 0;
+ }
+ while(<PIPE>) {
+ print PLOG;
+ print STDERR;
+ }
+ close(PIPE);
+ print PLOG "apt-get update failed\n" if $?;
+ }
+
$main::pkg_fail_stage = "fetch-src";
my @files_to_rm = fetch_source_files( \$dscfile,
$dir, $pkg, $version, $download);
@@ -372,7 +386,7 @@
}
} else {
my %entries = ();
- my $retried = 0;
+ my $retried = $conf::apt_update;
retry:
print PLOG "Checking available source versions...\n";
my $command = get_apt_command("$conf::apt_cache", "-q showsrc $pkg", $main::username, 0);
diff -ur sbuild-0.57.0/lib/Sbuild/Conf.pm sbuild-0.57.0-tabbott/lib/Sbuild/Conf.pm
--- sbuild-0.57.0/lib/Sbuild/Conf.pm 2008-01-01 06:39:56.000000000 -0500
+++ sbuild-0.57.0-tabbott/lib/Sbuild/Conf.pm 2008-03-22 20:30:20.000000000 -0400
@@ -43,7 +43,8 @@
$srcdep_lock_wait @ignore_watches_no_build_deps
$build_dir $sbuild_mode $debug $force_orig_source
%individual_stalled_pkg_timeout $path
- $maintainer_name $uploader_name %watches $key_id); }
+ $maintainer_name $uploader_name %watches $key_id
+ $apt_update); }
# Originally from the main namespace.
(our $HOME = $ENV{'HOME'})
@@ -98,6 +99,7 @@
our $maintainer_name;
our $uploader_name;
our $key_id;
+our $apt_update = 0;
our %alternatives = ("info-browser" => "info",
"httpd" => "apache",
"postscript-viewer" => "ghostview",
diff -ur sbuild-0.57.0/man/sbuild.1.in sbuild-0.57.0-tabbott/man/sbuild.1.in
--- sbuild-0.57.0/man/sbuild.1.in 2008-01-01 06:39:56.000000000 -0500
+++ sbuild-0.57.0-tabbott/man/sbuild.1.in 2008-03-22 20:31:10.000000000 -0400
@@ -112,6 +112,9 @@
.IR \-D , "\-\-debug"
Enable debug output.
.TP
+.IR "\-\-apt\-update"
+Run apt-get update in the chroot before executing the build.
+.TP
.IR \-m , "\-\-maintainer=<maintainer>"
Passed to dpkg\-genchanges and is used to set the Maintainer: field in
the .changes file(s).
--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.57.2-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:
sbuild_0.57.2-1.diff.gz
to pool/main/s/sbuild/sbuild_0.57.2-1.diff.gz
sbuild_0.57.2-1.dsc
to pool/main/s/sbuild/sbuild_0.57.2-1.dsc
sbuild_0.57.2-1_all.deb
to pool/main/s/sbuild/sbuild_0.57.2-1_all.deb
sbuild_0.57.2.orig.tar.gz
to pool/main/s/sbuild/sbuild_0.57.2.orig.tar.gz
wanna-build_0.57.2-1_all.deb
to pool/main/s/sbuild/wanna-build_0.57.2-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: SHA1
Format: 1.8
Date: Sun, 27 Apr 2008 21:22:19 +0100
Source: sbuild
Binary: sbuild wanna-build
Architecture: source all
Version: 0.57.2-1
Distribution: unstable
Urgency: low
Maintainer: Debian buildd-tools Developers <[EMAIL PROTECTED]>
Changed-By: Roger Leigh <[EMAIL PROTECTED]>
Description:
sbuild - Tool for building Debian binary packages from Debian sources
wanna-build - Database to track building of Debian binary packages from Debian
Closes: 466927 472350 474030 474160 474487 477655 477693 478044 478045
Changes:
sbuild (0.57.2-1) unstable; urgency=low
.
* debian/copyright: Update copyright holders and copyright information.
* debian/rules: Run dh_link in binary-indep target to correct symlinks.
* debian/wanna-build.install: Install manual pages.
* man/sbuild.1.in:
- Add missing character, thanks to LI Daobing (Closes: #474487).
- Document --binNMU (Closes: #466927).
- --distribution should be --dist (Closes: #477693). Thanks to Martin
F Krafft.
* debian/README.Debian: Remove reference to README-buildd.chroot
(Closes: #474030), thanks to Marc Fargas. Update sbuild statistics
information.
* Add --apt-update option to sbuild to run "apt-get update" in the
chroot prior to fetching sources and building (Closes: #472350).
Thanks to Timothy G Abbott for this patch.
* Add --chroot option to specify a chroot separately from the
distribution name (Closes: #474160). Thanks to Simon McVittie for
this patch.
* debian/control: Depend on debhelper version 6 or greater (Closes:
#477655). Thanks to Martin F Krafft.
* lib/Sbuild/Conf.pm: Don't require $mailto to be set if not running in
a buildd environment (Closes: #478045). Thanks to Martin F Krafft.
* Use dcmd to parse dsc files, rather than hand-parsing. This allows
support of the new dpkg source format.
* All files used in a build are stored in
/build/username-package_version-arch-XXXXXX inside the chroot (Closes:
#478044).
Checksums-Sha1:
4da5a4c92087a8755f120465e7c93ecd33655417 1227 sbuild_0.57.2-1.dsc
ca4a683ab009d99df175e67e470cf00953bba965 302943 sbuild_0.57.2.orig.tar.gz
fc2fdb4e3c280f9f2516de058987de07415543a4 20 sbuild_0.57.2-1.diff.gz
6ce3b0d7379d4cd3a0ffc68fbb5ecb116263ba52 94808 sbuild_0.57.2-1_all.deb
0a2063fa351481d0fd15b4baf16f8712b08956ab 57160 wanna-build_0.57.2-1_all.deb
Checksums-Sha256:
226ae666f9a50006b109f7ee1608640fb606d69c1304733272c724c97528e738 1227
sbuild_0.57.2-1.dsc
635c7a539e8bf7a5cece9e9b5f4f938407551be349cbfc327903944a2abb5e23 302943
sbuild_0.57.2.orig.tar.gz
c66478ff919d0605f5f0a2a7d8330c253e951e71ba564e72348a2c4e810a40b8 20
sbuild_0.57.2-1.diff.gz
ef96f0f1d6481fe4957eceb946b12298812bff97a91a2df1dee411e63c93ed2a 94808
sbuild_0.57.2-1_all.deb
a647085f1914ee586d8f6c877284159717c86dbd46e86fb8408962b562fadce9 57160
wanna-build_0.57.2-1_all.deb
Files:
b8806f64d385ec58a833932f2520204e 1227 devel extra sbuild_0.57.2-1.dsc
0670b3bd7fd3c4de808ce6bac1057797 302943 devel extra sbuild_0.57.2.orig.tar.gz
eaddd4602ca32d68fde153f7e8f901b1 20 devel extra sbuild_0.57.2-1.diff.gz
e999ba923329dd516173ca0686f01b44 94808 devel extra sbuild_0.57.2-1_all.deb
1d7784db9d0dc7220420cc3efd583989 57160 devel extra wanna-build_0.57.2-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIFOYWVcFcaSW/uEgRAiadAJ4s19FsiR74P51/ExLNLQ4hCyIfEACfRee/
iy5D4CxYycQB99ZzgxlSzfA=
=SYnA
-----END PGP SIGNATURE-----
--- End Message ---