Missing tests from libdrm-tests

Bug #1998001 reported by Bram Stolk
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found
New
Undecided
Unassigned
command-not-found (Ubuntu)
Fix Released
Medium
Unassigned
Kinetic
Won't Fix
Undecided
Unassigned
libdrm (Ubuntu)
Invalid
Undecided
Unassigned
Kinetic
Won't Fix
Undecided
Unassigned

Bug Description

It is advertised by the OS that kms-universal-planes can be installed via libdrm-tests but this is false:

$ kms-universal-planes
Command 'kms-universal-planes' not found, but can be installed with:
sudo apt install libdrm-tests

$ sudo apt install libdrm-tests
[sudo] password for stolk:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  libdrm-tests
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 47.5 kB of archives.
After this operation, 193 kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu kinetic/universe amd64 libdrm-tests amd64 2.4.113-2 [47.5 kB]
Fetched 47.5 kB in 0s (142 kB/s)
Selecting previously unselected package libdrm-tests.
(Reading database ... 308766 files and directories currently installed.)
Preparing to unpack .../libdrm-tests_2.4.113-2_amd64.deb ...
Unpacking libdrm-tests (2.4.113-2) ...
Setting up libdrm-tests (2.4.113-2) ...

$ kms-universal-planes
Command 'kms-universal-planes' not found, but can be installed with:
sudo apt install libdrm-tests

OS: Ubuntu 22.10

Tags: kinetic
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I can confirm this behaviour on Ubuntu 22.10. The package suggestions come from command-not-found, maybe the list of available binaries hasn't been updated.

Changed in libdrm (Ubuntu):
status: New → Confirmed
Changed in command-not-found (Ubuntu):
status: New → Confirmed
tags: added: kinetic
Revision history for this message
Brian Murray (brian-murray) wrote :

From what I can tell an old version of the package did provide kms-universal-planes but the new version does not. In http://archive.ubuntu.com/ubuntu/dists/kinetic/universe/cnf/Commands-amd64.xz we can see:

25486 name: libdrm-tests
25487 version: 2.4.110-1ubuntu1
25488 commands: amdgpu_stress,drmdevice,kms-steal-crtc,kms-universal-planes,modeprint,modetest,proptest,vbltest

The date of the file is from 2022-06-27 which is well before the Kinetic release so this could be an issue with the server providing the cnf data.

Changed in command-not-found (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

@Michael Vogt - the command-not-found extractor was broken for a while (due to a crash in python-apt) and so the indexes were not being updated. Is there someway to update the kinetic release cnf indexes post release so that kms-universal-planes is removed?

Changed in libdrm (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Michael Vogt (mvo) wrote :

@Brian Once the archive is frozen this is not entirely trivial anymore as the command-not-found indexfile is stored in the now frozen archive mirror.

It seems the easiest way to fix is:
* uploading a higher version in the -updates pocket should fix the problem automatically, the database code (CommandNotFound/db/creator.py:_parse_single_commands_file()) should discard the content of older versions. There are some useful ways to control what commands are visible from the pkg, you could use "X-Cnf-Ignore-Commands: kms-universal-planes" on the "libdrm-tests" binary package stanza (see what-is-python for an example)

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Given that common-not-found is working in Lunar, I've marked this as "Fix Release" and marked Kinetic as "Confirmed". Thanks.

Changed in command-not-found (Ubuntu Kinetic):
status: New → Confirmed
Changed in command-not-found (Ubuntu):
status: Confirmed → Fix Released
Changed in command-not-found (Ubuntu Kinetic):
status: Confirmed → Won't Fix
Changed in libdrm (Ubuntu Kinetic):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.