<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16509</bug_id>
          
          <creation_ts>2026-11-15 02:02:33 +0000</creation_ts>
          <short_desc>distro_check: Ubuntu is always detected as xenial (16.04)</short_desc>
          <delta_ts>2026-11-15 02:42:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS REVIEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107470</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 02:02:33 +0000</bug_when>
    <thetext>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 (&quot;?C=M;O=D&quot;), 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 &quot;xenial&quot;:

  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 &quot;Supported: 1&quot; (currently resolute, 26.04).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107473</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 02:24:48 +0000</bug_when>
    <thetext>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/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107476</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 02:42:22 +0000</bug_when>
    <thetext>Tested on the layer index test instance (layers.moto-timo.net): RRS&apos;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).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>