From patchwork Mon Nov 30 17:18:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3253 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37356.1796059311241496825 for ; Mon, 30 Nov 2026 09:21:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=dkgqQPNr; spf=pass (domain: konsulko.com, ip: 209.85.214.180, mailfrom: tim.orling@konsulko.com) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2f04ad2c46dso64868995ad.2 for ; Mon, 30 Nov 2026 09:21:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796059310; x=1796664110; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RJbG15qoMto4mnHIZHCCklAAq1CNvog6L5PSuZ6XIuA=; b=dkgqQPNr7g8BgSom8HSpeHsVf0VsWKsPpTMZHJMbewI2tnsjoBbmC7AVruzDlM87/r Fg6yg5SuZKxygMQvqguclATVKucXD10G8v3HiLBzqqhwMsTnysi7+YXkN61Jj+e2k6us +sJGSxcfLVRv0Raj4FkZ31eCGGSNnwK1heJgI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796059310; x=1796664110; h=content-transfer-encoding:mime-version:references:in-reply-to :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=RJbG15qoMto4mnHIZHCCklAAq1CNvog6L5PSuZ6XIuA=; b=LKUDQhXoygFj6n5Z13RtS4xRmVGbGL1ILL5Axv7Be9D1XXE7OWMDx61q9rBsYQ7Gp4 giYSCOgm+wBO5cUwyYi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m3bAFCQGsGV7ny+3dbbiTjIBA 48la0UAMOWlR4S7r5n/MpTXb/ZrY= X-Received: by 2002:a17:902:dacc:b0:2f0:25ea:8fc6 with SMTP id d9443c01a7336-2f03f1a47dbmr342994795ad.28.1796059310416; Mon, 30 Nov 2026 09:21:50 -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-2f03f0c1a74sm172155815ad.12.2026.11.30.09.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 09:21:49 -0800 (PST) From: Tim Orling To: openembedded-core@lists.openembedded.org Cc: Tim Orling Subject: [PATCH v2 0/8] perl: generate module dependencies with perl.req Date: Mon, 30 Nov 2026 09:18:41 -0800 Message-ID: <20261130172147.791861-1-tim.orling@konsulko.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261130011401.68860-1-tim.orling@konsulko.com> References: <20261130011401.68860-1-tim.orling@konsulko.com> 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 17:21:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251631 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. 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 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. The regenerated perl-rdepends.txt drops some over-broad dependencies, for example perl-module-extutils-makemaker no longer pulls in perl-module-base. Recipes that relied on that now need their own RDEPENDS. In oe-core these are libxml-sax-base-perl and libtimedate-perl (patches 6 and 7). For meta-perl, a series [1] adding the same kind of RDEPENDS to nine recipes goes to openembedded-devel at the same time and should be merged before or together with patch 8. Changes in v2: - New patch 2: disable rpmbuild's perllib provides generator. With perl-generators-native in the sysroot, rpmbuild added every perl() Provides a second time, depending on whether do_package came from sstate, which broke the reproducibility test. - New patches 6 and 7: add perl-module-base to libxml-sax-base-perl and libtimedate-perl, which patch 8 no longer pulls in indirectly. - Tested on qemux86-64 with package_rpm: no duplicate Provides in the rpms. With the meta-perl series, the perl ptests of oe-core and meta-perl (one image each) show no failures caused by the series. [YOCTO #13376] [1] https://lore.kernel.org/all/20261130171625.722642-1-tim.orling@konsulko.com/ AI-Generated: Uses Claude Code (Claude Opus 5.5) Tim Orling (8): perl-generators-native: add recipe for 1.16 classes/package_rpm: disable rpmbuild's perllib provides generator classes/package: add perl-generators-native to PACKAGE_DEPENDS classes/insane: add perl-rdeps QA check perl: do not install unicore/TestNorm.pl libxml-sax-base-perl: add perl-module-base to ptest RDEPENDS libtimedate-perl: add perl-module-base to RDEPENDS perl: generate perl-rdepends.txt with perl.req meta/classes-global/insane.bbclass | 128 + meta/classes-global/package.bbclass | 3 +- meta/classes-global/package_rpm.bbclass | 1 + 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 + .../perl/libtimedate-perl_2.35.bb | 1 + .../perl/libxml-sax-base-perl_1.09.bb | 2 +- 12 files changed, 1452 insertions(+), 1641 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