[Aptitude-devel] Bug#720750: aptitude: search returns different numbers of packages depending on sort order

Christoph Groth cwg at falma.de
Sun Aug 25 06:29:13 BST 2013


Package: aptitude
Version: 0.6.8.2-1
Severity: normal

Dear Maintainers,

I noticed that specifying different sorting orders with "aptitude search" does
lead to differing numbers of results being reported.  For example

$ aptitude search ~i^lib | wc -l
1027
$ aptitude -O name search ~i^lib | wc -l
1027
$ aptitude -O installsize search ~i^lib | wc -l
610
$ aptitude -O version search ~i^lib | wc -l
676
$ aptitude -O priority search ~i^lib | wc -l
5

I find this behavior very surprising.  If it is intended, I believe it should be
documented more clearly - I was not able to find any explanation of it.

Thank you,
Christoph


-- Package-specific info:
Terminal: xterm
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.6.8.2 compiled at Nov  7 2012 07:08:03
Compiler: g++ 4.7.2
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.20130608
  cwidget version: 0.5.16
  Apt version: 4.12.0

aptitude linkage:
	linux-vdso.so.1 (0x00007fffe8755000)
	libapt-pkg.so.4.12 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (0x00007fd2c6c4b000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007fd2c6a1b000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fd2c67f1000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007fd2c65ec000)
	libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007fd2c62ec000)
	libept.so.1.aptpkg4.12 => /usr/lib/libept.so.1.aptpkg4.12 (0x00007fd2c604b000)
	libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007fd2c5c68000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd2c5a50000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fd2c579e000)
	libboost_iostreams.so.1.49.0 => /usr/lib/libboost_iostreams.so.1.49.0 (0x00007fd2c5586000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd2c536a000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd2c5061000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd2c4d63000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd2c4b4d000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd2c47a0000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fd2c459d000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd2c4399000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fd2c4188000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fd2c4182000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd2c3f79000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fd2c75f1000)

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (300, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  aptitude-common           0.6.8.2-1
ii  libapt-pkg4.12            0.9.9.4
ii  libboost-iostreams1.49.0  1.49.0-4
ii  libc6                     2.17-92
ii  libcwidget3               0.5.16-3.4
ii  libept1.4.12              1.0.9
ii  libgcc1                   1:4.8.1-2
ii  libncursesw5              5.9+20130608-1
ii  libsigc++-2.0-0c2a        2.2.10-0.2
ii  libsqlite3-0              3.7.17-1
ii  libstdc++6                4.8.1-2
ii  libtinfo5                 5.9+20130608-1
ii  libxapian22               1.2.15-2
ii  zlib1g                    1:1.2.8.dfsg-1

Versions of packages aptitude recommends:
pn  apt-xapian-index                <none>
ii  aptitude-doc-en [aptitude-doc]  0.6.8.2-1
ii  libparse-debianchangelog-perl   1.2.0-1
ii  sensible-utils                  0.0.9

Versions of packages aptitude suggests:
pn  debtags  <none>
ii  tasksel  3.16

-- no debconf information



More information about the Aptitude-devel mailing list