From patchwork Mon Nov 30 18:34:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 106586 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.39024.1796063692175006411 for ; Mon, 30 Nov 2026 10:34:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=s2l9hJQG; spf=pass (domain: konsulko.com, ip: 209.85.214.176, mailfrom: tim.orling@konsulko.com) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2f041f88577so58533455ad.1 for ; Mon, 30 Nov 2026 10:34:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796063691; x=1796668491; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=roN66aJ/I/vgGH5zLi5Qs0bLjuI1mDRgmW70CNIn7As=; b=s2l9hJQGPIo7RB2/kQGUM4uOWWEU6+rzHcA/3S9VvTnCwkbvGj4jrXBpZVIWiw9QJW SWze62Y9VOkbdkaqZ4C1POU0t7T4Ffn2isHwqikKrUysVNY4BUQqlq07iEX2AE3eehuo axn8b3sBb4Bz7n4ilVNE/BtxDtwvGbP01WtB0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796063691; x=1796668491; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=roN66aJ/I/vgGH5zLi5Qs0bLjuI1mDRgmW70CNIn7As=; b=0AOzOrOPtg1Ne8Nc7bRLXPADhKwbEFjVsSGnMenq6fbUG1yMGIEXAJYa0QHWPYFOSg scPPj4KyZ792x+Dqpp8G5by2mhfgHID1N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okX grh4KJZdu1w3KdojcoOjGetcii4677yzGgYu48wEW34Arh9KJ X-Received: by 2002:a17:902:ce0b:b0:2ed:102c:f24 with SMTP id d9443c01a7336-2f03f1e0c06mr355967135ad.53.1796063691431; Mon, 30 Nov 2026 10:34:51 -0800 (PST) Return-Path: Received: from thetis.home.local ([2606:c800:6024:2000:862d:8947:aa7d:fb9c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f099a4d875sm128543595ad.37.2026.11.30.10.34.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 10:34:50 -0800 (PST) From: Tim Orling To: docs@lists.yoctoproject.org Cc: Tim Orling Subject: [PATCH] ref-manual/qa-checks.rst: document perl-rdeps Date: Mon, 30 Nov 2026 10:34:02 -0800 Message-ID: <20261130183439.2471243-1-tim.orling@konsulko.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 18:35:00 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10858 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 --- NOTE: Depends on series not yet merged to oe-core documentation/ref-manual/qa-checks.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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`` +-------------- + +`` uses Perl modules not provided by its RDEPENDS: Consider: RDEPENDS: += "" [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``