mbox series

[layerindex-web,0/2] rrs_distros: match python3-* recipes to distro packages

Message ID 20261115031803.74076-2-tim.orling@konsulko.com
Headers show
Series rrs_distros: match python3-* recipes to distro packages | expand

Message

Tim Orling Nov. 15, 2026, 3:18 a.m. UTC
Almost no python3-* recipe was matched to a distro package: OE names
Python modules python3-<name>, Fedora and openSUSE name the source
package python-<name>, and Debian and Ubuntu name the binary package
python3-<name>. On a test instance, 7 meta-python recipes matched.

1: Fix the suffix stripping in search_package_in_distros(), which
   discarded the result of str.replace().
2: Also look for python-<name>, and record the name that matched. Debian
   and Ubuntu's python3-<name> binary packages are matched once OE-Core's
   distro_check lists them, which is sent separately to openembedded-core
   (bug 16512).

With both, on the test instance, 574 of meta-python's 727 recipes on
master matched at least one distro (7 before), and recipe-to-distro
matches went from 4177 to 6045, with no false matches seen in a sample
(e.g. python3-lz4 matches python-lz4, not the lz4 C library). The test
suite passes in the Docker image.

This applies on top of the series "Get the RRS update scripts working
again" (patchwork 104071-104076), which also changes rrs_distros.py:
https://lore.kernel.org/all/20261115003506.53654-1-tim.orling@konsulko.com/

Tim Orling (2):
  rrs_distros: strip the native/cross suffixes before matching distro
    packages
  rrs_distros: match python3-* recipes to distro packages

 rrs/tools/rrs_distros.py  | 15 +++++++----
 tests/test_rrs_distros.py | 55 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 5 deletions(-)
 create mode 100644 tests/test_rrs_distros.py