All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <tim.orling@konsulko.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH 0/5] perl: generate module dependencies with perl.req
Date: Mon, 30 Nov 2026 14:50:08 +0100	[thread overview]
Message-ID: <DN8LDXDD4744.2UMXIAPMV291Q@bootlin.com> (raw)
In-Reply-To: <20261130011401.68860-1-tim.orling@konsulko.com>

On Mon Nov 30, 2026 at 2:13 AM CET, Tim Orling via openembedded-core wrote:
> 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)
>

Hi Tim,

I tried to build without the last patch in this series, because of the
ptest issue I mentioned there. It went mostly well, except for the
reproducibility test:

AssertionError: The following rpm packages are different and not in exclusion list:
/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/deploy/rpm/./x86_64_v3/automake-1.20-r0.x86_64_v3.rpm
/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/deploy/rpm/./x86_64_v3/coreutils-ptest-9.12-r0.x86_64_v3.rpm
/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/deploy/rpm/./x86_64_v3/curl-ptest-8.23.0-r0.x86_64_v3.rpm
/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/deploy/rpm/./x86_64_v3/dpkg-perl-1.23.12-r0.x86_64_v3.rpm
/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/deploy/rpm/./x86_64_v3/git-perltools-2.56.1-r0.x86_64_v3.rpm
/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/deploy/rpm/./x86_64_v3/libclass-inspector-perl-1.36-r0.x86_64_v3.rpm
...

https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/5464

The diffoscope output can be found here: https://valkyrie.yocto.io/pub/repro-fail/oe-reproducible-20261130-hzeku_uw/packages/diff-html/

Can you have a look at the issue? Or is this because I dropped the last
patch?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  parent reply	other threads:[~2026-11-30 13:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  1:13 [PATCH 0/5] perl: generate module dependencies with perl.req Tim Orling
2026-11-30  1:13 ` [PATCH 1/5] perl-generators-native: add recipe for 1.16 Tim Orling
2026-11-30  1:13 ` [PATCH 2/5] classes/package: add perl-generators-native to PACKAGE_DEPENDS Tim Orling
2026-11-30  1:13 ` [PATCH 3/5] classes/insane: add perl-rdeps QA check Tim Orling
2026-11-30  1:14 ` [PATCH 4/5] perl: do not install unicore/TestNorm.pl Tim Orling
2026-11-30  1:14 ` [PATCH 5/5] perl: generate perl-rdepends.txt with perl.req Tim Orling
2026-11-30 10:08   ` [OE-core] " Mathieu Dubois-Briand
2026-11-30 13:50 ` Mathieu Dubois-Briand [this message]
2026-11-30 17:18 ` [PATCH v2 0/8] perl: generate module dependencies " Tim Orling
2026-11-30 17:18   ` [PATCH v2 1/8] perl-generators-native: add recipe for 1.16 Tim Orling
2026-11-30 17:18   ` [PATCH v2 2/8] classes/package_rpm: disable rpmbuild's perllib provides generator Tim Orling
2026-11-30 17:18   ` [PATCH v2 3/8] classes/package: add perl-generators-native to PACKAGE_DEPENDS Tim Orling
2026-11-30 17:18   ` [PATCH v2 4/8] classes/insane: add perl-rdeps QA check Tim Orling
2026-11-30 17:18   ` [PATCH v2 5/8] perl: do not install unicore/TestNorm.pl Tim Orling
2026-11-30 17:18   ` [PATCH v2 6/8] libxml-sax-base-perl: add perl-module-base to ptest RDEPENDS Tim Orling
2026-11-30 17:18   ` [PATCH v2 7/8] libtimedate-perl: add perl-module-base to RDEPENDS Tim Orling
2026-11-30 17:18   ` [PATCH v2 8/8] perl: generate perl-rdepends.txt with perl.req Tim Orling
2026-12-01  2:40   ` [PATCH 0/3] perl recipes: add missing RDEPENDS found by loading modules Tim Orling
2026-12-01  2:40     ` [PATCH 1/3] libtimedate-perl: add perl-module-utf8 to RDEPENDS Tim Orling
2026-12-01  2:40     ` [PATCH 2/3] libxml-namespacesupport-perl: add perl-module-constant " Tim Orling
2026-12-01  2:40     ` [PATCH 3/3] libxml-perl: add libxml-parser-perl " Tim Orling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DN8LDXDD4744.2UMXIAPMV291Q@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=tim.orling@konsulko.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.