[Aptitude-devel] Bug#1061734: aptitude: in TUI, incorrect "will be automatically removed because of dependency errors" message

2024-01-29 Thread Vincent Lefevre
Note that there was a similar bug in the past (2005, fixed in 2016):

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=342835

with title:

  aptitude: "X will be automatically removed because of dependency errors:"
  then no errors shown

On 2024-01-29 11:20:45 +0100, Vincent Lefevre wrote:
> When I choose to upgrade swig from the TUI, I get the incorrect message
> 
> 
> swig4.0 (remove, 4.1.0-0.3) will be automatically removed because of
> dependency errors:
> 
> 
> with nothing else.

I cannot reproduce this issue on another machine, which doesn't have
a foreign architecture. I get just after 'g' and putting the cursor
over the swig4.0 line:


swig4.0 (remove, 4.1.0-0.3) will be automatically removed because of dependency
errors:

  * swig (upgrade, 4.1.0-0.3 -> 4.2.0-1) conflicts with swig4.0


However, AFAIK, it will be automatically removed not because of the
conflict, but because the new swig package no longer depends on it
(on both machines, swig4.0 is marked as automatically installed).

This is a different message from

> Then, when I type ':' over the swig4.0 line, this message changes to:
> 
> 
> swig4.0 (remove, 4.1.0-0.3) was installed automatically; it is being removed
> because all of the packages which depend upon it are being removed:
> 
>   * swig (upgrade, 4.1.0-0.3 -> 4.2.0-1) depends on swig4.0 (>= 4.1.0-0.3)
> (provided by swig4.0:i386 4.1.0-0.3)
> 

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

___
Aptitude-devel mailing list
Aptitude-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/aptitude-devel


[Aptitude-devel] Bug#1061734: aptitude: in TUI, incorrect "will be automatically removed because of dependency errors" message

2024-01-29 Thread Vincent Lefevre
Package: aptitude
Version: 0.8.13-5+b1
Severity: normal

When I choose to upgrade swig from the TUI, I get the incorrect message


swig4.0 (remove, 4.1.0-0.3) will be automatically removed because of dependency
errors:


with nothing else.

With more details:

I currently have

i   swig   4.1.0-0.34.2.0-1

Over this line, I type '+', so that I get:

aptitude 0.8.13 @ cventinDisk: -184 kB   DL: 1429 kB
[...]
iu  swig +5509 kB  4.1.0-0.34.2.0-1

Now, I type 'g', and I get:

--\ Packages to be upgraded (1) 
iu  swig +5509 kB  4.1.0-0.34.2.0-1 
--\ Packages being deleted due to unsatisfied dependencies (1)
idA swig4.0  -5693 kB  4.1.0-0.34.1.0-0.3   
--\ Packages being held back (15)
[...]

Over the swig line, I get:


swig (upgrade, 4.1.0-0.3 -> 4.2.0-1) will be upgraded from version 4.1.0-0.3 to
version 4.2.0-1.


Over the swig4.0 line, I get:


swig4.0 (remove, 4.1.0-0.3) will be automatically removed because of dependency
errors:


with nothing else. Without any error message, this doesn't make sense.

Then, when I type ':' over the swig4.0 line, this message changes to:


swig4.0 (remove, 4.1.0-0.3) was installed automatically; it is being removed
because all of the packages which depend upon it are being removed:

  * swig (upgrade, 4.1.0-0.3 -> 4.2.0-1) depends on swig4.0 (>= 4.1.0-0.3)
(provided by swig4.0:i386 4.1.0-0.3)


Now this is almost correct. I don't understand the ":i386". This is
a configured foreign architecture on this machine, but this package
is not installed:

cventin:~> dpkg -l | grep swig
ii  swig   4.1.0-0.3
all  Generate scripting interfaces to C/C++ code
ii  swig4.04.1.0-0.3
amd64Generate scripting interfaces to C/C++ code

Note that with the currently installed swig package:

Package: swig
Version: 4.1.0-0.3
[...]
Architecture: all
Replaces: swig2.0
Depends: swig4.0 (>= 4.1.0-0.3)
Suggests: swig-doc, swig-examples
Conflicts: swig2.0

and with the new version:

Package: swig
Version: 4.2.0-1
[...]
Architecture: amd64
Replaces: swig4.0
Depends: libc6 (>= 2.34), libgcc-s1 (>= 3.0), libpcre2-8-0 (>= 10.22), 
libstdc++6 (>= 13.1)
Suggests: swig-doc, swig-examples
Conflicts: swig4.0

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

aptitude version information:
aptitude 0.8.13
Compiler: g++ 13.2.0
Compiled against:
  apt version 6.0.0
  NCurses version 6.4
  libsigc++ version: 2.12.1
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 6.4.20240113
  cwidget version: 0.5.18
  Apt version: 6.0.0

aptitude linkage:
linux-vdso.so.1 (0x7ffeeaddb000)
libgtk3-nocsd.so.0 => /lib/x86_64-linux-gnu/libgtk3-nocsd.so.0 
(0x7fa687a8f000)
libapt-pkg.so.6.0 => /lib/x86_64-linux-gnu/libapt-pkg.so.6.0 
(0x7fa68720)
libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 
(0x7fa687a55000)
libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 
(0x7fa6875cb000)
libsigc-2.0.so.0 => /lib/x86_64-linux-gnu/libsigc-2.0.so.0 
(0x7fa687a4c000)
libcwidget.so.4 => /lib/x86_64-linux-gnu/libcwidget.so.4 
(0x7fa6874c9000)
libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 
(0x7fa68708a000)
libboost_iostreams.so.1.83.0 => 
/lib/x86_64-linux-gnu/libboost_iostreams.so.1.83.0 (0x7fa6874af000)
libxapian.so.30 => /lib/x86_64-linux-gnu/libxapian.so.30 
(0x7fa686e0)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 
(0x7fa686a0)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7fa686d21000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x7fa687482000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fa68681e000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7fa687a43000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7fa68747d000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x7fa68745e000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 
(0x7fa68744b000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x7