<?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>16513</bug_id>
          
          <creation_ts>2026-11-15 02:46:50 +0000</creation_ts>
          <short_desc>RRS: python3-* recipes are almost never matched to a distro package</short_desc>
          <delta_ts>2026-11-15 03:26:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Recipe Reporting System (RRS)</product>
          <component>Recipe Reporting System (RRS)</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>107480</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 02:46:50 +0000</bug_when>
    <thetext>search_package_in_distros() in rrs/tools/rrs_distros.py looks for a
recipe&apos;s PN in each distro&apos;s package list. OE names Python modules
python3-&lt;name&gt;, but distros name their source packages differently:
Fedora and openSUSE use python-&lt;name&gt;, and Debian and Ubuntu use the
upstream project&apos;s name (with python3-&lt;name&gt; as the binary package). On
a test instance, 1 of meta-python&apos;s 712 python3-* recipes matched any
distro.

Proposed fix: for python3-&lt;name&gt; recipes, also look for python-&lt;name&gt;.
Together with the OE-Core change to record Debian/Ubuntu binary package
names (bug 16512), this matches about 414 recipes in Fedora, 322 in
openSUSE and more in Debian. The bare &lt;name&gt; isn&apos;t tried: it gives
false matches such as python3-icu -&gt; icu and python3-lz4 -&gt; lz4.

Also, the loop that should strip nativesdk-/-native/-cross/-initial from
the PN discards the result of str.replace(), so it has never done
anything.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107482</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 03:15:53 +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 and
16509-16511 patches, the patch for 16512 (Debian/Ubuntu binary package
names) and the layer index change for 16513 (python3-&lt;name&gt; also matches
python-&lt;name&gt;):

  NOTE: Distro: Debian, Latest Release: 13.7, # packages: 91775
  NOTE: Distro: Ubuntu, Latest Release: resolute, # packages: 16528
  NOTE: Distro: Fedora, Latest Release: 45, # packages: 23237
  NOTE: Distro: openSUSE, Latest Release: 16.1, # packages: 10638

No warnings. Recipes on master matched to at least one distro:
meta-python 574 of 727 (7 before), openembedded-core 664 of 960,
meta-oe 767 of 1094. Recipe-to-distro matches went from 4177 to 6045.

Examples: python3-requests matches python3-requests in Debian and Ubuntu
and python-requests in Fedora and openSUSE; python3-lz4 matches
python-lz4, not the lz4 C library; python3-icu matches Debian&apos;s
python3-icu binary package; qemu-system-native matches Debian&apos;s
qemu-system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107483</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 03:26:39 +0000</bug_when>
    <thetext>Patches sent to yocto-patches, under review (patchwork 104083, 104084):
https://lore.kernel.org/all/20261115031803.74076-2-tim.orling@konsulko.com/

Debian/Ubuntu matching also needs the OE-Core change for bug 16512.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>