[Bug 1862305] Re: distro-info in xenial backports needs a newer distro-info-data and versioned dependency
Christian Ehrhardt
1862305 at bugs.launchpad.net
Wed Sep 27 05:49:39 UTC 2023
xenial-updates:
ii distro-info 0.14ubuntu0.2
ii distro-info-data 0.28ubuntu0.18
root at x-bpotest:~# distro-info --supported-esm
xenial
bionic
focal
root at x-bpotest:~# distro-info --lts
focal
Going to the bad version in backports
$ apt install distro-info/xenial-backports
As expected it doesn't know about --supported-esm
# distro-info --supported-esm
ubuntu-distro-info: unrecognized option `--supported-esm'
But even --lts fails due to the data format change.
Update to the build from xenial-unapproved
=> https://launchpadlibrarian.net/689166277/distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_source.changes
Build in sbuild against xenial-backports fine, just the expected non fatal Lintian warnings.
# apt install ./distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'distro-info' instead of './distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_amd64.deb'
The following packages were automatically installed and are no longer required:
gettext-base libasprintf0v5 libfreetype6 libpng12-0
Use 'apt autoremove' to remove them.
Suggested packages:
shunit2
The following packages will be upgraded:
distro-info
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/20.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /root/distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_amd64.deb distro-info amd64 0.18ubuntu0.18.04.1~bpo18.04.1 [20.3 kB]
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 13054 files and directories currently installed.)
Preparing to unpack .../distro-info_0.18ubuntu0.18.04.1~bpo18.04.1_amd64.deb ...
Unpacking distro-info (0.18ubuntu0.18.04.1~bpo18.04.1) over (0.18~ubuntu16.04.1) ...
Setting up distro-info (0.18ubuntu0.18.04.1~bpo18.04.1) ...
With that things work again.
root at x-bpotest:~# distro-info --lts
focal
root at x-bpotest:~# distro-info --supported-esm
xenial
bionic
focal
Review of the changes:
1. The debdiff to 0.18ubuntu0.18.04.1 in current bionic-updates
$ debdiff distro-info_0.18ubuntu0.18.04.1.dsc distro-info_0.18ubuntu0.18.04.1~bpo18.04.1.dsc
- set distro-info-data that has been the backport of esm data in xenial-updates
- use older debian/compat
- changelog referring to this bug
=> That should be save and just right
2. The debdiff to the 0.18~ubuntu16.04.1 in current xenial-backports
$ debdiff distro-info_0.18~ubuntu16.04.1.dsc distro-info_0.18ubuntu0.18.04.1~bpo18.04.1.dsc
- same as above
- support for the milestone eol-esm and add filters for supported-esm (LP: #1808038)
=> which is exactly what we want
So yes, this LGTM, please accept it to xenial-backports
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to distro-info in Ubuntu.
https://bugs.launchpad.net/bugs/1862305
Title:
distro-info in xenial backports needs a newer distro-info-data and
versioned dependency
Status in Xenial Backports:
Won't Fix
Status in distro-info package in Ubuntu:
Invalid
Bug description:
Hi,
askubuntu [1] made me aware of this issue.
What I see is:
root at x:~# apt-cache policy distro-info distro-info-data
distro-info:
Installed: (none)
Candidate: 0.14ubuntu0.1
Version table:
0.18~ubuntu16.04.1 100
100 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
0.14ubuntu0.1 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
0.14build1 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
distro-info-data:
Installed: 0.28ubuntu0.13
Candidate: 0.28ubuntu0.13
Version table:
*** 0.28ubuntu0.13 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
0.28 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
The distro-info in backports is this atm:
https://launchpad.net/ubuntu/+source/distro-info/0.18~ubuntu16.04.1
The problem is that this is non-functional with the `distro-info-data`
in Xenial.
$ apt install distro-info=0.18~ubuntu16.04.1
$ distro-info --lts
ubuntu-distro-info: Header `version,codename,series,created,release,eol,eol-server,eol-esm' in file `/usr/share/distro-info/ubuntu.csv' does not match excatly `version,codename,series,created,release,eol,eol-server'.
For distro-info=0.18~ubuntu16.04.1 to work there should:
- also be a distro-info-data in backports
- the distro-info=0.18~ubuntu16.04.1 probably needs a versioned dependency on the newer distro-info
[1]: https://askubuntu.com/questions/1208133/virtual-machine-with-
uvitools-problem
To manage notifications about this bug go to:
https://bugs.launchpad.net/xenial-backports/+bug/1862305/+subscriptions
More information about the foundations-bugs
mailing list