From patchwork Mon Nov 30 01:13:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 106333 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.23718.1796001248842307129 for ; Sun, 29 Nov 2026 17:14:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=rU7Op2SH; 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-2f0621eec70so70814485ad.2 for ; Sun, 29 Nov 2026 17:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796001248; x=1796606048; 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=YlI0krrY7Q95ZS2vfxgWzMIR250VqkPTpFB1u4bqWR0=; b=rU7Op2SH5Tg9Tr2lHttCCDJQNFoFOVYDAVTj4hQ1cNd9SE2viGKTCF8nlMrNYXzjOn mx87Ycxd6JnTmUd0h6xy9Wj0jM9M78fpDYal+jaO8xZbhYw7SAOpsAgtNuEdhx03hXJb XYFpw0TrfuOKrkkLPjarZl/8btUEZdiwPtIwQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796001248; x=1796606048; 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=YlI0krrY7Q95ZS2vfxgWzMIR250VqkPTpFB1u4bqWR0=; b=Or5csc5JkN2WdhcOlyhNTTF0OktZoc9bp4j8RW3IvmDg0dJDAKpE3yU3Kid2fmb8ty nW023l2xBL/lH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X/O3MB1 qAWz6lUvW6fOJbt6YTxw3tkeIoK3kzYGqiIvsQfOHKvYwoIT2zukvk1wrAdtQjtH8IA== X-Received: by 2002:a17:903:2342:b0:2f0:313b:3fa0 with SMTP id d9443c01a7336-2f0d7061982mr189362635ad.45.1796001248019; Sun, 29 Nov 2026 17:14:08 -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 d9443c01a7336-2f11770df61sm42669315ad.53.2026.11.29.17.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 17:14:07 -0800 (PST) From: Tim Orling To: openembedded-core@lists.openembedded.org Cc: Tim Orling Subject: [PATCH 1/5] perl-generators-native: add recipe for 1.16 Date: Sun, 29 Nov 2026 17:13:57 -0800 Message-ID: <20261130011401.68860-2-tim.orling@konsulko.com> X-Mailer: git-send-email 2.56.1 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 01:14:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251562 rpm 4.20 dropped its perl.prov/perl.req generators, so pkgdata lost the perl(Module::Name) FILERPROVIDES mapping Perl modules to packages. Add Fedora's generators, which now maintain those scripts, to restore them. Only provides are enabled, as before rpm 4.20: generated requires include optional dependencies which package_rpm would turn into hard Requires. perl.req is still installed for later dependency checking, patched to work without Fedora::VSP and to optionally report indented "require" statements (PERL_REQ_INDENTED_REQUIRE), which in perl itself are mostly lazy loads. The scripts run with the host perl. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Tim Orling --- meta/conf/distro/include/maintainers.inc | 1 + .../rpm/perl-generators-native_1.16.bb | 38 +++++++++++++++++ ...01-perl.req-make-Fedora-VSP-optional.patch | 42 +++++++++++++++++++ ...q-optionally-report-indented-require.patch | 34 +++++++++++++++ 4 files changed, 115 insertions(+) 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 diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 62de04001e..446b48291c 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -598,6 +598,7 @@ RECIPE_MAINTAINER:pn-pciutils = "Ajay Mahajan " RECIPE_MAINTAINER:pn-pcmanfm = "Unassigned " RECIPE_MAINTAINER:pn-perf = "Bruce Ashfield " RECIPE_MAINTAINER:pn-perl = "Unassigned " +RECIPE_MAINTAINER:pn-perl-generators-native = "Tim Orling " RECIPE_MAINTAINER:pn-perlcross = "Unassigned " RECIPE_MAINTAINER:pn-picolibc = "Alejandro Hernandez " RECIPE_MAINTAINER:pn-picolibc-helloworld = "Alejandro Hernandez " diff --git a/meta/recipes-devtools/rpm/perl-generators-native_1.16.bb b/meta/recipes-devtools/rpm/perl-generators-native_1.16.bb new file mode 100644 index 0000000000..f00aabe362 --- /dev/null +++ b/meta/recipes-devtools/rpm/perl-generators-native_1.16.bb @@ -0,0 +1,38 @@ +SUMMARY = "RPM Perl dependency generators" +DESCRIPTION = "perl.prov and perl.req scripts, and rpm fileattrs, which \ +generate perl(Module::Name) Provides and Requires for Perl modules and \ +scripts. These were part of rpm until 4.20 and are now maintained \ +separately by Fedora." +HOMEPAGE = "https://github.com/jplesnik/generators" +SECTION = "devel" +LICENSE = "GPL-1.0-or-later" +LIC_FILES_CHKSUM = "file://template/bin/perl.req;beginline=3;endline=5;md5=7e481c192a18a8dbf8ed22f568489e1e" + +SRC_URI = "https://jplesnik.fedorapeople.org/generators/generators-${PV}.tar.gz \ + file://0001-perl.req-make-Fedora-VSP-optional.patch \ + file://0002-perl.req-optionally-report-indented-require.patch \ + " +SRC_URI[sha256sum] = "36cf8c16ec969826217ff7458535a29714cb471dadba1672a303034d029a6e64" + +S = "${UNPACKDIR}/generators-${PV}" + +inherit native + +# Scripts only, run with the host perl (HOSTTOOLS) +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install() { + install -d ${D}${libdir}/rpm/fileattrs + for f in perl.prov perl.req; do + sed -e 's/__PERL_NS__/perl/' -e 's/__PERL_SUFFIX__//' \ + -e '1s|^#!/usr/bin/perl|#!/usr/bin/env perl|' \ + ${S}/template/bin/$f > ${D}${libdir}/rpm/$f + chmod 0755 ${D}${libdir}/rpm/$f + done + + # Provides only: generated Requires include optional dependencies, which + # would become hard rpm Requires via FILERDEPENDS + sed -e 's/__PERL_SUFFIX__//' -e '/__perllib_requires/d' \ + ${S}/template/fileattrs/perllib.attr > ${D}${libdir}/rpm/fileattrs/perllib.attr +} diff --git a/meta/recipes-devtools/rpm/perl-generators/0001-perl.req-make-Fedora-VSP-optional.patch b/meta/recipes-devtools/rpm/perl-generators/0001-perl.req-make-Fedora-VSP-optional.patch new file mode 100644 index 0000000000..ef259cd60e --- /dev/null +++ b/meta/recipes-devtools/rpm/perl-generators/0001-perl.req-make-Fedora-VSP-optional.patch @@ -0,0 +1,42 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tim Orling +Date: Fri, 27 Nov 2026 00:00:00 -0800 +Subject: [PATCH] perl.req: make Fedora::VSP optional + +Fedora::VSP only normalizes "use 5.010" style perl version requirements, +which OE strips anyway (filedeprunner in meta/lib/oe/package.py). Load +it only if available and otherwise skip the perl version requirement, to +avoid carrying a recipe for it. + +This patch was generated with the help of an AI tool (Claude Code). + +Upstream-Status: Inappropriate [OE-specific: avoids Fedora::VSP dependency] +Signed-off-by: Tim Orling +--- + template/bin/perl.req | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/template/bin/perl.req b/template/bin/perl.req +index 67a4f7a..eeed626 100755 +--- a/template/bin/perl.req ++++ b/template/bin/perl.req +@@ -24,7 +24,8 @@ my $perl_ns = "__PERL_NS__"; + + $HAVE_VERSION = 0; + eval { require version; $HAVE_VERSION = 1; }; +-use Fedora::VSP (); ++$HAVE_VSP = 0; ++eval { require Fedora::VSP; $HAVE_VSP = 1; }; + + use File::Basename; + my $dir = dirname($0); +@@ -335,6 +336,9 @@ sub process_file { + # if module is a number then both require and use interpret that + # to mean that a particular version of perl is specified + ++ # Without Fedora::VSP the version cannot be normalized; drop the ++ # perl version requirement rather than treating it as a module. ++ $HAVE_VSP || next; + my $rpm_ver = Fedora::VSP::vsp($1); + if (defined $rpm_ver) { + add_perlreq("$rpm_ver"); diff --git a/meta/recipes-devtools/rpm/perl-generators/0002-perl.req-optionally-report-indented-require.patch b/meta/recipes-devtools/rpm/perl-generators/0002-perl.req-optionally-report-indented-require.patch new file mode 100644 index 0000000000..e6836104d3 --- /dev/null +++ b/meta/recipes-devtools/rpm/perl-generators/0002-perl.req-optionally-report-indented-require.patch @@ -0,0 +1,34 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tim Orling +Date: Fri, 27 Nov 2026 00:00:00 -0800 +Subject: [PATCH] perl.req: optionally report indented require + +perl.req skips indented "require" statements as optional, but in perl's +own modules they are mostly lazy loads needed at runtime (e.g. IO::File +requiring Fcntl). Report them when PERL_REQ_INDENTED_REQUIRE is set. + +This patch was generated with the help of an AI tool (Claude Code). + +Upstream-Status: Inappropriate [OE-specific: used to generate perl-rdepends.txt] +Signed-off-by: Tim Orling +--- + template/bin/perl.req | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/template/bin/perl.req b/template/bin/perl.req +index eeed626..20f8c19 100755 +--- a/template/bin/perl.req ++++ b/template/bin/perl.req +@@ -280,9 +280,10 @@ sub process_file { + # we only consider require statements that are flushed against + # the left edge. any other require statements give too many + # false positives, as they are usually inside of an if statement +- # as a fallback module or a rarely used option ++ # as a fallback module or a rarely used option. Setting ++ # PERL_REQ_INDENTED_REQUIRE reports them anyway (for lazy loads). + +- ($whitespace ne "" && $statement eq "require") && next; ++ ($whitespace ne "" && $statement eq "require" && !$ENV{PERL_REQ_INDENTED_REQUIRE}) && next; + + # if there is some interpolation of variables just skip this + # dependency, we do not want