Your message dated Sun, 14 Nov 2010 13:02:09 +0000
with message-id <[email protected]>
and subject line Bug#603397: fixed in sbuild 0.60.5-1
has caused the Debian Bug report #603397,
regarding Fails to upgrade/dist-upgrade when some conffile changed
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.)


-- 
603397: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603397
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.60.4-1
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch

        Hey

 So I've configured my sbuild to "$apt_upgrade = 1;" and
 "$apt_distupgrade = 1;", and either of them will break the build
 because of dpkg prompting for a conffile update:
Setting up netbase (4.43ubuntu1) ...

Configuration file `/etc/protocols'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** protocols (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing netbase 
(--configure):
 EOF on stdin at conffile prompt
[...]
Errors were encountered while processing:
 netbase
E: Sub-process /usr/bin/dpkg returned an error code (1)


 I see DEBIAN_FRONTEND is correctly set to noninteractive for debconf
 prompts; I propose that apt-get upgrade/dist-upgrade set dpkg opts to
 pass --force-confold, see attached patch to ChrootSetup.pm.

   Thanks for considering!

 (I will also look at the reason for protocols being patched in
 Launchpad chroots over the netbase defaults)
-- 
Loïc Minier
--- ChrootSetup.pm	2010-11-13 18:36:38.995927001 +0100
+++ /usr/share/perl5/Sbuild/ChrootSetup.pm	2010-11-13 18:38:01.905927002 +0100
@@ -63,7 +63,7 @@ sub upgrade ($$) {
     my $conf = shift;
 
     $session->run_apt_command(
-	{ COMMAND => [$conf->get('APT_GET'), '-uy', 'upgrade'],
+	{ COMMAND => [$conf->get('APT_GET'), '-uyo', 'Dpkg::Options::=--force-confold', 'upgrade'],
 	  ENV => {'DEBIAN_FRONTEND' => 'noninteractive'},
 	  USER => 'root',
 	  DIR => '/' });
@@ -75,7 +75,7 @@ sub distupgrade ($$) {
     my $conf = shift;
 
     $session->run_apt_command(
-	{ COMMAND => [$conf->get('APT_GET'), '-uy', 'dist-upgrade'],
+	{ COMMAND => [$conf->get('APT_GET'), '-uyo', 'Dpkg::Options::=--force-confold', 'dist-upgrade'],
 	  ENV => {'DEBIAN_FRONTEND' => 'noninteractive'},
 	  USER => 'root',
 	  DIR => '/' });

--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.60.5-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.5-1_all.deb
  to main/s/sbuild/buildd_0.60.5-1_all.deb
libsbuild-perl_0.60.5-1_all.deb
  to main/s/sbuild/libsbuild-perl_0.60.5-1_all.deb
sbuild_0.60.5-1.diff.gz
  to main/s/sbuild/sbuild_0.60.5-1.diff.gz
sbuild_0.60.5-1.dsc
  to main/s/sbuild/sbuild_0.60.5-1.dsc
sbuild_0.60.5-1_all.deb
  to main/s/sbuild/sbuild_0.60.5-1_all.deb
sbuild_0.60.5.orig.tar.gz
  to main/s/sbuild/sbuild_0.60.5.orig.tar.gz
wanna-build_0.60.5-1_all.deb
  to main/s/sbuild/wanna-build_0.60.5-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: Sat, 13 Nov 2010 18:43:25 +0000
Source: sbuild
Binary: libsbuild-perl sbuild wanna-build buildd
Architecture: source all
Version: 0.60.5-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: 603397
Changes: 
 sbuild (0.60.5-1) unstable; urgency=low
 .
   * Chroot upgrade and dist-upgrade commands run with
     "dpkg --force-confold" as done for build dependency installation
     (Closes: #603397).  Thanks to Loïc Minier.
Checksums-Sha1: 
 aaa248711c4958018e01997e2a3291f1631769ed 1265 sbuild_0.60.5-1.dsc
 cfaa87647b413b07e9b9e2adfb033d6e2321575b 519741 sbuild_0.60.5.orig.tar.gz
 a0fddd5458378c1bf3c10dd2f5c060d1347741ed 20 sbuild_0.60.5-1.diff.gz
 ace1b18d467ea5dfe87de0d84813169b44e63417 234004 libsbuild-perl_0.60.5-1_all.deb
 9211866d047064109bfd0f823be16f095959e738 236268 sbuild_0.60.5-1_all.deb
 a15fd4b641142820aa567c24aae763ab5202fd57 239560 wanna-build_0.60.5-1_all.deb
 7129b40eebc7c9c9110fe28c97857302994e95f2 229492 buildd_0.60.5-1_all.deb
Checksums-Sha256: 
 897ed52d10ce4191257f7887ef65232c76bab9ff1cc898fc9185bf0040a871f4 1265 
sbuild_0.60.5-1.dsc
 6a54e792e5d008647a4dcd9579dc6ca5e7f279910e2bb5dc31ac822a68748949 519741 
sbuild_0.60.5.orig.tar.gz
 f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec 20 
sbuild_0.60.5-1.diff.gz
 1c3258135a6fc91cc61f304e4822f261a6a4c9cd56bb6e3909b4c2362c2b9f03 234004 
libsbuild-perl_0.60.5-1_all.deb
 dada815d45f0d9a7c3a835775dd6d588802661f69a833ece7a449e89d3fedb51 236268 
sbuild_0.60.5-1_all.deb
 ead22e97a89c6957ed4755c91b85f5f62f227b76c9ea6b4ea526322a80b84072 239560 
wanna-build_0.60.5-1_all.deb
 5b424c555f6f88ba10c707fcc2af2fb55abbb6ccf78945b41aa03752a9a2bfef 229492 
buildd_0.60.5-1_all.deb
Files: 
 08a1cf580cc7da0c29196c2bca567dcb 1265 devel extra sbuild_0.60.5-1.dsc
 4a976e36ce5cc8d861d93c638dc93ff6 519741 devel extra sbuild_0.60.5.orig.tar.gz
 4a4dd3598707603b3f76a2378a4504aa 20 devel extra sbuild_0.60.5-1.diff.gz
 39219dd9c3d752442dfd3d80cdee5e93 234004 perl extra 
libsbuild-perl_0.60.5-1_all.deb
 7c1b8ab068116efb93caa1610b3ce299 236268 devel extra sbuild_0.60.5-1_all.deb
 737892a2e58575b21f1d85499d112ede 239560 devel extra 
wanna-build_0.60.5-1_all.deb
 5272b0a04b5826a65d9fc5d488fd5bbb 229492 devel extra buildd_0.60.5-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEAREDAAYFAkzf2y0ACgkQVcFcaSW/uEhm8ACg1JZv059jyeSkimjUVMIlpjGe
ugcAn1+L/YmGXwOhbFn3KSuOAks9e1jl
=DW1n
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to