Bug#1024765: apt-show-versions is confused when versions from different architectures disagree

2023-07-11 Thread Vincent Lefevre
Control: unmerge 1024765
Control: notfound 855428 0.22.13+nmu1
Control: notfound 1024765 0.22.7

On 2022-11-24 15:25:10 +0100, Vincent Lefevre wrote:
> Control: forcemerge 855428 -1
> 
> After a closer look, this seems to be the same bug as 855428,
> where there is the same behavior and same explanation.

In bug 855428, the user wasn't using a foreign architecture as
mentioned below, so the behavior should probably be different.
So, unmerge and correcting the "found" values to the original
ones.

I will merge 1024765 to 858337 instead (but I'm going to look
at other bugs too).

> There seems to be a difference: for bug 855428, there was apparently
> no foreign architecture; it just says "apt-show-versions is looking
> into different architectures' archives which happen to be on the same
> disk" and the "apt-cache policy" doesn't show a foreign architecture
> there, while I get:
> 
> cventin:~> apt-cache policy clang-14-doc
> clang-14-doc:
>   Installed: 1:14.0.6-8
>   Candidate: 1:14.0.6-8
>   Version table:
>  1:14.0.6-10~exp1 1
>   1 https://ftp.debian.org/debian experimental/main amd64 Packages
>   1 https://ftp.debian.org/debian experimental/main i386 Packages
>  *** 1:14.0.6-8 500
> 500 https://ftp.debian.org/debian unstable/main amd64 Packages
> 100 /var/lib/dpkg/status
>  1:14.0.6-6 500
> 500 https://ftp.debian.org/debian unstable/main i386 Packages
>  1:14.0.6-2 500
> 500 https://ftp.debian.org/debian testing/main amd64 Packages
> 500 https://ftp.debian.org/debian testing/main i386 Packages
> 
> So I'm not sure of the exact rules to select the package version.
> Anyway, this is inconsistent with apt and aptitude.

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



Bug#1024765: apt-show-versions is confused when versions from different architectures disagree

2022-11-24 Thread Vincent Lefevre
Control: forcemerge 855428 -1

After a closer look, this seems to be the same bug as 855428,
where there is the same behavior and same explanation.

There seems to be a difference: for bug 855428, there was apparently
no foreign architecture; it just says "apt-show-versions is looking
into different architectures' archives which happen to be on the same
disk" and the "apt-cache policy" doesn't show a foreign architecture
there, while I get:

cventin:~> apt-cache policy clang-14-doc
clang-14-doc:
  Installed: 1:14.0.6-8
  Candidate: 1:14.0.6-8
  Version table:
 1:14.0.6-10~exp1 1
  1 https://ftp.debian.org/debian experimental/main amd64 Packages
  1 https://ftp.debian.org/debian experimental/main i386 Packages
 *** 1:14.0.6-8 500
500 https://ftp.debian.org/debian unstable/main amd64 Packages
100 /var/lib/dpkg/status
 1:14.0.6-6 500
500 https://ftp.debian.org/debian unstable/main i386 Packages
 1:14.0.6-2 500
500 https://ftp.debian.org/debian testing/main amd64 Packages
500 https://ftp.debian.org/debian testing/main i386 Packages

So I'm not sure of the exact rules to select the package version.
Anyway, this is inconsistent with apt and aptitude.

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



Bug#1024765: apt-show-versions is confused when versions from different architectures disagree

2022-11-24 Thread Vincent Lefevre
Package: apt-show-versions
Version: 0.22.13+nmu1
Severity: normal

I get

cventin:~> apt-show-versions -a clang-14-doc
clang-14-doc:all 1:14.0.6-8 install ok installed
No stable version
No stable-updates version
clang-14-doc:all 1:14.0.6-2   testing  ftp.debian.org
clang-14-doc:all 1:14.0.6-6   unstable ftp.debian.org
clang-14-doc:all 1:14.0.6-10~exp1 experimental ftp.debian.org
clang-14-doc:all/experimental *manually* upgradeable from 1:14.0.6-8 to 
1:14.0.6-10~exp1

but the current unstable version is 1:14.0.6-8, not 1:14.0.6-6!

On https://tracker.debian.org/pkg/llvm-toolchain-14 one has

  [2022-11-12] Accepted llvm-toolchain-14 1:14.0.6-8 (source) into unstable
  (Sylvestre Ledru)

and on my machine, /usr/share/doc/clang-14-doc/changelog.Debian.gz
starts with

llvm-toolchain-14 (1:14.0.6-8) unstable; urgency=medium
   ^^  

Moreover,
/var/lib/apt/lists/ftp.debian.org_debian_dists_unstable_main_binary-amd64_Packages
contains

Package: clang-14-doc
Source: llvm-toolchain-14
Version: 1:14.0.6-8
[...]

I suspect that apt-show-versions is confused by
/var/lib/apt/lists/ftp.debian.org_debian_dists_unstable_main_binary-i386_Packages,
which contains

Package: clang-14-doc
Source: llvm-toolchain-14
Version: 1:14.0.6-6
[...]

i.e. the unstable version given by apt-show-versions.

I suppose that apt-show-versions should follow the behavior of apt
and aptitude.

Concerning apt:

cventin:~> apt install -s clang-14-doc/unstable
[...]
Selected version '1:14.0.6-8' (Debian:unstable [all]) for 'clang-14-doc'

so it takes the amd64 version, probably because this is the main
architecture on this machine (i386 being a foreign one).

And in /var/log/aptitude, I can see

[UPGRADE] clang-14-doc:amd64 1:14.0.6-7 -> 1:14.0.6-8

mentioning amd64 explicitly.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-4-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt-show-versions depends on:
ii  apt  2.5.4
ii  libapt-pkg-perl  0.1.40+b2
ii  perl [libstorable-perl]  5.36.0-4

apt-show-versions recommends no packages.

apt-show-versions suggests no packages.

-- no debconf information

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