| Summary: | distro_check: Ubuntu is always detected as xenial (16.04) | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Tim Orling <tim.orling> |
| Component: | oe-core other | Assignee: | Tim Orling <tim.orling> |
| Status: | IN PROGRESS REVIEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | ||
| Version: | unspecified | ||
| Target Milestone: | 6.2 M2 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
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/ 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). |
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).