Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.32772.1796046617528714686 for ; Mon, 30 Nov 2026 05:50:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=YVvpHYjg; spf=pass (domain: bootlin.com, ip: 185.246.84.56, mailfrom: mathieu.dubois-briand@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 24D701A187E; Mon, 30 Nov 2026 13:50:15 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id EDFBC6007C; Mon, 30 Nov 2026 13:50:14 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 5E60C11EA0505; Mon, 30 Nov 2026 14:50:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796046610; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=CsPT1XT49E4ZbEbUqi4J+jTrl0GacJsN4zdzOqB0W2A=; b=YVvpHYjgjashtNcWc2F1/wYx004Ha1mVVKujcMVaFQHHjTLvg2nBjDT7jFRBd+HPID1hFQ +BL8ncg/wTb62TDxNZZVJP/jPJO4TRrHbqy/ujjIgGLySuAKUvYiLKROdu3UbF3Hu5eQ7P JWfTI15/MgB3Ix5gUfZUJTAyu3Z5C/Vy0CNoG43krZ44Z8fndgNtYykOX30NHwF3tXfOGb bstSVZHWSqNEjoeYg8JGOI3nI4R8ps1VU4JLed1FmcZg0u/8EU78r9XNle27Cw27IOVy3G Dj0GfFobYIZtc6gX4B2tv+lSKID5Xs1cpBgRQgt9KCw5E+bdprtQzxgrQDIPjA== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 30 Nov 2026 14:50:08 +0100 Message-Id: Subject: Re: [OE-core] [PATCH 0/5] perl: generate module dependencies with perl.req From: "Mathieu Dubois-Briand" To: , X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20261130011401.68860-1-tim.orling@konsulko.com> In-Reply-To: <20261130011401.68860-1-tim.orling@konsulko.com> X-Last-TLS-Session-Version: TLSv1.3 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 13:50:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251605 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 =3D " perl-rdeps", which reports perl() modul= e > 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 exclusi= on list: /srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-exten= ded/tmp/deploy/rpm/./x86_64_v3/automake-1.20-r0.x86_64_v3.rpm /srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-exten= ded/tmp/deploy/rpm/./x86_64_v3/coreutils-ptest-9.12-r0.x86_64_v3.rpm /srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-exten= ded/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-exten= ded/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-exten= ded/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-exten= ded/tmp/deploy/rpm/./x86_64_v3/libclass-inspector-perl-1.36-r0.x86_64_v3.rp= m ... https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/5464 The diffoscope output can be found here: https://valkyrie.yocto.io/pub/repr= o-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 --=20 Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com