Bug 16512 - distro_check: Debian/Ubuntu lists only have source package names, so python3-* recipes never match
Summary: distro_check: Debian/Ubuntu lists only have source package names, so python3-...
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:46 UTC by Tim Orling
Modified: 2026-11-15 03:35 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:46:48 UTC
get_debian_style_source_package_list() in meta/lib/oe/distro_check.py
records only the "Package:" (source package) names from Debian style
Sources files. Debian names Python modules' source packages after the
upstream project ("brotli", "requests", "six"), but their binary
packages python3-<name>, as OE does. So an OE recipe such as
python3-brotli is never found in Debian or Ubuntu, even though the
"brotli" source package builds python3-brotli:

  Package: brotli
  Binary: python3-brotli, brotli, libbrotli-dev, libbrotli1

The Recipe Reporting System on the layer index matches recipes against
these lists: in meta-python, 0 of 712 python3-* recipes matched Debian.

Proposed fix: also record the names in each source package's "Binary:"
field (which can continue over several lines). Debian 13.7's list then
has 91775 names (37593 before), 5316 of them python3-*.
Comment 1 Tim Orling 2026-11-15 03:15:53 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 and
16509-16511 patches, the patch for 16512 (Debian/Ubuntu binary package
names) and the layer index change for 16513 (python3-<name> also matches
python-<name>):

  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's
python3-icu binary package; qemu-system-native matches Debian's
qemu-system.
Comment 2 Tim Orling 2026-11-15 03:35:03 UTC
Patch sent to openembedded-core, under review (patchwork 104085; applies on top of series 53381):
https://lore.kernel.org/all/20261115033018.75976-2-tim.orling@konsulko.com/