Bug 16509 - distro_check: Ubuntu is always detected as xenial (16.04)
Summary: distro_check: Ubuntu is always detected as xenial (16.04)
Status: IN PROGRESS REVIEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium normal
Target Milestone: 6.2 M2
Assignee: Tim Orling
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-11-15 02:02 UTC by Tim Orling
Modified: 2026-11-15 02:42 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Orling 2026-11-15 02:02:33 UTC
find_latest_ubuntu_release() in meta/lib/oe/distro_check.py asks
archive.ubuntu.com/ubuntu/dists/ for a listing sorted by date, newest
first ("?C=M;O=D"), and takes the first *-updates directory. The archive
ignores that query and lists the directories oldest first (xenial,
bionic, focal, jammy, noble, ...), so the result is always "xenial":

  NOTE: Distro: Ubuntu, Latest Release: xenial, # src packages: 3456

Proposed fix: read https://changelogs.ubuntu.com/meta-release, the list
of releases that do-release-upgrade uses, and take the last release
marked "Supported: 1" (currently resolute, 26.04).
Comment 1 Tim Orling 2026-11-15 02:24:48 UTC
Patch 1/3 sent to openembedded-core, under review (patchwork 104081, series 53381):
https://lore.kernel.org/all/20261115021914.67744-1-tim.orling@konsulko.com/
Comment 2 Tim Orling 2026-11-15 02:42:22 UTC
Tested on the layer index test instance (layers.moto-timo.net): RRS's
rrs_distros.py against OE-Core master (f32bced7b4) with the 16503
series and this series applied:

  NOTE: Distro: Debian, Latest Release: 13.7, # src packages: 37593
  NOTE: Distro: Ubuntu, Latest Release: resolute, # src packages: 3053
  NOTE: Distro: Fedora, Latest Release: 45, # src packages: 23237
  NOTE: Distro: openSUSE, Latest Release: 16.1, # src packages: 10638

No warnings. The run completed for all eight layer branches, and the
recipe-to-distro matches went from 3035 (Debian, Ubuntu xenial, Fedora)
to 4177 (Debian 1317, Fedora 1186, openSUSE 1089, Ubuntu 585).