perl: generate module dependencies with perl.req
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 0 repliesNew
- v15 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- 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.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | perl-generators-native: add recipe for 1.16meta/ meta/ meta/ +1 more | +115 | 0 replies | |
| 2/8 | classes/package_rpm: disable rpmbuild's perllib provides generatormeta/ | +1 | 0 replies | |
| 3/8 | classes/package: add perl-generators-native to PACKAGE_DEPENDSmeta/ | +2 | 0 replies | |
| 4/8 | classes/insane: add perl-rdeps QA checkmeta/ meta/ | +150 | 0 replies | |
| 5/8 | perl: do not install unicore/TestNorm.plmeta/ | +3 | 0 replies | |
| 6/8 | libxml-sax-base-perl: add perl-module-base to ptest RDEPENDSmeta/ | +1 | 0 replies | |
| 7/8 | libtimedate-perl: add perl-module-base to RDEPENDSmeta/ | +1 | 0 replies | |
| 8/8 | perl: generate perl-rdepends.txt with perl.reqmeta/ meta/ | +1179 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/8] perl: generate module dependencies with perl.req
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/[email protected]/
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
Signature · 1 line
2.47.3