From patchwork Mon Nov 30 01:13:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3239 Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.23717.1796001246255059719 for ; Sun, 29 Nov 2026 17:14:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=LYy68BXf; spf=pass (domain: konsulko.com, ip: 209.85.215.169, mailfrom: tim.orling@konsulko.com) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-cdadf7e248aso4339039a12.3 for ; Sun, 29 Nov 2026 17:14:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796001245; x=1796606045; darn=lists.openembedded.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=OVzDnxO9+Pl3dvYBbfgG7C/PxdBPEBxwoOvZ/e3P9qQ=; b=LYy68BXfYCWV3lPnDn54IB3PLPa98AalFmR9spIRTsZEbBVXpfv5kdLQUtzLkW1Xsi enkQaCwsYf5dijpxLY8TEkjaBgxPnXGBUbAYbWPxqfEckFxUo+7eXPUgvd72+6y8GovW s/ZtkTQz9yHBbWITT9KEO+2D2tlppASydU7aM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796001245; x=1796606045; 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=OVzDnxO9+Pl3dvYBbfgG7C/PxdBPEBxwoOvZ/e3P9qQ=; b=wXxi2+bi1dhs/dB4ghfaTo2xQ32xaVoCKYZmYRO+BT9z6QaNpq70J9tkmUDSBNw2wq f006uPRYPzH+bMzy0WLVyzbAPoUH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zpjHb35X g4HbdlRYiZYsKp6QlSmAwAo2Lf6bCZ27fYnjSMfdnMDAUzVggByqqNlYlhwCSv158Rg== X-Received: by 2002:a17:90b:2cce:b0:3b0:aaed:48d0 with SMTP id 98e67ed59e1d1-3b41c94ff49mr32012068a91.37.1796001245239; Sun, 29 Nov 2026 17:14:05 -0800 (PST) Return-Path: Received: from localhost (c-24-20-171-118.hsd1.or.comcast.net. [24.20.171.118]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b41ad46ef5sm50125695a91.8.2026.11.29.17.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 17:14:04 -0800 (PST) From: Tim Orling To: openembedded-core@lists.openembedded.org Cc: Tim Orling Subject: [PATCH 0/5] perl: generate module dependencies with perl.req Date: Sun, 29 Nov 2026 17:13:56 -0800 Message-ID: <20261130011401.68860-1-tim.orling@konsulko.com> X-Mailer: git-send-email 2.56.1 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 01:14:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251561 Perl runtime dependencies in OE are maintained by hand, and gaps usually only show up at runtime or in ptests. rpm 4.20 also dropped perl.prov and perl.req, so pkgdata no longer records perl(Module::Name) provides. This series adds Fedora's perl generators as perl-generators-native, restoring the perl() FILERPROVIDES in pkgdata (provides only, so no new rpm Requires). On top of that it adds an opt-in perl-rdeps QA check, enabled with WARN_QA:append = " perl-rdeps", which reports perl() module requirements not met by a package's RDEPENDS. It also regenerates perl's own perl-rdepends.txt from perl.req instead of the egrep/sed pipeline. An earlier idea was to take build, runtime and test dependencies from the metacpan.org metadata. That was abandoned: the dependencies are held in nested Elasticsearch documents which the MetaCPAN API cannot query, and the META.json/META.yml files shipped in CPAN tarballs are not consistent from one distribution to another. Either way the result would be the upstream-declared prerequisites of a whole distribution, not what each OE package's files actually use. perl.req is preferred over the egrep/sed pipeline because it parses Perl, not just lines starting with use/require. It skips POD, heredocs and interpolated module names, and handles forms like "use parent" and "use base" with their module arguments. The pipeline missed many dependencies (most perl-module packages lacked e.g. Carp, Scalar::Util and File::Spec) and needed a growing exclusion list. With perl.prov, module names map to the package that actually ships them instead of a guessed perl-module-* name. perl.req is maintained by Fedora and used for their whole Perl stack, and the same script drives both perl-rdepends.txt and the perl-rdeps check. Tested on qemux86-64 with package_rpm, with oe-core plus meta-oe, meta-perl, meta-python and meta-networking. perl's own perl-rdeps warnings drop from 344 to 1. The check also flags real gaps elsewhere, for example groff, texinfo, git-perltools and many meta-perl recipes. In meta-perl, the libnet-ssleay-perl, libdbd-sqlite-perl, libcrypt-openssl-rsa-perl, libtest-deep-perl and libterm-readkey-perl ptests fail for modules it reports missing (base.pm, DynaLoader.pm). Fixes for those gaps will follow separately. [YOCTO #13376] AI-Generated: Uses Claude Code (Claude Opus 5.5) Tim Orling (5): perl-generators-native: add recipe for 1.16 classes/package: add perl-generators-native to PACKAGE_DEPENDS classes/insane: add perl-rdeps QA check perl: do not install unicore/TestNorm.pl perl: generate perl-rdepends.txt with perl.req meta/classes-global/insane.bbclass | 128 + meta/classes-global/package.bbclass | 3 +- meta/conf/distro/include/maintainers.inc | 1 + meta/lib/oe/package.py | 22 + .../perl/files/perl-rdepends.txt | 2708 +++++++---------- meta/recipes-devtools/perl/perl_5.44.0.bb | 113 +- .../rpm/perl-generators-native_1.16.bb | 38 + ...01-perl.req-make-Fedora-VSP-optional.patch | 42 + ...q-optionally-report-indented-require.patch | 34 + 9 files changed, 1449 insertions(+), 1640 deletions(-) create mode 100644 meta/recipes-devtools/rpm/perl-generators-native_1.16.bb create mode 100644 meta/recipes-devtools/rpm/perl-generators/0001-perl.req-make-Fedora-VSP-optional.patch create mode 100644 meta/recipes-devtools/rpm/perl-generators/0002-perl.req-optionally-report-indented-require.patch