diff mbox series

ref-manual/qa-checks.rst: document perl-rdeps

Message ID 20261130183439.2471243-1-tim.orling@konsulko.com
State New
Headers show
Series ref-manual/qa-checks.rst: document perl-rdeps | expand

Commit Message

Tim Orling Nov. 30, 2026, 6:34 p.m. UTC
Document the opt-in perl-rdeps QA check added by the oe-core series
"perl: generate module dependencies with perl.req", which reports Perl
modules a package uses but its RDEPENDS do not provide.

Tested with "make html": no new warnings.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
NOTE: Depends on series not yet merged to oe-core

 documentation/ref-manual/qa-checks.rst | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series

Patch

diff --git a/documentation/ref-manual/qa-checks.rst b/documentation/ref-manual/qa-checks.rst
index 14e3632ce..5d02d5cac 100644
--- a/documentation/ref-manual/qa-checks.rst
+++ b/documentation/ref-manual/qa-checks.rst
@@ -627,6 +627,32 @@  other things in the patches, those can be discarded.
 Checks that a recipe inheriting :ref:`ref-classes-setuptools3` has a
 PEP517-compliant backend.
 
+.. _qa-check-perl-rdeps:
+
+``perl-rdeps``
+--------------
+
+``<packagename> uses Perl modules not provided by its RDEPENDS: <modules> Consider: RDEPENDS:<packagename> += "<packages>" [perl-rdeps]``
+
+Checks that the Perl modules used by the ``.pm``, ``.pl`` and ``.t`` files
+and Perl scripts in a package are provided by the package itself or by its
+runtime dependencies (:term:`RDEPENDS`, followed recursively). The required
+modules are found with ``perl.req`` from ``perl-generators-native``, and the
+provided ones from the ``perl()`` provides and file lists in the package
+data. The message suggests the packages that provide the missing modules,
+to add to :term:`RDEPENDS`.
+
+This check is not enabled by default. To enable it, add it to
+:term:`WARN_QA` or :term:`ERROR_QA`::
+
+   WARN_QA:append = " perl-rdeps"
+
+``perl.req`` cannot tell optional modules apart, for example modules only
+loaded when available, so a report can be a false positive. Modules that no
+package in the package data provides are only logged in the task log, not
+reported. Since the check uses the package data of the dependencies, build
+them first for complete results.
+
 .. _qa-check-perllocalpod:
 
 ``perllocalpod``