Your message dated Tue, 15 Feb 2011 00:34:00 +0000
with message-id <[email protected]>
and subject line Bug#608789: fixed in sbuild 0.60.9-1
has caused the Debian Bug report #608789,
regarding custom SolutionCost for AptitudeResolver in order to improve results
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.)


-- 
608789: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608789
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.60.8-1
Severity: normal
Tags: patch

Hello,

I partially take my words that I said in [1] back. aptitude sometimes needs a
bit more hints to give us what we really want, i.e. we need to feed it a custom
SolutionCost as default settings might not be sufficient for experimental,
backports and especially more complex buildd configurations.

Issues concern installation from non-default sources. You will find full
explanation in the patch header. Please keep commit message intact (if
possible) as it contains useful information on the "how aptitude resolver
works" topic.

1. http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=54;mbox=yes;bug=607945

-- System Information:
Debian Release: 6.0
  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 sbuild depends on:
ii  adduser                       3.112+nmu2 add and remove users and groups
ii  libsbuild-perl                0.60.8-1   Tool for building Debian binary pa
ii  perl                          5.10.1-16  Larry Wall's Practical Extraction 
ii  perl-modules                  5.10.1-16  Core Perl modules

Versions of packages sbuild recommends:
ii  debootstrap                   1.0.26     Bootstrap a basic Debian system
ii  fakeroot                      1.14.5-1   Gives a fake root environment

Versions of packages sbuild suggests:
pn  deborphan                     <none>     (no description available)
ii  wget                          1.12-2.1   retrieves files from the web

-- no debconf information
>From c29e39ce2f7078e0c83342694cb86e3423a9a1b0 Mon Sep 17 00:00:00 2001
From: Modestas Vainius <[email protected]>
Date: Mon, 3 Jan 2011 02:29:50 +0200
Subject: [PATCH 2/2] AptitudeResolver: define a custom SolutionCost.

aptitude 0.6.2 release replaced resolver tiers with resolver costs. sbuild
AptitudeResolver used to rely on resolver tiers to deliver the following
behaviour:

1) Install non-default versions only if there is no solution among default (aka
candidate) package versions.
2) Solution should contain versions from sources with the highest possible
priority (when pulling from non-default versions).

While default SolutionCost (i.e. "safety, priority") configuration is supposed
to deliver this, it's apparently not enough. In particular:

1) "priority" cost component is broken in aptitude releases up to 0.6.3-3.2
(see #608786). It does not prioritize non-default versions by their
pin-priorities.  However, thanks to Non-Default-Level safety level, the issue
does not affect configurations which have apt sources at two (one default and
one non-default) or fewer pin priorities. As a result, standard buildd
configurations (unstable, experimental, backports) are not affected by this
bug.

2) Once Non-Default safety level is breached, it is hard to guess what set of
non-default versions the solution will produce (it will be based on the "score"
criteria that is not easily predictable). Yet requirements are pretty clear: we
want as few non-default versions as possible. Fortunately, we can tell aptitude
that.

So sbuild custom SolutionCost achieves the following:

1) it gets the safest solution (tries only default versions first, then a mix of
default and non-default versions),
2) installs versions from the highest possible pin-priority source,
3) installs as few non-default versions as possible,
4) and finally picks a solution with the best score.

See /usr/share/doc/aptitude/html/en/ch02s03s04.html (aptitude-doc-en package)
for more information on aptitude resolver cost calculation.

Signed-off-by: Modestas Vainius <[email protected]>
---
 lib/Sbuild/AptitudeResolver.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/Sbuild/AptitudeResolver.pm b/lib/Sbuild/AptitudeResolver.pm
index f86ef02..79dbf77 100644
--- a/lib/Sbuild/AptitudeResolver.pm
+++ b/lib/Sbuild/AptitudeResolver.pm
@@ -86,6 +86,7 @@ sub install_deps {
        '--without-recommends',
        '-o', 
"Aptitude::CmdLine::Ignore-Trust-Violations=$ignore_trust_violations",
        '-o', 'Aptitude::ProblemResolver::StepScore=100',
+       '-o', "Aptitude::ProblemResolver::SolutionCost=safety, priority, 
non-default-versions",
        '-o', "Aptitude::ProblemResolver::Hints::KeepDummy=reject 
$dummy_pkg_name :UNINST",
        '-o', 'Aptitude::ProblemResolver::Keep-All-Level=55000',
        '-o', 'Aptitude::ProblemResolver::Remove-Essential-Level=maximum',
-- 
1.7.2.3


--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.60.9-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.9-1_all.deb
  to main/s/sbuild/buildd_0.60.9-1_all.deb
libsbuild-perl_0.60.9-1_all.deb
  to main/s/sbuild/libsbuild-perl_0.60.9-1_all.deb
sbuild_0.60.9-1.diff.gz
  to main/s/sbuild/sbuild_0.60.9-1.diff.gz
sbuild_0.60.9-1.dsc
  to main/s/sbuild/sbuild_0.60.9-1.dsc
sbuild_0.60.9-1_all.deb
  to main/s/sbuild/sbuild_0.60.9-1_all.deb
sbuild_0.60.9.orig.tar.gz
  to main/s/sbuild/sbuild_0.60.9.orig.tar.gz
wanna-build_0.60.9-1_all.deb
  to main/s/sbuild/wanna-build_0.60.9-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: Mon, 14 Feb 2011 20:37:05 +0000
Source: sbuild
Binary: libsbuild-perl sbuild wanna-build buildd
Architecture: source all
Version: 0.60.9-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: 607606 607945 608412 608414 608429 608659 608789 608971 608972 609151 
609811 610007 610997 613401
Changes: 
 sbuild (0.60.9-1) unstable; urgency=low
 .
   * New release.
   * sbuild:
     - Don't automatically generate local archive signing key if
       missing (Closes: #607945).  If missing, abort build with an error
       message and instructions for how to generate the key.
     - Do not filter out environment variables starting with DEBIAN_ by
       default (Closes: #608659).  Thanks to Modestas Vainius.
     - Do not filter out PATH environment variable (Closes: #610997).
       Note this is not the user's PATH, but the $path in sbuild.conf.
     - Aptitude resolver defines a custom SolutionCost in order to
       improve resolver behaviour (Closes: #608789).  Thanks to
       Modestas Vainius.
     - When running apt-get, use "-o APT::Install-Recommends=false"
       rather than "--no-install-recommends" in order to support older
       releases (Closes: #609811).  Thanks to Marc Deslauriers.
     - Purging the package removes generated files in /etc/sbuild/chroot
       and /var/lib/sbuild (Closes: #608412).
     - The architecture specified with --arch (defaulting to the host
       system architecture) must match the chroot architecture
       (Closes: #609151).  This was previously allowed to be superceded
       by the chroot architecture.  This change is to avoid any abiguity
       regarding the host/build architecture for the package being built.
     - Add --no-arch-all option to force not building arch-all packages
       (Closes: #613401).  Thanks to Sebastian Harl for this patch.
   * sbuild-createchroot:
     - Use less restrictive permissions on chroot directory and schroot
       configuration file (Closes: #608414).  The chroot now has 0755
       permissions, and the schroot configuration 0644.
     - Don't require sudo access (Closes: #608429).  The
       Sbuild::ChrootPlain module used to run commands inside the newly-
       created chroot was using sudo to run commands when already
       running as root.  sudo is no longer used when root.
     - Remove use statement which prevented command-line options being
       registered (Closes: #610007, #607606).  Command-line options now
       work correctly.
   * sbuild.conf:
     - $environment filter is syntactically correct (Closes: #610997).
       Thanks to Jakub Wilk.
     - $apt_allow_unauthenticated is documented to use apt-secure(8)
       (Closes: #608971).
   * sbuild.1:
     - Document the temporary local archive used by the apt and aptitude
       build dependency resolvers to store and install dummy dependency
       packages (Closes: #608972).
Checksums-Sha1: 
 d1a740062af7ae09ad05c24ad5246caea92f3ac8 1265 sbuild_0.60.9-1.dsc
 c1aa292b3ccb154c0dee650507da9ceb916010f1 537433 sbuild_0.60.9.orig.tar.gz
 a0fddd5458378c1bf3c10dd2f5c060d1347741ed 20 sbuild_0.60.9-1.diff.gz
 c5481e18a45c03bc13714cbb44e20d4cfc87131d 248878 libsbuild-perl_0.60.9-1_all.deb
 778538f6bf258e8d37ff9c3933e5fa209e0b19db 249944 sbuild_0.60.9-1_all.deb
 7d3ec6932feb21d94f5c1a08a3f63762f31e40d3 252630 wanna-build_0.60.9-1_all.deb
 af3df1b5db3737099193e3370d83a55787cfb5fe 242174 buildd_0.60.9-1_all.deb
Checksums-Sha256: 
 db5095556c70943f7ec7d3a8bd99cb3809b17e360167e9429828ad962f3a7670 1265 
sbuild_0.60.9-1.dsc
 93b4c13b3cc29541d0b85d4667ed27e7123db3e64dc29284204f55ed006cf84c 537433 
sbuild_0.60.9.orig.tar.gz
 f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec 20 
sbuild_0.60.9-1.diff.gz
 525e5b8e3b805797e0483a7a7aeec3cee080b97e23c154315930cab85d80416f 248878 
libsbuild-perl_0.60.9-1_all.deb
 01c8acb87844105ea9797d7070f68db3ceddaac623214f3b668a78f5178a0242 249944 
sbuild_0.60.9-1_all.deb
 a28fb81867498419cafbf3eb776a04786fb33d7b8b28c4697f9ca95050d5c323 252630 
wanna-build_0.60.9-1_all.deb
 3d59c6ff1a0530479c2bc631efa2d2e7990c50912b936c544e7fb92b75095e8f 242174 
buildd_0.60.9-1_all.deb
Files: 
 0c8ad4ba214f249a24bf08d172742455 1265 devel extra sbuild_0.60.9-1.dsc
 a2794f008de9bcf5f2283afe40b741f9 537433 devel extra sbuild_0.60.9.orig.tar.gz
 4a4dd3598707603b3f76a2378a4504aa 20 devel extra sbuild_0.60.9-1.diff.gz
 3d8d6eb96e5c4e5189948cffbe9b84ae 248878 perl extra 
libsbuild-perl_0.60.9-1_all.deb
 5beb5a5b3f532f49a00ce3a0575604e2 249944 devel extra sbuild_0.60.9-1_all.deb
 52ec5e49f96efa5d136a71e72b705362 252630 devel extra 
wanna-build_0.60.9-1_all.deb
 3347e215b16897043ba719fc3e58f870 242174 devel extra buildd_0.60.9-1_all.deb

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

iEYEAREDAAYFAk1ZyOoACgkQVcFcaSW/uEhG8wCcDHHsm3xkIy1TOkUUl3lVb0yw
p0IAn2gUf26N3doeUxbHTor5mjfnL23l
=omZ4
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to