Package: dselect
Version: 1.15.6
Severity: grave
Tags: patch
Justification: renders package unusable

dselect no longer shows the "recurisve package listings" screens that
allows uset to manually resolve dependencies or conflicts. Instead it 
automatically (de)selects all dependant packages. 
To reproduce: 
1. run dselect select
2. find libc6 and press - to mark it for removal. This will autmatically 
mark all other packages for removal without asking user about any
confirmation!

The bug was introdced by commit f426b031ac858fa30ace69959a43b61fb40f4be9:
   Author: Guillem Jover <guil...@debian.org>  2010-02-10 02:13:30
      dselect: Use max/min instead of lesserint/greaterint

The simple patch:

--- pkgdepcon.cc.old    2010-03-11 08:51:36.000000000 +0100
+++ pkgdepcon.cc        2010-03-21 12:07:58.000000000 +0100
@@ -24,6 +24,9 @@
 #include <assert.h>
 #include <string.h>
 #include <stdio.h>
+#include <algorithm>
+#define max(x,y) std::max(x,y);
+#define min(x,y) std::min(x,y);
 
 #include <dpkg/dpkg.h>
 #include <dpkg/dpkg-db.h>


Regards,
robert

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (200, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/pdksh

Versions of packages dselect depends on:
ii  dpkg                      1.15.6         Debian package management system
ii  libc6                     2.10.2-6       Embedded GNU C Library: Shared lib
ii  libgcc1                   1:4.4.3-3      GCC support library
ii  libncursesw5              5.7+20100313-1 shared libraries for terminal hand
ii  libstdc++6                4.4.3-3        The GNU Standard C++ Library v3

dselect recommends no packages.

Versions of packages dselect suggests:
ii  perl                          5.10.1-11  Larry Wall's Practical Extraction 

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to