Package: aptitude
Version: 0.6.8.1-2
Severity: wishlist
Dear Maintainer,
The followingAptitude::ProblemResolver::SolutionCost example is the
aptitude manual:
from removals + 2 * canceled-actions
I tried to weight removals-of-manual higher than other removals and came
up with the following rule:
aptitude -o Aptitude::ProblemResolver::SolutionCost='10 * removals - 9 *
removals-of-manual + canceled-actions' remove htop
Since a local metapackage depends on htop, the resolver started its
work. And threw the following errors:
E: Failed to parse the cost settings string: <none>:1:15: Expected EOF, got '-'.
E: Failed to parse the cost settings string: <none>:1:15: Expected EOF, got '-'.
A simpler, yet less practical SolutionCost value with which we were able
to reproduce the issue is:
aptitude -o Aptitude::ProblemResolver::SolutionCost='removals -
canceled-actions' remove htop
It would be nice if Aptitude::ProblemResolver::SolutionCost would also
support substraction.
-- Package-specific info:
Terminal: eterm-color
$DISPLAY is set.
which aptitude: /usr/bin/aptitude
aptitude version information:
aptitude 0.6.8.1 compiled at Sep 25 2012 15:27:00
Compiler: g++ 4.7.1
Compiled against:
apt version 4.12.0
NCurses version 5.9
libsigc++ version: 2.2.10
Ept support enabled.
Gtk+ support disabled.
Qt support disabled.
Current library versions:
NCurses version: ncurses 5.9.20110404
cwidget version: 0.5.16
Apt version: 4.12.0
aptitude linkage:
linux-gate.so.1 => (0xb778c000)
libapt-pkg.so.4.12 => /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
(0xb7218000)
libncursesw.so.5 => /lib/i386-linux-gnu/libncursesw.so.5 (0xb71e5000)
libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xb71c4000)
libsigc-2.0.so.0 => /usr/lib/i386-linux-gnu/libsigc-2.0.so.0
(0xb71bf000)
libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0xb70bf000)
libept.so.1.aptpkg4.12 => /usr/lib/libept.so.1.aptpkg4.12 (0xb702c000)
libxapian.so.22 => /usr/lib/sse2/libxapian.so.22 (0xb6e43000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb6e29000)
libsqlite3.so.0 => /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xb6d79000)
libboost_iostreams.so.1.49.0 => /usr/lib/libboost_iostreams.so.1.49.0
(0xb6d61000)
libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
(0xb6d48000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb6c5c000)
libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xb6c35000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb6c18000)
libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb6ab5000)
libutil.so.1 => /lib/i386-linux-gnu/i686/cmov/libutil.so.1 (0xb6ab1000)
libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xb6aad000)
libbz2.so.1.0 => /lib/i386-linux-gnu/libbz2.so.1.0 (0xb6a9b000)
libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xb6a95000)
librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xb6a8c000)
/lib/ld-linux.so.2 (0xb778d000)
*** Please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these lines ***
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (900, 'testing'), (600, 'stable'), (200,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.6-trunk-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages aptitude depends on:
ii aptitude-common 0.6.8.1-2
ii libapt-pkg4.12 0.9.7.6
ii libboost-iostreams1.49.0 1.49.0-3.1
ii libc6 2.13-36
ii libcwidget3 0.5.16-3.4
ii libept1.4.12 1.0.9
ii libgcc1 1:4.7.2-4
ii libncursesw5 5.9-10
ii libsigc++-2.0-0c2a 2.2.10-0.2
ii libsqlite3-0 3.7.14.1-1
ii libstdc++6 4.7.2-4
ii libtinfo5 5.9-10
ii libxapian22 1.2.12-1
ii zlib1g 1:1.2.7.dfsg-13
Versions of packages aptitude recommends:
pn apt-xapian-index <none>
pn aptitude-doc-en | aptitude-doc <none>
ii libparse-debianchangelog-perl 1.2.0-1
ii sensible-utils 0.0.7
Versions of packages aptitude suggests:
pn debtags <none>
pn tasksel <none>
-- no debconf information
_______________________________________________
Aptitude-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel