Bug 2165567 - Upgrade perl-Sub-Exporter-Lexical to 1.000
Summary: Upgrade perl-Sub-Exporter-Lexical to 1.000
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Sub-Exporter-Lexical
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ralf Corsepius
QA Contact: Fedora Extras Quality Assurance
URL: https://metacpan.org/release/Sub-Expo...
Whiteboard:
Depends On: 2184280
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-30 12:39 UTC by Jitka Plesnikova
Modified: 2023-04-04 06:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jitka Plesnikova 2023-01-30 12:39:50 UTC
Latest Fedora delivers 0.092292 version. Upstream released 0.100000. When you have free time, please upgrade it.

Comment 1 Ralf Corsepius 2023-01-30 14:13:48 UTC
This package refuses to build on all versions of Fedora, because upstream claims

"There is no functioning lexical exporter between perl v5.20 and v5.38"

Comment 2 Paul Howarth 2023-01-31 12:06:18 UTC
The reasoning for this looks to be that the upstream Lexical-Var distribution (which contains Lexical::Sub, and provides support for lexical exports in the absence of native support, i.e. prior to 5.37.2) hasn't been updated for the best part of a decade and is broken with Perl 5.22 onwards. The Fedora perl-Lexical-Var package includes a patch to fix this (see also https://rt.cpan.org/Public/Bug/Display.html?id=115992), as does the CPAN distribution Alt::Lexical::Var::ButSupportModernPerl.

The approach taken in Exporter::Tiny, which recently added lexical export support, is to check for the availability of Lexical::Sub at runtime and use it if available. It adds a "recommends" dependency on Lexical::Sub or Alt::Lexical::Var::ButSupportModernPerl (depending on the perl version) in the Makefile.PL to support that. The Fedora package just has a build dep (for testing) of perl(Lexical::Sub) and a Recommends: for it at runtime. Maybe Sub::Exporter::Lexical could do something similar?

Comment 3 Ben Cotton 2023-02-07 15:12:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 4 Jitka Plesnikova 2023-04-03 12:49:32 UTC
Latest Fedora delivers 0.092292 version. Upstream released 1.000. When you have free time, please upgrade it.

Comment 5 Ralf Corsepius 2023-04-04 06:00:44 UTC
AFAIU, Sub-Exporter-Lexical-1.000 requires 
perl(Lexical::Sub) (rsp. perl-Lexical-Var) >= 0.10 
or perl >= v5.37.2

ATM, no Fedora release provides such a perl and only rawhide provides perl(Lexical::Sub) >= 0.10

=> it's impossible to upgrade perl-Sub-Exporter-Lexical on Fedora < f39.

I'll build perl-Sub-Exporter-Lexical for rawhide and file upgrade requests for perl-Lexical-Var for Fedoras < f39


Note You need to log in before you can comment on or make changes to this bug.